Skip to content

Commit c9aca9d

Browse files
David Lamparterlinvjw
authored andcommitted
[PATCH] cfg80211: fix signed macaddress in sysfs
Fix signedness mixup making mac addresses show up strangely (like 00:11:22:33:44:ffffffaa) in /sys/class/ieee80211/*/macaddress. Signed-off-by: David Lamparter <equinox@diac24.net> Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 5ecd310 commit c9aca9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/wireless/sysfs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static ssize_t _show_permaddr(struct device *dev,
3333
struct device_attribute *attr,
3434
char *buf)
3535
{
36-
char *addr = dev_to_rdev(dev)->wiphy.perm_addr;
36+
unsigned char *addr = dev_to_rdev(dev)->wiphy.perm_addr;
3737

3838
return sprintf(buf, "%.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n",
3939
addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);

0 commit comments

Comments
 (0)