]> git.baikalelectronics.ru Git - kernel.git/commit
at76c50x-usb: Make WEP encryption working.
authorAndrea Merello <andrea.merello@gmail.com>
Sat, 24 May 2014 15:16:18 +0000 (17:16 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 May 2014 17:08:10 +0000 (13:08 -0400)
commit9823b8a14a97a21a2fdd06d63d3d52bca5a94e19
tree787e690a6258b95bba2b33e654a66b1035624f5e
parent9e077ef9301882a7a1f6e0194f1901c8c3ade2a4
at76c50x-usb: Make WEP encryption working.

Currently the driver uses HW encryption.
Whenever mac80211 calls the set_key() callback the driver restarts the
whole HW configuration procedure, in order to set (also) the new
WEP key.
However, by doing this, it causes the card to loose association information,
and the HW becomes unable to communicate with the BSS.

This patch adds support for sending another HW command, that sets only
the wep key, instead of resetting all.
Mac80211 key-set requests are thus handled via this new command.

Tested on my at76c503

Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/at76c50x-usb.c
drivers/net/wireless/at76c50x-usb.h