diff options
author | Sujith Manoharan <Sujith.Manoharan@atheros.com> | 2011-04-13 01:54:37 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-13 15:22:58 -0400 |
commit | b97c57ff3f568b33ed91915f48431feae2dab288 (patch) | |
tree | 41bb6e82aa4368264e4bc2ea41fbde5d21884399 /drivers/net | |
parent | 40dc9e4b86963b77918f1b8fa02b98c1e420a7e1 (diff) |
ath9k_htc: Sync struct ath9k_htc_target_sta with FW
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc.h | 30 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_main.c | 6 |
2 files changed, 6 insertions, 30 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc.h b/drivers/net/wireless/ath/ath9k/htc.h index 2eabfe4ad268..e096624d9073 100644 --- a/drivers/net/wireless/ath/ath9k/htc.h +++ b/drivers/net/wireless/ath/ath9k/htc.h | |||
@@ -104,17 +104,6 @@ struct tx_beacon_header { | |||
104 | u16 rev; | 104 | u16 rev; |
105 | } __packed; | 105 | } __packed; |
106 | 106 | ||
107 | struct ath9k_htc_target_hw { | ||
108 | u32 flags; | ||
109 | u32 flags_ext; | ||
110 | u32 ampdu_limit; | ||
111 | u8 ampdu_subframes; | ||
112 | u8 tx_chainmask; | ||
113 | u8 tx_chainmask_legacy; | ||
114 | u8 rtscts_ratecode; | ||
115 | u8 protmode; | ||
116 | } __packed; | ||
117 | |||
118 | struct ath9k_htc_cap_target { | 107 | struct ath9k_htc_cap_target { |
119 | u32 flags; | 108 | u32 flags; |
120 | u32 flags_ext; | 109 | u32 flags_ext; |
@@ -146,27 +135,16 @@ struct ath9k_htc_target_vif { | |||
146 | #define ATH_HTC_STA_ERP 0x0004 | 135 | #define ATH_HTC_STA_ERP 0x0004 |
147 | #define ATH_HTC_STA_HT 0x0008 | 136 | #define ATH_HTC_STA_HT 0x0008 |
148 | 137 | ||
149 | /* FIXME: UAPSD variables */ | ||
150 | struct ath9k_htc_target_sta { | 138 | struct ath9k_htc_target_sta { |
151 | u16 associd; | ||
152 | u16 txpower; | ||
153 | u32 ucastkey; | ||
154 | u8 macaddr[ETH_ALEN]; | 139 | u8 macaddr[ETH_ALEN]; |
155 | u8 bssid[ETH_ALEN]; | 140 | u8 bssid[ETH_ALEN]; |
156 | u8 sta_index; | 141 | u8 sta_index; |
157 | u8 vif_index; | 142 | u8 vif_index; |
158 | u8 vif_sta; | ||
159 | __be16 flags; /* ATH_HTC_STA_* */ | ||
160 | u16 htcap; | ||
161 | u8 valid; | ||
162 | u16 capinfo; | ||
163 | struct ath9k_htc_target_hw *hw; | ||
164 | struct ath9k_htc_target_vif *vif; | ||
165 | u16 txseqmgmt; | ||
166 | u8 is_vif_sta; | 143 | u8 is_vif_sta; |
167 | u16 maxampdu; | 144 | __be16 flags; /* ATH_HTC_STA_* */ |
168 | u16 iv16; | 145 | __be16 htcap; |
169 | u32 iv32; | 146 | __be16 maxampdu; |
147 | u8 pad; | ||
170 | } __packed; | 148 | } __packed; |
171 | 149 | ||
172 | struct ath9k_htc_target_aggr { | 150 | struct ath9k_htc_target_aggr { |
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c index 59710e75f051..9bb20f33638c 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c | |||
@@ -382,7 +382,7 @@ static int ath9k_htc_add_monitor_interface(struct ath9k_htc_priv *priv) | |||
382 | tsta.is_vif_sta = 1; | 382 | tsta.is_vif_sta = 1; |
383 | tsta.sta_index = sta_idx; | 383 | tsta.sta_index = sta_idx; |
384 | tsta.vif_index = hvif.index; | 384 | tsta.vif_index = hvif.index; |
385 | tsta.maxampdu = 0xffff; | 385 | tsta.maxampdu = cpu_to_be16(0xffff); |
386 | 386 | ||
387 | WMI_CMD_BUF(WMI_NODE_CREATE_CMDID, &tsta); | 387 | WMI_CMD_BUF(WMI_NODE_CREATE_CMDID, &tsta); |
388 | if (ret) { | 388 | if (ret) { |
@@ -463,9 +463,7 @@ static int ath9k_htc_add_station(struct ath9k_htc_priv *priv, | |||
463 | ista = (struct ath9k_htc_sta *) sta->drv_priv; | 463 | ista = (struct ath9k_htc_sta *) sta->drv_priv; |
464 | memcpy(&tsta.macaddr, sta->addr, ETH_ALEN); | 464 | memcpy(&tsta.macaddr, sta->addr, ETH_ALEN); |
465 | memcpy(&tsta.bssid, common->curbssid, ETH_ALEN); | 465 | memcpy(&tsta.bssid, common->curbssid, ETH_ALEN); |
466 | tsta.associd = common->curaid; | ||
467 | tsta.is_vif_sta = 0; | 466 | tsta.is_vif_sta = 0; |
468 | tsta.valid = true; | ||
469 | ista->index = sta_idx; | 467 | ista->index = sta_idx; |
470 | } else { | 468 | } else { |
471 | memcpy(&tsta.macaddr, vif->addr, ETH_ALEN); | 469 | memcpy(&tsta.macaddr, vif->addr, ETH_ALEN); |
@@ -474,7 +472,7 @@ static int ath9k_htc_add_station(struct ath9k_htc_priv *priv, | |||
474 | 472 | ||
475 | tsta.sta_index = sta_idx; | 473 | tsta.sta_index = sta_idx; |
476 | tsta.vif_index = avp->index; | 474 | tsta.vif_index = avp->index; |
477 | tsta.maxampdu = 0xffff; | 475 | tsta.maxampdu = cpu_to_be16(0xffff); |
478 | if (sta && sta->ht_cap.ht_supported) | 476 | if (sta && sta->ht_cap.ht_supported) |
479 | tsta.flags = cpu_to_be16(ATH_HTC_STA_HT); | 477 | tsta.flags = cpu_to_be16(ATH_HTC_STA_HT); |
480 | 478 | ||