]> err.no Git - linux-2.6/blobdiff - net/mac80211/key.c
mac80211: Add IEEE80211_KEY_FLAG_PAIRWISE
[linux-2.6] / net / mac80211 / key.c
index 150d66dbda9d22de6ca0b94c48eab7e70c3f733f..88b211af7c1f193223ebcee775c3e1669541054a 100644 (file)
@@ -323,6 +323,13 @@ void ieee80211_key_link(struct ieee80211_key *key,
                 */
                if (sta->flags & WLAN_STA_WME)
                        key->conf.flags |= IEEE80211_KEY_FLAG_WMM_STA;
+
+               /*
+                * This key is for a specific sta interface,
+                * inform the driver that it should try to store
+                * this key as pairwise key.
+                */
+               key->conf.flags |= IEEE80211_KEY_FLAG_PAIRWISE;
        } else {
                if (sdata->vif.type == IEEE80211_IF_TYPE_STA) {
                        struct sta_info *ap;