mac80211: proper bss private data handling
[safe/jmp/linux-2.6] / net / mac80211 / work.c
index affdd10..0b8c31c 100644 (file)
@@ -517,8 +517,7 @@ ieee80211_associate(struct ieee80211_work *wk)
                 * bss struct for that AP.
                 */
                if (wk->assoc.bss)
-                       cfg80211_unlink_bss(local->hw.wiphy,
-                                           &wk->assoc.bss->cbss);
+                       cfg80211_unlink_bss(local->hw.wiphy, wk->assoc.bss);
 
                /*
                 * We might have a pending scan which had no chance to run yet