mac80211: Filter duplicate IE ids
[deliverable/linux.git] / net / mac80211 / mlme.c
index 92c5eb124d6f70b185302be999479aaf213142c2..c08924aeac0017de011a3c305fcedf9faa4f8796 100644 (file)
@@ -3446,6 +3446,20 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata,
        }
        run_again(ifmgd, assoc_data->timeout);
 
+       if (bss->corrupt_data) {
+               char *corrupt_type = "data";
+               if (bss->corrupt_data & IEEE80211_BSS_CORRUPT_BEACON) {
+                       if (bss->corrupt_data &
+                                       IEEE80211_BSS_CORRUPT_PROBE_RESP)
+                               corrupt_type = "beacon and probe response";
+                       else
+                               corrupt_type = "beacon";
+               } else if (bss->corrupt_data & IEEE80211_BSS_CORRUPT_PROBE_RESP)
+                       corrupt_type = "probe response";
+               printk(KERN_DEBUG "%s: associating with AP with corrupt %s\n",
+                      sdata->name, corrupt_type);
+       }
+
        err = 0;
        goto out;
  err_clear:
This page took 0.026387 seconds and 5 git commands to generate.