aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath9k/htc.h7
-rw-r--r--drivers/net/wireless/ath/ath9k/htc_drv_main.c3
2 files changed, 1 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc.h b/drivers/net/wireless/ath/ath9k/htc.h
index 5ec214c37530..29dfdf8ebee4 100644
--- a/drivers/net/wireless/ath/ath9k/htc.h
+++ b/drivers/net/wireless/ath/ath9k/htc.h
@@ -116,18 +116,13 @@ struct ath9k_htc_target_vif {
116 u8 pad; 116 u8 pad;
117} __packed; 117} __packed;
118 118
119#define ATH_HTC_STA_AUTH 0x0001
120#define ATH_HTC_STA_QOS 0x0002
121#define ATH_HTC_STA_ERP 0x0004
122#define ATH_HTC_STA_HT 0x0008
123
124struct ath9k_htc_target_sta { 119struct ath9k_htc_target_sta {
125 u8 macaddr[ETH_ALEN]; 120 u8 macaddr[ETH_ALEN];
126 u8 bssid[ETH_ALEN]; 121 u8 bssid[ETH_ALEN];
127 u8 sta_index; 122 u8 sta_index;
128 u8 vif_index; 123 u8 vif_index;
129 u8 is_vif_sta; 124 u8 is_vif_sta;
130 __be16 flags; /* ATH_HTC_STA_* */ 125 __be16 flags;
131 __be16 htcap; 126 __be16 htcap;
132 __be16 maxampdu; 127 __be16 maxampdu;
133 u8 pad; 128 u8 pad;
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
index 6065c2fc97f0..b1b86135b634 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
@@ -502,9 +502,6 @@ static int ath9k_htc_add_station(struct ath9k_htc_priv *priv,
502 tsta.maxampdu = cpu_to_be16(maxampdu); 502 tsta.maxampdu = cpu_to_be16(maxampdu);
503 } 503 }
504 504
505 if (sta && sta->ht_cap.ht_supported)
506 tsta.flags = cpu_to_be16(ATH_HTC_STA_HT);
507
508 WMI_CMD_BUF(WMI_NODE_CREATE_CMDID, &tsta); 505 WMI_CMD_BUF(WMI_NODE_CREATE_CMDID, &tsta);
509 if (ret) { 506 if (ret) {
510 if (sta) 507 if (sta)