]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/mac80211/cfg.c
mac80211: restrict delayed tailroom needed decrement
[mirror_ubuntu-bionic-kernel.git] / net / mac80211 / cfg.c
index 288640471c2fa427fc19c719f0a8cfe4279e9fad..b456b882a6ea5f994166ca3d3a6162e33679bf53 100644 (file)
@@ -494,7 +494,7 @@ static int ieee80211_del_key(struct wiphy *wiphy, struct net_device *dev,
                goto out_unlock;
        }
 
-       ieee80211_key_free(key, true);
+       ieee80211_key_free(key, sdata->vif.type == NL80211_IFTYPE_STATION);
 
        ret = 0;
  out_unlock: