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)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 15 Feb 2014 19:20:11 +0000 (19:20 +0000)
commitf7a9877cc68188252558001c9f6907fcb8af0b0f
treea96b040771289d25d6c26ef551ce02539a287794
parentbfefd2a8c3db2a537c7effa34ab84cadbcadbd9e
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: Ben Hutchings <ben@decadent.org.uk>
drivers/net/wireless/ath/ath9k/htc_drv_main.c
drivers/net/wireless/ath/ath9k/main.c