Skip to contentSkip to conversation

PATCH to correct dump of WPA IE

PATCH Larry Finger 1 participant 1 message Jun 8, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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 <[email protected]>. This patch applies to the current master branch of the Linville tree.

net/ieee80211/softmac/ieee80211softmac_wx.c +0 -0
index 27edb2b..55c5c26 100644
@@ -388,7 +388,7 @@ ieee80211softmac_wx_set_genie(struct net
		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 {