aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/scan.c')
-rw-r--r--drivers/net/wireless/libertas/scan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c
index 64b404783f44..2700f4b455e3 100644
--- a/drivers/net/wireless/libertas/scan.c
+++ b/drivers/net/wireless/libertas/scan.c
@@ -19,11 +19,11 @@
19 19
20//! Approximate amount of data needed to pass a scan result back to iwlist 20//! Approximate amount of data needed to pass a scan result back to iwlist
21#define MAX_SCAN_CELL_SIZE (IW_EV_ADDR_LEN \ 21#define MAX_SCAN_CELL_SIZE (IW_EV_ADDR_LEN \
22 + IW_ESSID_MAX_SIZE \ 22 + IEEE80211_MAX_SSID_LEN \
23 + IW_EV_UINT_LEN \ 23 + IW_EV_UINT_LEN \
24 + IW_EV_FREQ_LEN \ 24 + IW_EV_FREQ_LEN \
25 + IW_EV_QUAL_LEN \ 25 + IW_EV_QUAL_LEN \
26 + IW_ESSID_MAX_SIZE \ 26 + IEEE80211_MAX_SSID_LEN \
27 + IW_EV_PARAM_LEN \ 27 + IW_EV_PARAM_LEN \
28 + 40) /* 40 for WPAIE */ 28 + 40) /* 40 for WPAIE */
29 29
@@ -775,7 +775,7 @@ static inline char *lbs_translate_scan(struct lbs_private *priv,
775 /* SSID */ 775 /* SSID */
776 iwe.cmd = SIOCGIWESSID; 776 iwe.cmd = SIOCGIWESSID;
777 iwe.u.data.flags = 1; 777 iwe.u.data.flags = 1;
778 iwe.u.data.length = min((uint32_t) bss->ssid_len, (uint32_t) IW_ESSID_MAX_SIZE); 778 iwe.u.data.length = min((uint32_t) bss->ssid_len, (uint32_t) IEEE80211_MAX_SSID_LEN);
779 start = iwe_stream_add_point(info, start, stop, &iwe, bss->ssid); 779 start = iwe_stream_add_point(info, start, stop, &iwe, bss->ssid);
780 780
781 /* Mode */ 781 /* Mode */