ssid_bitmap <<= 1;
for (i = 0; i < params->n_scan_plans; i++) {
- struct wiphy *wiphy = mvm->hw->wiphy;
struct cfg80211_sched_scan_plan *scan_plan =
¶ms->scan_plans[i];
- if (WARN_ON(scan_plan->iterations >
- wiphy->max_sched_scan_plan_iterations ||
- scan_plan->interval >
- wiphy->max_sched_scan_plan_interval))
- return -EINVAL;
-
cmd->schedule[i].delay =
cpu_to_le16(scan_plan->interval);
cmd->schedule[i].iterations = scan_plan->iterations;
params->n_channels, ssid_bitmap, cmd);
for (i = 0; i < params->n_scan_plans; i++) {
- struct wiphy *wiphy = mvm->hw->wiphy;
struct cfg80211_sched_scan_plan *scan_plan =
¶ms->scan_plans[i];
- if (WARN_ON(scan_plan->iterations >
- wiphy->max_sched_scan_plan_iterations ||
- scan_plan->interval >
- wiphy->max_sched_scan_plan_interval))
- return -EINVAL;
-
sec_part->schedule[i].iter_count = scan_plan->iterations;
sec_part->schedule[i].interval =
cpu_to_le16(scan_plan->interval);