wil6210: debug [add|del]_key operations
authorVladimir Kondratiev <QCA_vkondrat@QCA.qualcomm.com>
Mon, 30 Mar 2015 08:28:51 +0000 (11:28 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 28 Apr 2015 16:59:57 +0000 (19:59 +0300)
Provide info for [add|del]_key.

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wil6210/cfg80211.c

index b97172667bc7b3c5c3ea3463c9b6573811a6d064..6cc432d0b6637aeb0b2930309e5d2ceca74140da 100644 (file)
@@ -569,6 +569,9 @@ static int wil_cfg80211_add_key(struct wiphy *wiphy,
 {
        struct wil6210_priv *wil = wiphy_to_wil(wiphy);
 
+       wil_dbg_misc(wil, "%s(%pM[%d] %s)\n", __func__, mac_addr, key_index,
+                    pairwise ? "PTK" : "GTK");
+
        /* group key is not used */
        if (!pairwise)
                return 0;
@@ -584,6 +587,9 @@ static int wil_cfg80211_del_key(struct wiphy *wiphy,
 {
        struct wil6210_priv *wil = wiphy_to_wil(wiphy);
 
+       wil_dbg_misc(wil, "%s(%pM[%d] %s)\n", __func__, mac_addr, key_index,
+                    pairwise ? "PTK" : "GTK");
+
        /* group key is not used */
        if (!pairwise)
                return 0;