diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2008-10-29 09:43:50 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-10 15:17:33 -0500 |
commit | 2a941ecb5178cb8c94190f17a42f35a772cbc5c6 (patch) | |
tree | 0fd6c1ff6bdb4a2c26fc268fd055e1dd88238f7f /net/ieee80211/ieee80211_wx.c | |
parent | 8469cdef1f123e2e3e56645f1ac26c7cfb333d9c (diff) | |
download | op-kernel-dev-2a941ecb5178cb8c94190f17a42f35a772cbc5c6.zip op-kernel-dev-2a941ecb5178cb8c94190f17a42f35a772cbc5c6.tar.gz |
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/ieee80211/ieee80211_wx.c')
-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 29eb416..7cc4e5e 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, /* If a new key was provided, set it up */ if (erq->length > 0) { +#ifdef CONFIG_IEEE80211_DEBUG + DECLARE_SSID_BUF(ssid); +#endif + len = erq->length <= 5 ? 5 : 13; memcpy(sec.keys[key], keybuf, erq->length); if (len > erq->length) |