diff --git a/net/mac80211/key.c b/net/mac80211/key.c index 0665ff5e456e..e63dbef621e5 100644 --- a/net/mac80211/key.c +++ b/net/mac80211/key.c @@ -737,6 +737,7 @@ ieee80211_key_alloc(u32 cipher, int idx, size_t key_len, } memcpy(key->conf.key, key_data, key_len); INIT_LIST_HEAD(&key->list); + printk("%s, %p\n", __func__, key); return key; } @@ -761,6 +762,7 @@ static void ieee80211_key_free_common(struct ieee80211_key *key) ieee80211_aes_gcm_key_free(key->u.gcmp.tfm); break; } + printk("%s, %p\n", __func__, key); kfree_sensitive(key); } diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 931a03f4549c..871af6931d68 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -4764,6 +4764,7 @@ static int nl80211_new_key(struct sk_buff *skb, struct genl_info *info) err = rdev_add_key(rdev, dev, link_id, key.idx, key.type == NL80211_KEYTYPE_PAIRWISE, mac_addr, &key.p); + printk("%s, %p, %p, %d\n", __func__, dev, key, err); if (err) GENL_SET_ERR_MSG(info, "key addition failed"); } @@ -4824,6 +4825,7 @@ static int nl80211_del_key(struct sk_buff *skb, struct genl_info *info) key.type == NL80211_KEYTYPE_PAIRWISE, mac_addr); + printk("%s, %p, %p, %d\n", __func__, dev, key, err); #ifdef CONFIG_CFG80211_WEXT if (!err) { if (key.idx == wdev->wext.default_key) @@ -11515,6 +11517,7 @@ static int nl80211_leave_ibss(struct sk_buff *skb, struct genl_info *info) if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_ADHOC) return -EOPNOTSUPP; + printk("%s, %p\n", __func__, dev); return cfg80211_leave_ibss(rdev, dev, false); } @@ -12160,6 +12163,7 @@ static int nl80211_disconnect(struct sk_buff *skb, struct genl_info *info) wdev_lock(dev->ieee80211_ptr); ret = cfg80211_disconnect(rdev, dev, reason, true); wdev_unlock(dev->ieee80211_ptr); + printk("%s, %p\n", __func__, dev); return ret; } diff --git a/net/wireless/ibss.c b/net/wireless/ibss.c index e6fdb0b8187d..7c7e75f3fa6e 100644 --- a/net/wireless/ibss.c +++ b/net/wireless/ibss.c @@ -168,6 +168,7 @@ static void __cfg80211_clear_ibss(struct net_device *dev, bool nowext) * Delete all the keys ... pairwise keys can't really * exist any more anyway, but default keys might. */ + printk("%s, %p\n", __func__, dev); if (rdev->ops->del_key) for (i = 0; i < 6; i++) rdev_del_key(rdev, dev, -1, i, false, NULL);