]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
mac80211: probe with correct SSID
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 19 Sep 2008 03:10:34 +0000 (05:10 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Sep 2008 20:18:03 +0000 (16:18 -0400)
While associated, we should probe with the SSID we're associated to,
not the scan SSID.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c

index 109c3a7e63adfcc41bbd384513cfeaf6f90f8b68..52a6481330182511d5b056d8eff65f7bdefc0298 100644 (file)
@@ -942,8 +942,8 @@ static void ieee80211_associated(struct ieee80211_sub_if_data *sdata,
                                disassoc = 1;
                        } else
                                ieee80211_send_probe_req(sdata, ifsta->bssid,
-                                                        local->scan_ssid,
-                                                        local->scan_ssid_len);
+                                                        ifsta->ssid,
+                                                        ifsta->ssid_len);
                        ifsta->flags ^= IEEE80211_STA_PROBEREQ_POLL;
                } else {
                        ifsta->flags &= ~IEEE80211_STA_PROBEREQ_POLL;