From: Felix Fietkau Date: Tue, 19 Jun 2012 00:50:57 +0000 (+0200) Subject: cfg80211: fix regression in multi-vif AP start X-Git-Tag: v3.6-rc1~125^2~57^2~248^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46c1dd0c7fac54d3739d62b6362024d9b568c6de;p=pandora-kernel.git 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 Signed-off-by: Johannes Berg --- Reading git-diff-tree failed