qtnfmac: enable registration of more mgmt frames
authorSergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Mon, 30 Oct 2017 10:13:47 +0000 (13:13 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 30 Oct 2017 10:51:48 +0000 (12:51 +0200)
Support registration for more mgmt frame types
for debug and monitoring purposes.

Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c

index 63a540d1216e9ce25d9ae50e598b9555f4e887d2..64db4082c9d2ff84b7b1159180eb01c4d451232a 100644 (file)
@@ -73,7 +73,10 @@ qtnf_mgmt_stypes[NUM_NL80211_IFTYPES] = {
        [NL80211_IFTYPE_AP] = {
                .tx = BIT(IEEE80211_STYPE_ACTION >> 4),
                .rx = BIT(IEEE80211_STYPE_ACTION >> 4) |
-                     BIT(IEEE80211_STYPE_PROBE_REQ >> 4),
+                     BIT(IEEE80211_STYPE_PROBE_REQ >> 4) |
+                     BIT(IEEE80211_STYPE_ASSOC_REQ >> 4) |
+                     BIT(IEEE80211_STYPE_REASSOC_REQ >> 4) |
+                     BIT(IEEE80211_STYPE_AUTH >> 4),
        },
 };
 
@@ -353,6 +356,13 @@ qtnf_mgmt_frame_register(struct wiphy *wiphy, struct wireless_dev *wdev,
                return;
 
        switch (frame_type & IEEE80211_FCTL_STYPE) {
+       case IEEE80211_STYPE_REASSOC_REQ:
+       case IEEE80211_STYPE_ASSOC_REQ:
+               qlink_frame_type = QLINK_MGMT_FRAME_ASSOC_REQ;
+               break;
+       case IEEE80211_STYPE_AUTH:
+               qlink_frame_type = QLINK_MGMT_FRAME_AUTH;
+               break;
        case IEEE80211_STYPE_PROBE_REQ:
                qlink_frame_type = QLINK_MGMT_FRAME_PROBE_REQ;
                break;