diff options
author | John W. Linville <linville@tuxdriver.com> | 2008-09-30 20:59:05 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:50 -0400 |
commit | 9387b7caf3049168fc97a8a9111af8fe2143af18 (patch) | |
tree | 6a19e5477d6a6badf19788536a9d3e1913ae48e1 /net/ieee80211/ieee80211_wx.c | |
parent | 2819f8ad6da1e24b5dd94a221978e61f2a9c972a (diff) |
wireless: use individual buffers for printing ssid values
Also change escape_ssid to print_ssid to match print_mac semantics.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/ieee80211/ieee80211_wx.c')
-rw-r--r-- | net/ieee80211/ieee80211_wx.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/ieee80211/ieee80211_wx.c b/net/ieee80211/ieee80211_wx.c index 3025140ae721..29eb41695a82 100644 --- a/net/ieee80211/ieee80211_wx.c +++ b/net/ieee80211/ieee80211_wx.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <linux/module.h> | 34 | #include <linux/module.h> |
35 | #include <linux/jiffies.h> | 35 | #include <linux/jiffies.h> |
36 | 36 | ||
37 | #include <net/lib80211.h> | ||
37 | #include <net/ieee80211.h> | 38 | #include <net/ieee80211.h> |
38 | #include <linux/wireless.h> | 39 | #include <linux/wireless.h> |
39 | 40 | ||
@@ -258,6 +259,7 @@ int ieee80211_wx_get_scan(struct ieee80211_device *ieee, | |||
258 | char *ev = extra; | 259 | char *ev = extra; |
259 | char *stop = ev + wrqu->data.length; | 260 | char *stop = ev + wrqu->data.length; |
260 | int i = 0; | 261 | int i = 0; |
262 | DECLARE_SSID_BUF(ssid); | ||
261 | 263 | ||
262 | IEEE80211_DEBUG_WX("Getting scan\n"); | 264 | IEEE80211_DEBUG_WX("Getting scan\n"); |
263 | 265 | ||
@@ -277,7 +279,7 @@ int ieee80211_wx_get_scan(struct ieee80211_device *ieee, | |||
277 | else | 279 | else |
278 | IEEE80211_DEBUG_SCAN("Not showing network '%s (" | 280 | IEEE80211_DEBUG_SCAN("Not showing network '%s (" |
279 | "%pM)' due to age (%dms).\n", | 281 | "%pM)' due to age (%dms).\n", |
280 | escape_ssid(network->ssid, | 282 | print_ssid(ssid, network->ssid, |
281 | network->ssid_len), | 283 | network->ssid_len), |
282 | network->bssid, | 284 | network->bssid, |
283 | jiffies_to_msecs(jiffies - | 285 | jiffies_to_msecs(jiffies - |
@@ -307,6 +309,7 @@ int ieee80211_wx_set_encode(struct ieee80211_device *ieee, | |||
307 | int i, key, key_provided, len; | 309 | int i, key, key_provided, len; |
308 | struct ieee80211_crypt_data **crypt; | 310 | struct ieee80211_crypt_data **crypt; |
309 | int host_crypto = ieee->host_encrypt || ieee->host_decrypt || ieee->host_build_iv; | 311 | int host_crypto = ieee->host_encrypt || ieee->host_decrypt || ieee->host_build_iv; |
312 | DECLARE_SSID_BUF(ssid); | ||
310 | 313 | ||
311 | IEEE80211_DEBUG_WX("SET_ENCODE\n"); | 314 | IEEE80211_DEBUG_WX("SET_ENCODE\n"); |
312 | 315 | ||
@@ -402,7 +405,7 @@ int ieee80211_wx_set_encode(struct ieee80211_device *ieee, | |||
402 | memset(sec.keys[key] + erq->length, 0, | 405 | memset(sec.keys[key] + erq->length, 0, |
403 | len - erq->length); | 406 | len - erq->length); |
404 | IEEE80211_DEBUG_WX("Setting key %d to '%s' (%d:%d bytes)\n", | 407 | IEEE80211_DEBUG_WX("Setting key %d to '%s' (%d:%d bytes)\n", |
405 | key, escape_ssid(sec.keys[key], len), | 408 | key, print_ssid(ssid, sec.keys[key], len), |
406 | erq->length, len); | 409 | erq->length, len); |
407 | sec.key_sizes[key] = len; | 410 | sec.key_sizes[key] = len; |
408 | if (*crypt) | 411 | if (*crypt) |