]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
mac80211: disable IBSS beacon before join
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 10 Feb 2009 20:25:38 +0000 (21:25 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 13 Feb 2009 18:45:20 +0000 (13:45 -0500)
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>
net/mac80211/main.c

index caf92424c76dad0068b37743f3cc5923165a7a7b..956afea4214de7db61e697ae8f331bc93a719828 100644 (file)
@@ -210,6 +210,8 @@ int ieee80211_if_config(struct ieee80211_sub_if_data *sdata, u32 changed)
                                        !!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;