Skip to contentSkip to conversation

wireless: fix two bad print_ssid conversions

PATCH In review Holger Schurig 2 participants 2 messages Oct 29, 2008 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wireless: fix two bad print_ssid conversions

This patch fixes two current compilation problems. They showed up with CONFIG_IEEE80211_DEBUG defined.

net/ieee80211/ieee80211_rx.c +1 -1
Index: linux-wl/net/ieee80211/ieee80211_rx.c
===================================================================
@@ -1178,7 +1178,7 @@ static int ieee80211_parse_info_param(st
 
 			IEEE80211_DEBUG_MGMT("MFIE_TYPE_SSID: '%s' len=%d.\n",
 					     print_ssid(ssid, network->ssid,
-							network->ssid_len);
+							network->ssid_len),
 					     network->ssid_len);
 			break;
 
net/ieee80211/ieee80211_wx.c +4 -0
Index: linux-wl/net/ieee80211/ieee80211_wx.c
===================================================================
@@ -399,6 +399,10 @@ int ieee80211_wx_set_encode(struct ieee8
 
 	/* 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)