staging: wlags49_h2: Make key setting more reliable
authorDavid Kilroy <kilroyd@googlemail.com>
Sun, 9 Oct 2011 11:11:35 +0000 (12:11 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 17 Oct 2011 22:22:38 +0000 (15:22 -0700)
commit05df482e6e41734bb68221b2aae50ea8a3911c5b
tree9939fce19cdec43526996030badfe5efb06ed220
parent68da105637af306f5113441812c13209e4f939c4
staging: wlags49_h2: Make key setting more reliable

Share logic between encodeext and encode, so that we can handle
subtle differences between them (implied set_tx), and clear the
appropriate keys if you attempt to switch straight from WPA to
WEP and vice versa.

Also reinstate the TX buffer flush, and ensure the key index is
written to the card little endian.

Signed-off-by: David Kilroy <kilroyd@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/wlags49_h2/wl_internal.h
drivers/staging/wlags49_h2/wl_wext.c