summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKalle Valo <kalle.valo@nokia.com>2009-12-30 13:54:03 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2010-01-05 22:13:16 (GMT)
commitfc5f75773c0b3c5b44785e4efcc54c5f496211a9 (patch)
tree56789050d60906ffcccf29355e41a347747071ba /drivers
parent1990ca6113399be9249433d5ab377a2a444f1dd8 (diff)
downloadlinux-fsl-qoriq-fc5f75773c0b3c5b44785e4efcc54c5f496211a9.tar.xz
mac80211: fix ieee80211_change_mac() to use struct sockaddr
Setting the mac address from user space was buggy. For example, when executing this command: ip link set wlan0 address 00:1f:df:88:cd:55 mac80211 used the address 01:00:00:1f:df:88 instead. It was shifted two bytes. The reason was that the addr (type of void *) provided to ieee80211_change_mac() is actually of type struct sockaddr, not just the mac address array. Also the call to eth_mac_addr() expects the address to be struct sockaddr. Signed-off-by: Kalle Valo <kalle.valo@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions