Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 246860
b: refs/heads/master
c: e4c6250
h: refs/heads/master
v: v3
  • Loading branch information
Sujith Manoharan authored and John W. Linville committed Apr 13, 2011
1 parent ba5476c commit e420eef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b97c57ff3f568b33ed91915f48431feae2dab288
refs/heads/master: e4c62506fcfa7c1fa7c586ab518a172c3a65db0f
12 changes: 3 additions & 9 deletions trunk/drivers/net/wireless/ath/ath9k/htc.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,11 @@ struct ath9k_htc_cap_target {

struct ath9k_htc_target_vif {
u8 index;
u8 des_bssid[ETH_ALEN];
__be32 opmode;
u8 opmode;
u8 myaddr[ETH_ALEN];
u8 bssid[ETH_ALEN];
u32 flags;
u32 flags_ext;
u16 ps_sta;
__be16 rtsthreshold;
u8 ath_cap;
u8 node;
s8 mcast_rate;
__be16 rtsthreshold;
u8 pad;
} __packed;

#define ATH_HTC_STA_AUTH 0x0001
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/net/wireless/ath/ath9k/htc_drv_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ static int ath9k_htc_add_monitor_interface(struct ath9k_htc_priv *priv)
memset(&hvif, 0, sizeof(struct ath9k_htc_target_vif));
memcpy(&hvif.myaddr, common->macaddr, ETH_ALEN);

hvif.opmode = cpu_to_be32(HTC_M_MONITOR);
hvif.opmode = HTC_M_MONITOR;
hvif.index = ffz(priv->vif_slot);

WMI_CMD_BUF(WMI_VAP_CREATE_CMDID, &hvif);
Expand Down Expand Up @@ -1039,13 +1039,13 @@ static int ath9k_htc_add_interface(struct ieee80211_hw *hw,

switch (vif->type) {
case NL80211_IFTYPE_STATION:
hvif.opmode = cpu_to_be32(HTC_M_STA);
hvif.opmode = HTC_M_STA;
break;
case NL80211_IFTYPE_ADHOC:
hvif.opmode = cpu_to_be32(HTC_M_IBSS);
hvif.opmode = HTC_M_IBSS;
break;
case NL80211_IFTYPE_AP:
hvif.opmode = cpu_to_be32(HTC_M_HOSTAP);
hvif.opmode = HTC_M_HOSTAP;
break;
default:
ath_err(common,
Expand Down

0 comments on commit e420eef

Please sign in to comment.