sctp: return error if the asoc has been peeled off in sctp_wait_for_sndbuf
[pandora-kernel.git] / net / mac80211 / key.c
index 01c64f4..bef5111 100644 (file)
@@ -508,7 +508,7 @@ int ieee80211_key_link(struct ieee80211_key *key,
                         */
 
                        /* same here, the AP could be using QoS */
-                       ap = sta_info_get(key->sdata, key->sdata->u.mgd.bssid);
+                       ap = sta_info_get(sdata, sdata->u.mgd.bssid);
                        if (ap) {
                                if (test_sta_flag(ap, WLAN_STA_WME))
                                        key->conf.flags |=