linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wireless: fix two bad print_ssid conversions
@ 2008-10-29  8:43 Holger Schurig
  2008-10-29 12:56 ` John W. Linville
  0 siblings, 1 reply; 2+ messages in thread
From: Holger Schurig @ 2008-10-29  8:43 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless

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>

Index: linux-wl/net/ieee80211/ieee80211_rx.c
===================================================================
--- linux-wl.orig/net/ieee80211/ieee80211_rx.c	2008-10-29 08:22:20.000000000 +0100
+++ linux-wl/net/ieee80211/ieee80211_rx.c	2008-10-29 08:34:21.000000000 +0100
@@ -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;
 
Index: linux-wl/net/ieee80211/ieee80211_wx.c
===================================================================
--- linux-wl.orig/net/ieee80211/ieee80211_wx.c	2008-10-29 08:22:20.000000000 +0100
+++ linux-wl/net/ieee80211/ieee80211_wx.c	2008-10-29 08:36:07.000000000 +0100
@@ -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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] wireless: fix two bad print_ssid conversions
  2008-10-29  8:43 [PATCH] wireless: fix two bad print_ssid conversions Holger Schurig
@ 2008-10-29 12:56 ` John W. Linville
  0 siblings, 0 replies; 2+ messages in thread
From: John W. Linville @ 2008-10-29 12:56 UTC (permalink / raw)
  To: Holger Schurig; +Cc: linux-wireless

On Wed, Oct 29, 2008 at 09:43:50AM +0100, Holger Schurig wrote:
> 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>

Cool, thanks!

John
-- 
John W. Linville		Linux should be at the core
linville@tuxdriver.com			of your literate lifestyle.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-29 12:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-29  8:43 [PATCH] wireless: fix two bad print_ssid conversions Holger Schurig
2008-10-29 12:56 ` John W. Linville

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).