linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Holger Schurig <hs4233@mail.mn-solutions.de>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: linux-wireless@vger.kernel.org
Subject: [PATCH] wireless: fix two bad print_ssid conversions
Date: Wed, 29 Oct 2008 09:43:50 +0100	[thread overview]
Message-ID: <200810290943.50945.hs4233@mail.mn-solutions.de> (raw)

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)

             reply	other threads:[~2008-10-29  8:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-29  8:43 Holger Schurig [this message]
2008-10-29 12:56 ` [PATCH] wireless: fix two bad print_ssid conversions John W. Linville

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200810290943.50945.hs4233@mail.mn-solutions.de \
    --to=hs4233@mail.mn-solutions.de \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).