aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath9k/htc.h12
-rw-r--r--drivers/net/wireless/ath/ath9k/htc_drv_main.c8
2 files changed, 7 insertions, 13 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc.h b/drivers/net/wireless/ath/ath9k/htc.h
index e096624d9073..f74f45f238af 100644
--- a/drivers/net/wireless/ath/ath9k/htc.h
+++ b/drivers/net/wireless/ath/ath9k/htc.h
@@ -117,17 +117,11 @@ struct ath9k_htc_cap_target {
117 117
118struct ath9k_htc_target_vif { 118struct ath9k_htc_target_vif {
119 u8 index; 119 u8 index;
120 u8 des_bssid[ETH_ALEN]; 120 u8 opmode;
121 __be32 opmode;
122 u8 myaddr[ETH_ALEN]; 121 u8 myaddr[ETH_ALEN];
123 u8 bssid[ETH_ALEN];
124 u32 flags;
125 u32 flags_ext;
126 u16 ps_sta;
127 __be16 rtsthreshold;
128 u8 ath_cap; 122 u8 ath_cap;
129 u8 node; 123 __be16 rtsthreshold;
130 s8 mcast_rate; 124 u8 pad;
131} __packed; 125} __packed;
132 126
133#define ATH_HTC_STA_AUTH 0x0001 127#define ATH_HTC_STA_AUTH 0x0001
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
index 9bb20f33638c..400226702e0a 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
@@ -349,7 +349,7 @@ static int ath9k_htc_add_monitor_interface(struct ath9k_htc_priv *priv)
349 memset(&hvif, 0, sizeof(struct ath9k_htc_target_vif)); 349 memset(&hvif, 0, sizeof(struct ath9k_htc_target_vif));
350 memcpy(&hvif.myaddr, common->macaddr, ETH_ALEN); 350 memcpy(&hvif.myaddr, common->macaddr, ETH_ALEN);
351 351
352 hvif.opmode = cpu_to_be32(HTC_M_MONITOR); 352 hvif.opmode = HTC_M_MONITOR;
353 hvif.index = ffz(priv->vif_slot); 353 hvif.index = ffz(priv->vif_slot);
354 354
355 WMI_CMD_BUF(WMI_VAP_CREATE_CMDID, &hvif); 355 WMI_CMD_BUF(WMI_VAP_CREATE_CMDID, &hvif);
@@ -1039,13 +1039,13 @@ static int ath9k_htc_add_interface(struct ieee80211_hw *hw,
1039 1039
1040 switch (vif->type) { 1040 switch (vif->type) {
1041 case NL80211_IFTYPE_STATION: 1041 case NL80211_IFTYPE_STATION:
1042 hvif.opmode = cpu_to_be32(HTC_M_STA); 1042 hvif.opmode = HTC_M_STA;
1043 break; 1043 break;
1044 case NL80211_IFTYPE_ADHOC: 1044 case NL80211_IFTYPE_ADHOC:
1045 hvif.opmode = cpu_to_be32(HTC_M_IBSS); 1045 hvif.opmode = HTC_M_IBSS;
1046 break; 1046 break;
1047 case NL80211_IFTYPE_AP: 1047 case NL80211_IFTYPE_AP:
1048 hvif.opmode = cpu_to_be32(HTC_M_HOSTAP); 1048 hvif.opmode = HTC_M_HOSTAP;
1049 break; 1049 break;
1050 default: 1050 default:
1051 ath_err(common, 1051 ath_err(common,