diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2008-10-29 04:43:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-10 15:17:33 -0500 |
commit | 2a941ecb5178cb8c94190f17a42f35a772cbc5c6 (patch) | |
tree | 0fd6c1ff6bdb4a2c26fc268fd055e1dd88238f7f /net | |
parent | 8469cdef1f123e2e3e56645f1ac26c7cfb333d9c (diff) |
wireless: fix two bad print_ssid conversions
This patch fixes two current compilation problems. They showed up
with CONFIG_IEEE80211_DEBUG defined.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/ieee80211/ieee80211_wx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ieee80211/ieee80211_wx.c b/net/ieee80211/ieee80211_wx.c index 29eb41695a82..7cc4e5ee3660 100644 --- a/net/ieee80211/ieee80211_wx.c +++ b/net/ieee80211/ieee80211_wx.c | |||
@@ -399,6 +399,10 @@ int ieee80211_wx_set_encode(struct ieee80211_device *ieee, | |||
399 | 399 | ||
400 | /* If a new key was provided, set it up */ | 400 | /* If a new key was provided, set it up */ |
401 | if (erq->length > 0) { | 401 | if (erq->length > 0) { |
402 | #ifdef CONFIG_IEEE80211_DEBUG | ||
403 | DECLARE_SSID_BUF(ssid); | ||
404 | #endif | ||
405 | |||
402 | len = erq->length <= 5 ? 5 : 13; | 406 | len = erq->length <= 5 ? 5 : 13; |
403 | memcpy(sec.keys[key], keybuf, erq->length); | 407 | memcpy(sec.keys[key], keybuf, erq->length); |
404 | if (len > erq->length) | 408 | if (len > erq->length) |