Skip to content

Commit

Permalink
[PATCH] cfg80211: fix signed macaddress in sysfs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Lamparter authored and John W. Linville committed Jun 11, 2007
1 parent 5ecd310 commit c9aca9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/wireless/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static ssize_t _show_permaddr(struct device *dev,
struct device_attribute *attr,
char *buf)
{
char *addr = dev_to_rdev(dev)->wiphy.perm_addr;
unsigned char *addr = dev_to_rdev(dev)->wiphy.perm_addr;

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

0 comments on commit c9aca9d

Please sign in to comment.