cfg80211: fix locking for SIWFREQ
"cfg80211: validate channel settings across interfaces" contained a locking bug -- in the managed-mode SIWFREQ call it would end up running into a lock recursion. This fixes it by not checking that particular interface for a channel that it needs to stay on, which is as it should be as that's the interface we're setting the channel for. Reported-by: Reinette Chatre <reinette.chatre@intel.com> Reported-by: Kalle Valo <kalle.valo@iki.fi> Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Tested-by: Kalle Valo <kalle.valo@iki.fi> Tested-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
e312c24cf8
commit
4b181144e6
5 changed files with 6 additions and 4 deletions
|
@ -106,7 +106,7 @@ int cfg80211_mgd_wext_siwfreq(struct net_device *dev,
|
|||
|
||||
/* SSID is not set, we just want to switch channel */
|
||||
if (chan && !wdev->wext.connect.ssid_len) {
|
||||
err = rdev_set_freq(rdev, freq, NL80211_CHAN_NO_HT);
|
||||
err = rdev_set_freq(rdev, wdev, freq, NL80211_CHAN_NO_HT);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue