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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 20:24:22 +0000 (12:24 -0800)
commitd5985f143875f7d4dc718fa664b70666667877d9
treef83ff1848f63bd3d2583943d387f3235b7c9ff63
parent12bc42c524f045e914b0ee0cfb3eab33646e1acf
ath9k_htc: properly set MAC address and BSSID mask

commit 657eb17d87852c42b55c4b06d5425baa08b2ddb3 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/ath9k/htc_drv_main.c
drivers/net/wireless/ath/ath9k/main.c