]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
[PATCH] wireless: correct dump of WPA IE
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 8 Jun 2006 14:47:42 +0000 (09:47 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Jun 2006 19:48:14 +0000 (15:48 -0400)
In net/ieee80211/softmac/ieee80211softmac_wx.c, there is a bug that
prints extended sign information whenever the byte value exceeds
0x7f. The following patch changes the printk to use a u8 cast to limit
the output to 2 digits. This bug was first noticed by Dan Williams
<dcbw@redhat.com>. This patch applies to the current master branch
of the Linville tree.

Signed-Off-By: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/ieee80211/softmac/ieee80211softmac_wx.c

index 22aa6199185b4161c820f9ca351a24e0450cda7c..0e65ff4e33fc035259b1e26a1c1f6ce57468d17b 100644 (file)
@@ -388,7 +388,7 @@ ieee80211softmac_wx_set_genie(struct net_device *dev,
                memcpy(mac->wpa.IE, extra, wrqu->data.length);
                dprintk(KERN_INFO PFX "generic IE set to ");
                for (i=0;i<wrqu->data.length;i++)
-                       dprintk("%.2x", mac->wpa.IE[i]);
+                       dprintk("%.2x", (u8)mac->wpa.IE[i]);
                dprintk("\n");
                mac->wpa.IElen = wrqu->data.length;
        } else {