summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl/wmi.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2011-09-19 19:15:05 +0300
committerKalle Valo <kvalo@qca.qualcomm.com>2011-09-22 10:07:59 +0300
commit82e14f56f7408cb13c47eef9fd6922f22e88109a (patch)
tree2900a4037c8fd4cd33a2097b0fb3b88ac8a5962e /drivers/net/wireless/ath/ath6kl/wmi.h
parent457fb0415a887b6389854b850e9815cf0ec44178 (diff)
downloadlinux-82e14f56f7408cb13c47eef9fd6922f22e88109a.tar.gz
linux-82e14f56f7408cb13c47eef9fd6922f22e88109a.tar.xz
linux-82e14f56f7408cb13c47eef9fd6922f22e88109a.zip
ath6kl: Remove unnecessary bssinfo event header conversion
There is no point in unconditionally converting the bssinfo header to the old version since only the new header is being used and the driver can as well read the values from it when needed. Leaving out the conversion saves some extra memory copying. In addition, use the calculated "rssi" value snr - 95 dBm to get the proper value in cfg80211 BSS table (i.e., something that more or less matches with the value used in STA info). Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/wmi.h')
-rw-r--r--drivers/net/wireless/ath/ath6kl/wmi.h25
1 files changed, 3 insertions, 22 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/wmi.h b/drivers/net/wireless/ath/ath6kl/wmi.h
index f65bc0d6dbef..d458d6d3a27f 100644
--- a/drivers/net/wireless/ath/ath6kl/wmi.h
+++ b/drivers/net/wireless/ath/ath6kl/wmi.h
@@ -1393,33 +1393,14 @@ struct roam_ctrl_cmd {
u8 roam_ctrl;
} __packed;
-struct wmi_bss_info_hdr {
- __le16 ch;
-
- /* see, enum wmi_bi_ftype */
- u8 frame_type;
-
- u8 snr;
- a_sle16 rssi;
- u8 bssid[ETH_ALEN];
- __le32 ie_mask;
-} __packed;
-
-/*
- * BSS INFO HDR version 2.0
- * With 6 bytes HTC header and 6 bytes of WMI header
- * WMI_BSS_INFO_HDR cannot be accommodated in the removed 802.11 management
- * header space.
- * - Reduce the ie_mask to 2 bytes as only two bit flags are used
- * - Remove rssi and compute it on the host. rssi = snr - 95
- */
+/* BSS INFO HDR version 2.0 */
struct wmi_bss_info_hdr2 {
- __le16 ch;
+ __le16 ch; /* frequency in MHz */
/* see, enum wmi_bi_ftype */
u8 frame_type;
- u8 snr;
+ u8 snr; /* note: rssi = snr - 95 dBm */
u8 bssid[ETH_ALEN];
__le16 ie_mask;
} __packed;