diff options
author | Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> | 2011-07-21 04:39:07 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-08-09 12:45:23 -0400 |
commit | 70df0516884834156f763f0e64a81712e26917c2 (patch) | |
tree | 93d5df34b39623ff2c8756845fdd64b88b798eed /drivers | |
parent | e4c7ffcb9564dfed125e99daebc5fdce0b828626 (diff) |
ath6kl: Remove bssid from struct wmi
This is nothing but bssid of struct ath6kl.
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/wmi.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/wmi.h | 1 |
2 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c index ea123c9d30c3..ff71b7f3f7f4 100644 --- a/drivers/net/wireless/ath/ath6kl/wmi.c +++ b/drivers/net/wireless/ath/ath6kl/wmi.c | |||
@@ -498,8 +498,6 @@ static int ath6kl_wmi_connect_event_rx(struct wmi *wmi, u8 *datap, int len) | |||
498 | ath6kl_dbg(ATH6KL_DBG_WMI, "%s: freq %d bssid %pM\n", | 498 | ath6kl_dbg(ATH6KL_DBG_WMI, "%s: freq %d bssid %pM\n", |
499 | __func__, ev->ch, ev->bssid); | 499 | __func__, ev->ch, ev->bssid); |
500 | 500 | ||
501 | memcpy(wmi->bssid, ev->bssid, ETH_ALEN); | ||
502 | |||
503 | /* Start of assoc rsp IEs */ | 501 | /* Start of assoc rsp IEs */ |
504 | pie = ev->assoc_info + ev->beacon_ie_len + | 502 | pie = ev->assoc_info + ev->beacon_ie_len + |
505 | ev->assoc_req_len + (sizeof(u16) * 3); /* capinfo, status, aid */ | 503 | ev->assoc_req_len + (sizeof(u16) * 3); /* capinfo, status, aid */ |
@@ -546,7 +544,6 @@ static int ath6kl_wmi_disconnect_event_rx(struct wmi *wmi, u8 *datap, int len) | |||
546 | return -EINVAL; | 544 | return -EINVAL; |
547 | 545 | ||
548 | ev = (struct wmi_disconnect_event *) datap; | 546 | ev = (struct wmi_disconnect_event *) datap; |
549 | memset(wmi->bssid, 0, sizeof(wmi->bssid)); | ||
550 | 547 | ||
551 | wmi->is_wmm_enabled = false; | 548 | wmi->is_wmm_enabled = false; |
552 | wmi->pair_crypto_type = NONE_CRYPT; | 549 | wmi->pair_crypto_type = NONE_CRYPT; |
@@ -772,7 +769,7 @@ static int ath6kl_wmi_bssinfo_event_rx(struct wmi *wmi, u8 *datap, int len) | |||
772 | * instance value of scan result. It also sync up RSSI info | 769 | * instance value of scan result. It also sync up RSSI info |
773 | * in GUI between scan result and RSSI signal icon. | 770 | * in GUI between scan result and RSSI signal icon. |
774 | */ | 771 | */ |
775 | if (memcmp(wmi->bssid, bih->bssid, ETH_ALEN) == 0) { | 772 | if (memcmp(wmi->parent_dev->bssid, bih->bssid, ETH_ALEN) == 0) { |
776 | bih->rssi = a_cpu_to_sle16(bss->ni_rssi); | 773 | bih->rssi = a_cpu_to_sle16(bss->ni_rssi); |
777 | bih->snr = bss->ni_snr; | 774 | bih->snr = bss->ni_snr; |
778 | } | 775 | } |
@@ -2253,7 +2250,7 @@ int ath6kl_wmi_get_tx_pwr_cmd(struct wmi *wmi) | |||
2253 | void ath6kl_wmi_get_current_bssid(struct wmi *wmi, u8 *bssid) | 2250 | void ath6kl_wmi_get_current_bssid(struct wmi *wmi, u8 *bssid) |
2254 | { | 2251 | { |
2255 | if (bssid) | 2252 | if (bssid) |
2256 | memcpy(bssid, wmi->bssid, ETH_ALEN); | 2253 | memcpy(bssid, wmi->parent_dev->bssid, ETH_ALEN); |
2257 | } | 2254 | } |
2258 | 2255 | ||
2259 | int ath6kl_wmi_set_lpreamble_cmd(struct wmi *wmi, u8 status, u8 preamble_policy) | 2256 | int ath6kl_wmi_set_lpreamble_cmd(struct wmi *wmi, u8 status, u8 preamble_policy) |
diff --git a/drivers/net/wireless/ath/ath6kl/wmi.h b/drivers/net/wireless/ath/ath6kl/wmi.h index 1ef779d0ba7a..1646a9279efb 100644 --- a/drivers/net/wireless/ath/ath6kl/wmi.h +++ b/drivers/net/wireless/ath/ath6kl/wmi.h | |||
@@ -116,7 +116,6 @@ struct wmi { | |||
116 | u8 fat_pipe_exist; | 116 | u8 fat_pipe_exist; |
117 | struct ath6kl *parent_dev; | 117 | struct ath6kl *parent_dev; |
118 | struct wmi_stats stat; | 118 | struct wmi_stats stat; |
119 | u8 bssid[ETH_ALEN]; | ||
120 | u8 pwr_mode; | 119 | u8 pwr_mode; |
121 | u8 phy_mode; | 120 | u8 phy_mode; |
122 | u8 keep_alive_intvl; | 121 | u8 keep_alive_intvl; |