diff options
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index f4fc540aac17..362e89d6d467 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -199,15 +199,7 @@ void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata, | |||
199 | return; | 199 | return; |
200 | 200 | ||
201 | if (sdata->vif.type == NL80211_IFTYPE_STATION) { | 201 | if (sdata->vif.type == NL80211_IFTYPE_STATION) { |
202 | /* | 202 | sdata->vif.bss_conf.bssid = sdata->u.mgd.bssid; |
203 | * While not associated, claim a BSSID of all-zeroes | ||
204 | * so that drivers don't do any weird things with the | ||
205 | * BSSID at that time. | ||
206 | */ | ||
207 | if (sdata->vif.bss_conf.assoc) | ||
208 | sdata->vif.bss_conf.bssid = sdata->u.mgd.bssid; | ||
209 | else | ||
210 | sdata->vif.bss_conf.bssid = zero; | ||
211 | } else if (sdata->vif.type == NL80211_IFTYPE_ADHOC) | 203 | } else if (sdata->vif.type == NL80211_IFTYPE_ADHOC) |
212 | sdata->vif.bss_conf.bssid = sdata->u.ibss.bssid; | 204 | sdata->vif.bss_conf.bssid = sdata->u.ibss.bssid; |
213 | else if (sdata->vif.type == NL80211_IFTYPE_AP) | 205 | else if (sdata->vif.type == NL80211_IFTYPE_AP) |