]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Staging: wlan-ng: Improved case statements in p80211req_mibset_mibget()
authorClaudiu Beznea <claudiu.beznea@gmail.com>
Tue, 23 Aug 2016 18:26:42 +0000 (21:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Sep 2016 15:51:20 +0000 (17:51 +0200)
commit37f92cf0a5b82be433b8b24b7105bb9f878f7153
tree969a7b9c44fe6f2fecc64be5013bceaa53d1576d
parentcb14a0b4a13ee743bbe40299ce46790ee9ef7f1d
Staging: wlan-ng: Improved case statements in p80211req_mibset_mibget()

This patch improves code from p80211req_mibset_mibget() function by
taking into account that every
DIDmib_dot11smt_dot11WEPDefaultKeysTable_dot11WEPDefaultKeyX with
X in {0, 1, 2, 3} is a bit mask where the (P80211DID_MASK_ITEM <<
P80211DID_LSB_ITEM) mask aka 0x0x0003f000 mask keeps bits representing
the DID item number. To get this item number use P80211DID_ITEM().

Signed-off-by: Claudiu Beznea <claudiu.beznea@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/p80211req.c