From: Arik Nemtsov Date: Tue, 22 Nov 2011 17:33:18 +0000 (+0200) Subject: mac80211: don't indicate probe resp change in IBSS mode X-Git-Tag: v3.3-rc1~182^2~44^2~339 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e7979ac7826e3170c685e7fe6d8c594ac505a30a;p=profile%2Fivi%2Fkernel-x86-ivi.git mac80211: don't indicate probe resp change in IBSS mode Due the a fall-through in the switch statement, the IBSS mode got a report for AP_RPOBE_RESPONSE change on reconfig. Change this to an AP only notification. Signed-off-by: Arik Nemtsov Signed-off-by: John W. Linville --- diff --git a/net/mac80211/util.c b/net/mac80211/util.c index c499a16..5f7c1c6 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -1240,8 +1240,11 @@ int ieee80211_reconfig(struct ieee80211_local *local) changed |= BSS_CHANGED_IBSS; /* fall through */ case NL80211_IFTYPE_AP: - changed |= BSS_CHANGED_SSID | - BSS_CHANGED_AP_PROBE_RESP; + changed |= BSS_CHANGED_SSID; + + if (sdata->vif.type == NL80211_IFTYPE_AP) + changed |= BSS_CHANGED_AP_PROBE_RESP; + /* fall through */ case NL80211_IFTYPE_MESH_POINT: changed |= BSS_CHANGED_BEACON |