diff options
author | John W. Linville <linville@tuxdriver.com> | 2008-09-24 18:13:14 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:46 -0400 |
commit | 7e272fcff6f0a32a3d46e600ea5895f6058f4e2d (patch) | |
tree | 39857028913862af4d71170d1f16ee360ba49115 /drivers/net/wireless/libertas/assoc.c | |
parent | ddf4ac53fb8a12a027c0486db743ae040f45b56a (diff) |
wireless: consolidate on a single escape_essid implementation
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/assoc.c')
-rw-r--r-- | drivers/net/wireless/libertas/assoc.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c index 8b88e9544418..3492e89d1dd5 100644 --- a/drivers/net/wireless/libertas/assoc.c +++ b/drivers/net/wireless/libertas/assoc.c | |||
@@ -1,6 +1,8 @@ | |||
1 | /* Copyright (C) 2006, Red Hat, Inc. */ | 1 | /* Copyright (C) 2006, Red Hat, Inc. */ |
2 | 2 | ||
3 | #include <linux/types.h> | ||
3 | #include <linux/etherdevice.h> | 4 | #include <linux/etherdevice.h> |
5 | #include <net/lib80211.h> | ||
4 | 6 | ||
5 | #include "assoc.h" | 7 | #include "assoc.h" |
6 | #include "decl.h" | 8 | #include "decl.h" |
@@ -157,11 +159,11 @@ static int lbs_adhoc_join(struct lbs_private *priv, | |||
157 | lbs_deb_enter(LBS_DEB_ASSOC); | 159 | lbs_deb_enter(LBS_DEB_ASSOC); |
158 | 160 | ||
159 | lbs_deb_join("current SSID '%s', ssid length %u\n", | 161 | lbs_deb_join("current SSID '%s', ssid length %u\n", |
160 | escape_essid(priv->curbssparams.ssid, | 162 | escape_ssid(priv->curbssparams.ssid, |
161 | priv->curbssparams.ssid_len), | 163 | priv->curbssparams.ssid_len), |
162 | priv->curbssparams.ssid_len); | 164 | priv->curbssparams.ssid_len); |
163 | lbs_deb_join("requested ssid '%s', ssid length %u\n", | 165 | lbs_deb_join("requested ssid '%s', ssid length %u\n", |
164 | escape_essid(bss->ssid, bss->ssid_len), | 166 | escape_ssid(bss->ssid, bss->ssid_len), |
165 | bss->ssid_len); | 167 | bss->ssid_len); |
166 | 168 | ||
167 | /* check if the requested SSID is already joined */ | 169 | /* check if the requested SSID is already joined */ |
@@ -325,7 +327,7 @@ static int lbs_adhoc_start(struct lbs_private *priv, | |||
325 | memcpy(cmd.ssid, assoc_req->ssid, assoc_req->ssid_len); | 327 | memcpy(cmd.ssid, assoc_req->ssid, assoc_req->ssid_len); |
326 | 328 | ||
327 | lbs_deb_join("ADHOC_START: SSID '%s', ssid length %u\n", | 329 | lbs_deb_join("ADHOC_START: SSID '%s', ssid length %u\n", |
328 | escape_essid(assoc_req->ssid, assoc_req->ssid_len), | 330 | escape_ssid(assoc_req->ssid, assoc_req->ssid_len), |
329 | assoc_req->ssid_len); | 331 | assoc_req->ssid_len); |
330 | 332 | ||
331 | cmd.bsstype = CMD_BSS_TYPE_IBSS; | 333 | cmd.bsstype = CMD_BSS_TYPE_IBSS; |
@@ -704,7 +706,7 @@ static int assoc_helper_essid(struct lbs_private *priv, | |||
704 | channel = assoc_req->channel; | 706 | channel = assoc_req->channel; |
705 | 707 | ||
706 | lbs_deb_assoc("SSID '%s' requested\n", | 708 | lbs_deb_assoc("SSID '%s' requested\n", |
707 | escape_essid(assoc_req->ssid, assoc_req->ssid_len)); | 709 | escape_ssid(assoc_req->ssid, assoc_req->ssid_len)); |
708 | if (assoc_req->mode == IW_MODE_INFRA) { | 710 | if (assoc_req->mode == IW_MODE_INFRA) { |
709 | lbs_send_specific_ssid_scan(priv, assoc_req->ssid, | 711 | lbs_send_specific_ssid_scan(priv, assoc_req->ssid, |
710 | assoc_req->ssid_len); | 712 | assoc_req->ssid_len); |
@@ -1228,7 +1230,7 @@ void lbs_association_worker(struct work_struct *work) | |||
1228 | " secinfo: %s%s%s\n" | 1230 | " secinfo: %s%s%s\n" |
1229 | " auth_mode: %d\n", | 1231 | " auth_mode: %d\n", |
1230 | assoc_req->flags, | 1232 | assoc_req->flags, |
1231 | escape_essid(assoc_req->ssid, assoc_req->ssid_len), | 1233 | escape_ssid(assoc_req->ssid, assoc_req->ssid_len), |
1232 | assoc_req->channel, assoc_req->band, assoc_req->mode, | 1234 | assoc_req->channel, assoc_req->band, assoc_req->mode, |
1233 | assoc_req->bssid, | 1235 | assoc_req->bssid, |
1234 | assoc_req->secinfo.WPAenabled ? " WPA" : "", | 1236 | assoc_req->secinfo.WPAenabled ? " WPA" : "", |
@@ -1814,7 +1816,7 @@ static int lbs_adhoc_post(struct lbs_private *priv, struct cmd_header *resp) | |||
1814 | wireless_send_event(priv->dev, SIOCGIWAP, &wrqu, NULL); | 1816 | wireless_send_event(priv->dev, SIOCGIWAP, &wrqu, NULL); |
1815 | 1817 | ||
1816 | lbs_deb_join("ADHOC_RESP: Joined/started '%s', BSSID %pM, channel %d\n", | 1818 | lbs_deb_join("ADHOC_RESP: Joined/started '%s', BSSID %pM, channel %d\n", |
1817 | escape_essid(bss->ssid, bss->ssid_len), | 1819 | escape_ssid(bss->ssid, bss->ssid_len), |
1818 | priv->curbssparams.bssid, | 1820 | priv->curbssparams.bssid, |
1819 | priv->curbssparams.channel); | 1821 | priv->curbssparams.channel); |
1820 | 1822 | ||