ath9k: always set common->macaddr to the MAC adress of a virtual interface
commitab11bb28fb3b047f0e5c275d4530519cd2323c8d
authorFelix Fietkau <nbd@openwrt.org>
Tue, 16 Apr 2013 10:51:57 +0000 (16 12:51 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Apr 2013 19:20:15 +0000 (22 15:20 -0400)
treef9f57a4491ffaab9671af0daad50add089997774
parentecbbed32e7c2ad7d9a6305b02e11502b51f2605c
ath9k: always set common->macaddr to the MAC adress of a virtual interface

In some cases it can be useful to change the MAC address of a virtual
interface to something that's completely different from the EEPROM
stored MAC address. In this case it is a bad idea to use the EEPROM MAC
address for calculating the BSSID mask, as that would make it too wide.

In one case a few devices have been observed to send ACKs for many
packets on the channel not directed at them, which results in a neat
Denial of Service attack on the channel.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/main.c