diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index 8c24d3b36d28..91b62ddbf9f0 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
@@ -334,11 +334,18 @@ int rt2x00mac_config_interface(struct ieee80211_hw *hw, | |||
334 | */ | 334 | */ |
335 | if (conf->type != IEEE80211_IF_TYPE_AP) | 335 | if (conf->type != IEEE80211_IF_TYPE_AP) |
336 | memcpy(&intf->bssid, conf->bssid, ETH_ALEN); | 336 | memcpy(&intf->bssid, conf->bssid, ETH_ALEN); |
337 | rt2x00lib_config_intf(rt2x00dev, intf, conf->type, NULL, intf->bssid); | ||
338 | 337 | ||
339 | spin_unlock(&intf->lock); | 338 | spin_unlock(&intf->lock); |
340 | 339 | ||
341 | /* | 340 | /* |
341 | * Call rt2x00_config_intf() outside of the spinlock context since | ||
342 | * the call will sleep for USB drivers. By using the ieee80211_if_conf | ||
343 | * values as arguments we make keep access to rt2x00_intf thread safe | ||
344 | * even without the lock. | ||
345 | */ | ||
346 | rt2x00lib_config_intf(rt2x00dev, intf, conf->type, NULL, conf->bssid); | ||
347 | |||
348 | /* | ||
342 | * We only need to initialize the beacon when master mode is enabled. | 349 | * We only need to initialize the beacon when master mode is enabled. |
343 | */ | 350 | */ |
344 | if (conf->type != IEEE80211_IF_TYPE_AP || !conf->beacon) | 351 | if (conf->type != IEEE80211_IF_TYPE_AP || !conf->beacon) |