ath9k_htc: properly set MAC address and BSSID mask
authorMathy Vanhoef <vanhoefm@gmail.com>
Thu, 28 Nov 2013 11:21:45 +0000 (12:21 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 17 Dec 2013 18:58:24 +0000 (13:58 -0500)
commit657eb17d87852c42b55c4b06d5425baa08b2ddb3
treef4c986602af7eb158b9987ab25bcc1cfbd3c1ff4
parentb6a15802eee2dd8d401f5f89af31804f5a77f429
ath9k_htc: properly set MAC address and BSSID mask

Pick the MAC address of the first virtual interface as the new hardware MAC
address. Set BSSID mask according to this MAC address. This fixes CVE-2013-4579.

Signed-off-by: Mathy Vanhoef <vanhoefm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc_drv_main.c
drivers/net/wireless/ath/ath9k/main.c