ath9k_htc: Sync struct ath9k_htc_target_sta with FW
authorSujith Manoharan <Sujith.Manoharan@atheros.com>
Wed, 13 Apr 2011 05:54:37 +0000 (11:24 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 13 Apr 2011 19:22:58 +0000 (15:22 -0400)
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc.h
drivers/net/wireless/ath/ath9k/htc_drv_main.c

index 2eabfe4ad2682c610fc26d3d357686c8bceee59b..e096624d9073119a0264b74b1d4fa8b64de9cd3e 100644 (file)
@@ -104,17 +104,6 @@ struct tx_beacon_header {
        u16 rev;
 } __packed;
 
-struct ath9k_htc_target_hw {
-       u32 flags;
-       u32 flags_ext;
-       u32 ampdu_limit;
-       u8 ampdu_subframes;
-       u8 tx_chainmask;
-       u8 tx_chainmask_legacy;
-       u8 rtscts_ratecode;
-       u8 protmode;
-} __packed;
-
 struct ath9k_htc_cap_target {
        u32 flags;
        u32 flags_ext;
@@ -146,27 +135,16 @@ struct ath9k_htc_target_vif {
 #define ATH_HTC_STA_ERP   0x0004
 #define ATH_HTC_STA_HT    0x0008
 
-/* FIXME: UAPSD variables */
 struct ath9k_htc_target_sta {
-       u16 associd;
-       u16 txpower;
-       u32 ucastkey;
        u8 macaddr[ETH_ALEN];
        u8 bssid[ETH_ALEN];
        u8 sta_index;
        u8 vif_index;
-       u8 vif_sta;
-       __be16 flags; /* ATH_HTC_STA_* */
-       u16 htcap;
-       u8 valid;
-       u16 capinfo;
-       struct ath9k_htc_target_hw *hw;
-       struct ath9k_htc_target_vif *vif;
-       u16 txseqmgmt;
        u8 is_vif_sta;
-       u16 maxampdu;
-       u16 iv16;
-       u32 iv32;
+       __be16 flags; /* ATH_HTC_STA_* */
+       __be16 htcap;
+       __be16 maxampdu;
+       u8 pad;
 } __packed;
 
 struct ath9k_htc_target_aggr {
index 59710e75f05199dae9a183c714a97755d22319ef..9bb20f33638c5bfc175eed68d5b74c5eec39d056 100644 (file)
@@ -382,7 +382,7 @@ static int ath9k_htc_add_monitor_interface(struct ath9k_htc_priv *priv)
        tsta.is_vif_sta = 1;
        tsta.sta_index = sta_idx;
        tsta.vif_index = hvif.index;
-       tsta.maxampdu = 0xffff;
+       tsta.maxampdu = cpu_to_be16(0xffff);
 
        WMI_CMD_BUF(WMI_NODE_CREATE_CMDID, &tsta);
        if (ret) {
@@ -463,9 +463,7 @@ static int ath9k_htc_add_station(struct ath9k_htc_priv *priv,
                ista = (struct ath9k_htc_sta *) sta->drv_priv;
                memcpy(&tsta.macaddr, sta->addr, ETH_ALEN);
                memcpy(&tsta.bssid, common->curbssid, ETH_ALEN);
-               tsta.associd = common->curaid;
                tsta.is_vif_sta = 0;
-               tsta.valid = true;
                ista->index = sta_idx;
        } else {
                memcpy(&tsta.macaddr, vif->addr, ETH_ALEN);
@@ -474,7 +472,7 @@ static int ath9k_htc_add_station(struct ath9k_htc_priv *priv,
 
        tsta.sta_index = sta_idx;
        tsta.vif_index = avp->index;
-       tsta.maxampdu = 0xffff;
+       tsta.maxampdu = cpu_to_be16(0xffff);
        if (sta && sta->ht_cap.ht_supported)
                tsta.flags = cpu_to_be16(ATH_HTC_STA_HT);