Felix Fietkau 46c1dd0c7f cfg80211: fix regression in multi-vif AP start
Commit "cfg80211: provide channel to start_ap function" assumes that the
channel is always passed to the NL80211_CMD_START_AP command, however
in case of multi-BSSID, hostapd only passes the channel for the first vif.
This makes starting beaconing on secondary vifs fail with -EINVAL.

Fix this by storing the channel provided to .start_ap in wdev->preset_chan
and picking the first AP vif's channel for secondary vifs if not provided.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2012-06-20 11:10:43 +02:00
..
2012-06-06 15:18:17 -04:00
2012-06-20 10:56:59 +02:00
2012-06-20 10:56:59 +02:00
2012-06-05 15:32:15 -04:00
2012-06-06 15:18:17 -04:00
2010-01-17 19:16:02 -08:00
2012-06-06 15:18:17 -04:00