diff options
Diffstat (limited to 'drivers/net/wireless/libertas/assoc.c')
-rw-r--r-- | drivers/net/wireless/libertas/assoc.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c index 3492e89d1dd5..92863780286f 100644 --- a/drivers/net/wireless/libertas/assoc.c +++ b/drivers/net/wireless/libertas/assoc.c | |||
@@ -153,17 +153,18 @@ static int lbs_adhoc_join(struct lbs_private *priv, | |||
153 | struct cmd_ds_802_11_ad_hoc_join cmd; | 153 | struct cmd_ds_802_11_ad_hoc_join cmd; |
154 | struct bss_descriptor *bss = &assoc_req->bss; | 154 | struct bss_descriptor *bss = &assoc_req->bss; |
155 | u8 preamble = RADIO_PREAMBLE_LONG; | 155 | u8 preamble = RADIO_PREAMBLE_LONG; |
156 | DECLARE_SSID_BUF(ssid); | ||
156 | u16 ratesize = 0; | 157 | u16 ratesize = 0; |
157 | int ret = 0; | 158 | int ret = 0; |
158 | 159 | ||
159 | lbs_deb_enter(LBS_DEB_ASSOC); | 160 | lbs_deb_enter(LBS_DEB_ASSOC); |
160 | 161 | ||
161 | lbs_deb_join("current SSID '%s', ssid length %u\n", | 162 | lbs_deb_join("current SSID '%s', ssid length %u\n", |
162 | escape_ssid(priv->curbssparams.ssid, | 163 | print_ssid(ssid, priv->curbssparams.ssid, |
163 | priv->curbssparams.ssid_len), | 164 | priv->curbssparams.ssid_len), |
164 | priv->curbssparams.ssid_len); | 165 | priv->curbssparams.ssid_len); |
165 | lbs_deb_join("requested ssid '%s', ssid length %u\n", | 166 | lbs_deb_join("requested ssid '%s', ssid length %u\n", |
166 | escape_ssid(bss->ssid, bss->ssid_len), | 167 | print_ssid(ssid, bss->ssid, bss->ssid_len), |
167 | bss->ssid_len); | 168 | bss->ssid_len); |
168 | 169 | ||
169 | /* check if the requested SSID is already joined */ | 170 | /* check if the requested SSID is already joined */ |
@@ -308,6 +309,7 @@ static int lbs_adhoc_start(struct lbs_private *priv, | |||
308 | size_t ratesize = 0; | 309 | size_t ratesize = 0; |
309 | u16 tmpcap = 0; | 310 | u16 tmpcap = 0; |
310 | int ret = 0; | 311 | int ret = 0; |
312 | DECLARE_SSID_BUF(ssid); | ||
311 | 313 | ||
312 | lbs_deb_enter(LBS_DEB_ASSOC); | 314 | lbs_deb_enter(LBS_DEB_ASSOC); |
313 | 315 | ||
@@ -327,7 +329,7 @@ static int lbs_adhoc_start(struct lbs_private *priv, | |||
327 | memcpy(cmd.ssid, assoc_req->ssid, assoc_req->ssid_len); | 329 | memcpy(cmd.ssid, assoc_req->ssid, assoc_req->ssid_len); |
328 | 330 | ||
329 | lbs_deb_join("ADHOC_START: SSID '%s', ssid length %u\n", | 331 | lbs_deb_join("ADHOC_START: SSID '%s', ssid length %u\n", |
330 | escape_ssid(assoc_req->ssid, assoc_req->ssid_len), | 332 | print_ssid(ssid, assoc_req->ssid, assoc_req->ssid_len), |
331 | assoc_req->ssid_len); | 333 | assoc_req->ssid_len); |
332 | 334 | ||
333 | cmd.bsstype = CMD_BSS_TYPE_IBSS; | 335 | cmd.bsstype = CMD_BSS_TYPE_IBSS; |
@@ -695,6 +697,7 @@ static int assoc_helper_essid(struct lbs_private *priv, | |||
695 | int ret = 0; | 697 | int ret = 0; |
696 | struct bss_descriptor * bss; | 698 | struct bss_descriptor * bss; |
697 | int channel = -1; | 699 | int channel = -1; |
700 | DECLARE_SSID_BUF(ssid); | ||
698 | 701 | ||
699 | lbs_deb_enter(LBS_DEB_ASSOC); | 702 | lbs_deb_enter(LBS_DEB_ASSOC); |
700 | 703 | ||
@@ -706,7 +709,7 @@ static int assoc_helper_essid(struct lbs_private *priv, | |||
706 | channel = assoc_req->channel; | 709 | channel = assoc_req->channel; |
707 | 710 | ||
708 | lbs_deb_assoc("SSID '%s' requested\n", | 711 | lbs_deb_assoc("SSID '%s' requested\n", |
709 | escape_ssid(assoc_req->ssid, assoc_req->ssid_len)); | 712 | print_ssid(ssid, assoc_req->ssid, assoc_req->ssid_len)); |
710 | if (assoc_req->mode == IW_MODE_INFRA) { | 713 | if (assoc_req->mode == IW_MODE_INFRA) { |
711 | lbs_send_specific_ssid_scan(priv, assoc_req->ssid, | 714 | lbs_send_specific_ssid_scan(priv, assoc_req->ssid, |
712 | assoc_req->ssid_len); | 715 | assoc_req->ssid_len); |
@@ -1207,6 +1210,7 @@ void lbs_association_worker(struct work_struct *work) | |||
1207 | struct assoc_request * assoc_req = NULL; | 1210 | struct assoc_request * assoc_req = NULL; |
1208 | int ret = 0; | 1211 | int ret = 0; |
1209 | int find_any_ssid = 0; | 1212 | int find_any_ssid = 0; |
1213 | DECLARE_SSID_BUF(ssid); | ||
1210 | 1214 | ||
1211 | lbs_deb_enter(LBS_DEB_ASSOC); | 1215 | lbs_deb_enter(LBS_DEB_ASSOC); |
1212 | 1216 | ||
@@ -1230,7 +1234,7 @@ void lbs_association_worker(struct work_struct *work) | |||
1230 | " secinfo: %s%s%s\n" | 1234 | " secinfo: %s%s%s\n" |
1231 | " auth_mode: %d\n", | 1235 | " auth_mode: %d\n", |
1232 | assoc_req->flags, | 1236 | assoc_req->flags, |
1233 | escape_ssid(assoc_req->ssid, assoc_req->ssid_len), | 1237 | print_ssid(ssid, assoc_req->ssid, assoc_req->ssid_len), |
1234 | assoc_req->channel, assoc_req->band, assoc_req->mode, | 1238 | assoc_req->channel, assoc_req->band, assoc_req->mode, |
1235 | assoc_req->bssid, | 1239 | assoc_req->bssid, |
1236 | assoc_req->secinfo.WPAenabled ? " WPA" : "", | 1240 | assoc_req->secinfo.WPAenabled ? " WPA" : "", |
@@ -1767,6 +1771,7 @@ static int lbs_adhoc_post(struct lbs_private *priv, struct cmd_header *resp) | |||
1767 | struct cmd_ds_802_11_ad_hoc_result *adhoc_resp; | 1771 | struct cmd_ds_802_11_ad_hoc_result *adhoc_resp; |
1768 | union iwreq_data wrqu; | 1772 | union iwreq_data wrqu; |
1769 | struct bss_descriptor *bss; | 1773 | struct bss_descriptor *bss; |
1774 | DECLARE_SSID_BUF(ssid); | ||
1770 | 1775 | ||
1771 | lbs_deb_enter(LBS_DEB_JOIN); | 1776 | lbs_deb_enter(LBS_DEB_JOIN); |
1772 | 1777 | ||
@@ -1816,7 +1821,7 @@ static int lbs_adhoc_post(struct lbs_private *priv, struct cmd_header *resp) | |||
1816 | wireless_send_event(priv->dev, SIOCGIWAP, &wrqu, NULL); | 1821 | wireless_send_event(priv->dev, SIOCGIWAP, &wrqu, NULL); |
1817 | 1822 | ||
1818 | lbs_deb_join("ADHOC_RESP: Joined/started '%s', BSSID %pM, channel %d\n", | 1823 | lbs_deb_join("ADHOC_RESP: Joined/started '%s', BSSID %pM, channel %d\n", |
1819 | escape_ssid(bss->ssid, bss->ssid_len), | 1824 | print_ssid(ssid, bss->ssid, bss->ssid_len), |
1820 | priv->curbssparams.bssid, | 1825 | priv->curbssparams.bssid, |
1821 | priv->curbssparams.channel); | 1826 | priv->curbssparams.channel); |
1822 | 1827 | ||