Commit:     c9aca9da026036306aa00a928f6acb4b94eb3c33
Parent:     5ecd3100e695228ac5e0ce0e325e252c0f11806f
Author:     David Lamparter <[EMAIL PROTECTED]>
AuthorDate: Mon Jun 4 00:06:51 2007 +0200
Committer:  John W. Linville <[EMAIL PROTECTED]>
CommitDate: Mon Jun 11 17:47:41 2007 -0400

    [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 <[EMAIL PROTECTED]>
    Acked-by: Johannes Berg <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
 net/wireless/sysfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/wireless/sysfs.c b/net/wireless/sysfs.c
index 3ebae14..88aaacd 100644
--- a/net/wireless/sysfs.c
+++ b/net/wireless/sysfs.c
@@ -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]);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to