]> git.baikalelectronics.ru Git - kernel.git/commit
mwl8k: fix condition in mwl8k_cmd_encryption_remove_key()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 17 Jan 2012 07:33:31 +0000 (10:33 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 17 Jan 2012 15:12:26 +0000 (10:12 -0500)
commit2676ef50bacc93eb40fcf40b91ef989ed3c3bd33
tree1923918d9a1e79b8ed89ce3e07a1a8cf0c0f06ee
parentdc268043f76483cca0b9163456cc0a946c9c50c7
mwl8k: fix condition in mwl8k_cmd_encryption_remove_key()

The intent here was to check whether key->cipher was WEP40 or WEP104.
We do a similar check correctly in several other places in this file.
The current condition is always true.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwl8k.c