mac80211: disable IBSS beacon before join
Johannes Berg
maintainerPATCH 1/1 mac80211: disable IBSS beacon before join
Signed-off-by Johannes Berg <[email protected]>
--- net/mac80211/main.c | 2 ++ 1 file changed, 2 insertions(+)
net/mac80211/main.c +2 -0
@@ -210,6 +210,8 @@ int ieee80211_if_config(struct ieee80211 !!rcu_dereference (sdata->u.ap.beacon);break ;case NL80211_IFTYPE_ADHOC : + conf.enable_beacon = !!sdata->u.sta.probe_resp; +break ;case NL80211_IFTYPE_MESH_POINT : conf.enable_beacon = true;break ;
Quoted 2 lines · Johannes Berg
Signed-off-by Johannes Berg <[email protected]>---
This patch needs a more-definitive commit message. In the git log, one won't see the diff, and will have no idea what it does.
Larry
Johannes Berg
maintainerQuoted 6 lines · Larry Finger
Quoted 2 lines · Johannes Berg
Signed-off-by Johannes Berg <[email protected]>---
This patch needs a more-definitive commit message. In the git log, one won't see the diff, and will have no idea what it does.
Yeah, it should have some more text, I just couldn't think of anything more elaborate than the subject. Will come up with something and repost, I guess.
johannes
Johannes Berg
maintainerPATCH v2 1/1 mac80211: disable IBSS beacon before join
In reply to Larry FingerBefore 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 <[email protected]>
--- net/mac80211/main.c | 2 ++ 1 file changed, 2 insertions(+)
net/mac80211/main.c +2 -0
@@ -210,6 +210,8 @@ int ieee80211_if_config(struct ieee80211 !!rcu_dereference (sdata->u.ap.beacon);break ;case NL80211_IFTYPE_ADHOC : + conf.enable_beacon = !!sdata->u.sta.probe_resp; +break ;case NL80211_IFTYPE_MESH_POINT : conf.enable_beacon = true;break ;