]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: always set common->macaddr to the MAC adress of a virtual interface
authorFelix Fietkau <nbd@openwrt.org>
Tue, 16 Apr 2013 10:51:57 +0000 (12:51 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Apr 2013 19:20:15 +0000 (15:20 -0400)
commit595abd51e8c1dd2c79e7b5b6fa16d23a163a3f70
treef9f57a4491ffaab9671af0daad50add089997774
parentd7cfb539bf9c242ba8247c2771af7cf6e88313fc
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