Skip to contentSkip to conversation

ath6kl: Fix mgmt subtypes for station and p2p client

PATCH Superseded Mohammed Shafi Shajakhan 1 participant 1 message Feb 14, 2013 Atheros ATH6KL wireless driver

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 6/6 ath6kl: Fix mgmt subtypes for station and p2p client

From: Mohammed Shafi Shajakhan <[email protected]>

The mgmt subtypes advertized for the STA mode seems to be inverted, fix this. Found this during code review.

---
 drivers/net/wireless/ath/ath6kl/cfg80211.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/net/wireless/ath/ath6kl/cfg80211.c +4 -4
index e065c24..9ebeb60 100644
@@ -3364,9 +3364,9 @@ static const struct ieee80211_txrx_stypes
 ath6kl_mgmt_stypes[NUM_NL80211_IFTYPES] = {
 	[NL80211_IFTYPE_STATION] = {
 		.tx = BIT(IEEE80211_STYPE_ACTION >> 4) |
-		BIT(IEEE80211_STYPE_PROBE_RESP >> 4),
+		BIT(IEEE80211_STYPE_PROBE_REQ >> 4),
 		.rx = BIT(IEEE80211_STYPE_ACTION >> 4) |
-		BIT(IEEE80211_STYPE_PROBE_REQ >> 4)
+		BIT(IEEE80211_STYPE_PROBE_RESP >> 4)
 	},
 	[NL80211_IFTYPE_AP] = {
 		.tx = BIT(IEEE80211_STYPE_ACTION >> 4) |
@@ -3376,9 +3376,9 @@ ath6kl_mgmt_stypes[NUM_NL80211_IFTYPES] = {
 	},
 	[NL80211_IFTYPE_P2P_CLIENT] = {
 		.tx = BIT(IEEE80211_STYPE_ACTION >> 4) |
-		BIT(IEEE80211_STYPE_PROBE_RESP >> 4),
+		BIT(IEEE80211_STYPE_PROBE_REQ >> 4),
 		.rx = BIT(IEEE80211_STYPE_ACTION >> 4) |
-		BIT(IEEE80211_STYPE_PROBE_REQ >> 4)
+		BIT(IEEE80211_STYPE_PROBE_RESP >> 4)
 	},
 	[NL80211_IFTYPE_P2P_GO] = {
 		.tx = BIT(IEEE80211_STYPE_ACTION >> 4) |
Signature · 1 line
1.7.9.5