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:25:12 +0000 (12:25 -0800)
commitd10d0a2337097fa907f22af6ad0ae0dc0ff39fbf
tree15ee4f1e2a59a450453723f483bddb147c584d89
parent8d0085e1d969886ea00d97ef4e9d9de5d56585b3
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