diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-02-10 15:25:38 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-13 13:45:20 -0500 |
commit | 5e1333624827e7a91b2d2cc04ce978f050cae15e (patch) | |
tree | 4016a7c7a5ccda41cbcaed17173445446eaed1b9 /net/mac80211 | |
parent | 570a0a7c3ba6e44b0fe7f1d42e69ba139b533737 (diff) |
mac80211: disable IBSS beacon before join
Before we have a probe response frame (which is used as the
beacon too) there's no need to ask drivers to beacon, they
will not get a beacon anyway.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index caf92424c76..956afea4214 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -210,6 +210,8 @@ int ieee80211_if_config(struct ieee80211_sub_if_data *sdata, u32 changed) | |||
210 | !!rcu_dereference(sdata->u.ap.beacon); | 210 | !!rcu_dereference(sdata->u.ap.beacon); |
211 | break; | 211 | break; |
212 | case NL80211_IFTYPE_ADHOC: | 212 | case NL80211_IFTYPE_ADHOC: |
213 | conf.enable_beacon = !!sdata->u.sta.probe_resp; | ||
214 | break; | ||
213 | case NL80211_IFTYPE_MESH_POINT: | 215 | case NL80211_IFTYPE_MESH_POINT: |
214 | conf.enable_beacon = true; | 216 | conf.enable_beacon = true; |
215 | break; | 217 | break; |