brcmutil: assure unused bits are cleared in 11n chanspec
authorArend van Spriel <arend@broadcom.com>
Tue, 27 May 2014 10:56:25 +0000 (12:56 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 May 2014 17:10:25 +0000 (13:10 -0400)
commit6833965c461194eddce581dd8cfa7eedf744a019
tree78d557969de662880d8d5885f7ab67d34896b7ee
parent71ded72a2bcd8920e85122f54c230684d6f77119
brcmutil: assure unused bits are cleared in 11n chanspec

The firmware channel specification is a bitfield using a
16-bit integer, but only 14 lsb are used. Upon encoding
this value assure all 16 bits are cleared.

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Daniel (Deognyoun) Kim <dekim@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmutil/d11.c