aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwl8k.c
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2010-01-04 15:55:21 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-01-05 17:13:25 -0500
commit0a11dfc36604d9b24deda17461b7ea69851846aa (patch)
treebfc75cac24e950e826ec20fbce8abd31ed0656a2 /drivers/net/wireless/mwl8k.c
parentbbfd9128d3b4a80bea017ebdd47b31a80dc7eadf (diff)
mwl8k: remove mwl8k_vif::bssid, which is now useless
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwl8k.c')
-rw-r--r--drivers/net/wireless/mwl8k.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index df0596ca710d..ed666b7e7e41 100644
--- a/drivers/net/wireless/mwl8k.c
+++ b/drivers/net/wireless/mwl8k.c
@@ -211,9 +211,6 @@ struct mwl8k_vif {
211 /* Local MAC address. */ 211 /* Local MAC address. */
212 u8 mac_addr[ETH_ALEN]; 212 u8 mac_addr[ETH_ALEN];
213 213
214 /* BSSID of AP. */
215 u8 bssid[ETH_ALEN];
216
217 /* Index into station database. Returned by UPDATE_STADB. */ 214 /* Index into station database. Returned by UPDATE_STADB. */
218 u8 peer_id; 215 u8 peer_id;
219 216
@@ -2001,7 +1998,7 @@ struct mwl8k_cmd_set_post_scan {
2001} __attribute__((packed)); 1998} __attribute__((packed));
2002 1999
2003static int 2000static int
2004mwl8k_cmd_set_post_scan(struct ieee80211_hw *hw, __u8 *mac) 2001mwl8k_cmd_set_post_scan(struct ieee80211_hw *hw, const __u8 *mac)
2005{ 2002{
2006 struct mwl8k_cmd_set_post_scan *cmd; 2003 struct mwl8k_cmd_set_post_scan *cmd;
2007 int rc; 2004 int rc;
@@ -2077,7 +2074,6 @@ struct mwl8k_cmd_update_set_aid {
2077static int 2074static int
2078mwl8k_cmd_set_aid(struct ieee80211_hw *hw, struct ieee80211_vif *vif) 2075mwl8k_cmd_set_aid(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
2079{ 2076{
2080 struct mwl8k_vif *mv_vif = MWL8K_VIF(vif);
2081 struct mwl8k_cmd_update_set_aid *cmd; 2077 struct mwl8k_cmd_update_set_aid *cmd;
2082 u16 prot_mode; 2078 u16 prot_mode;
2083 int rc; 2079 int rc;
@@ -2090,7 +2086,7 @@ mwl8k_cmd_set_aid(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
2090 cmd->header.length = cpu_to_le16(sizeof(*cmd)); 2086 cmd->header.length = cpu_to_le16(sizeof(*cmd));
2091 cmd->aid = cpu_to_le16(vif->bss_conf.aid); 2087 cmd->aid = cpu_to_le16(vif->bss_conf.aid);
2092 2088
2093 memcpy(cmd->bssid, mv_vif->bssid, ETH_ALEN); 2089 memcpy(cmd->bssid, vif->bss_conf.bssid, ETH_ALEN);
2094 2090
2095 if (vif->bss_conf.use_cts_prot) { 2091 if (vif->bss_conf.use_cts_prot) {
2096 prot_mode = MWL8K_FRAME_PROT_11G; 2092 prot_mode = MWL8K_FRAME_PROT_11G;
@@ -2945,7 +2941,6 @@ static void mwl8k_bss_info_changed(struct ieee80211_hw *hw,
2945 u32 changed) 2941 u32 changed)
2946{ 2942{
2947 struct mwl8k_priv *priv = hw->priv; 2943 struct mwl8k_priv *priv = hw->priv;
2948 struct mwl8k_vif *mwl8k_vif = MWL8K_VIF(vif);
2949 int rc; 2944 int rc;
2950 2945
2951 if ((changed & BSS_CHANGED_ASSOC) == 0) 2946 if ((changed & BSS_CHANGED_ASSOC) == 0)
@@ -2958,8 +2953,6 @@ static void mwl8k_bss_info_changed(struct ieee80211_hw *hw,
2958 return; 2953 return;
2959 2954
2960 if (vif->bss_conf.assoc) { 2955 if (vif->bss_conf.assoc) {
2961 memcpy(mwl8k_vif->bssid, vif->bss_conf.bssid, ETH_ALEN);
2962
2963 /* Install rates */ 2956 /* Install rates */
2964 rc = mwl8k_cmd_set_rate(hw, vif); 2957 rc = mwl8k_cmd_set_rate(hw, vif);
2965 if (rc) 2958 if (rc)
@@ -2991,10 +2984,8 @@ static void mwl8k_bss_info_changed(struct ieee80211_hw *hw,
2991 * Finalize the join. Tell rx handler to process 2984 * Finalize the join. Tell rx handler to process
2992 * next beacon from our BSSID. 2985 * next beacon from our BSSID.
2993 */ 2986 */
2994 memcpy(priv->capture_bssid, mwl8k_vif->bssid, ETH_ALEN); 2987 memcpy(priv->capture_bssid, vif->bss_conf.bssid, ETH_ALEN);
2995 priv->capture_beacon = true; 2988 priv->capture_beacon = true;
2996 } else {
2997 memset(mwl8k_vif->bssid, 0, ETH_ALEN);
2998 } 2989 }
2999 2990
3000out: 2991out:
@@ -3097,7 +3088,7 @@ static void mwl8k_configure_filter(struct ieee80211_hw *hw,
3097 */ 3088 */
3098 mwl8k_cmd_set_pre_scan(hw); 3089 mwl8k_cmd_set_pre_scan(hw);
3099 } else { 3090 } else {
3100 u8 *bssid; 3091 const u8 *bssid;
3101 3092
3102 /* 3093 /*
3103 * Enable the BSS filter. 3094 * Enable the BSS filter.
@@ -3109,7 +3100,7 @@ static void mwl8k_configure_filter(struct ieee80211_hw *hw,
3109 */ 3100 */
3110 bssid = "\x01\x00\x00\x00\x00\x00"; 3101 bssid = "\x01\x00\x00\x00\x00\x00";
3111 if (priv->vif != NULL) 3102 if (priv->vif != NULL)
3112 bssid = MWL8K_VIF(priv->vif)->bssid; 3103 bssid = priv->vif->bss_conf.bssid;
3113 3104
3114 mwl8k_cmd_set_post_scan(hw, bssid); 3105 mwl8k_cmd_set_post_scan(hw, bssid);
3115 } 3106 }