Skip to content

Commit

Permalink
wireless: fix two bad print_ssid conversions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Holger Schurig authored and John W. Linville committed Nov 10, 2008
1 parent 8469cde commit 2a941ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/ieee80211/ieee80211_wx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2a941ec

Please sign in to comment.