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)
commit347f8fdb610db9cf20959e4eaf3544c30dd6eab1
tree787e690a6258b95bba2b33e654a66b1035624f5e
parent174beab7d4451bc392e92b548d35f500510a2f84
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