diff options
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index e9181981adcd..fce9d08986e9 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -169,9 +169,10 @@ int ieee80211_if_config(struct ieee80211_sub_if_data *sdata, u32 changed) | |||
169 | 169 | ||
170 | memset(&conf, 0, sizeof(conf)); | 170 | memset(&conf, 0, sizeof(conf)); |
171 | 171 | ||
172 | if (sdata->vif.type == NL80211_IFTYPE_STATION || | 172 | if (sdata->vif.type == NL80211_IFTYPE_STATION) |
173 | sdata->vif.type == NL80211_IFTYPE_ADHOC) | 173 | conf.bssid = sdata->u.mgd.bssid; |
174 | conf.bssid = sdata->u.sta.bssid; | 174 | else if (sdata->vif.type == NL80211_IFTYPE_ADHOC) |
175 | conf.bssid = sdata->u.ibss.bssid; | ||
175 | else if (sdata->vif.type == NL80211_IFTYPE_AP) | 176 | else if (sdata->vif.type == NL80211_IFTYPE_AP) |
176 | conf.bssid = sdata->dev->dev_addr; | 177 | conf.bssid = sdata->dev->dev_addr; |
177 | else if (ieee80211_vif_is_mesh(&sdata->vif)) { | 178 | else if (ieee80211_vif_is_mesh(&sdata->vif)) { |
@@ -210,7 +211,7 @@ int ieee80211_if_config(struct ieee80211_sub_if_data *sdata, u32 changed) | |||
210 | !!rcu_dereference(sdata->u.ap.beacon); | 211 | !!rcu_dereference(sdata->u.ap.beacon); |
211 | break; | 212 | break; |
212 | case NL80211_IFTYPE_ADHOC: | 213 | case NL80211_IFTYPE_ADHOC: |
213 | conf.enable_beacon = !!sdata->u.sta.probe_resp; | 214 | conf.enable_beacon = !!sdata->u.ibss.probe_resp; |
214 | break; | 215 | break; |
215 | case NL80211_IFTYPE_MESH_POINT: | 216 | case NL80211_IFTYPE_MESH_POINT: |
216 | conf.enable_beacon = true; | 217 | conf.enable_beacon = true; |