diff options
author | David Kilroy <kilroyd@googlemail.com> | 2011-10-09 11:11:35 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-10-17 22:22:38 (GMT) |
commit | 05df482e6e41734bb68221b2aae50ea8a3911c5b (patch) | |
tree | 9939fce19cdec43526996030badfe5efb06ed220 /drivers/staging/wlags49_h2/wl_internal.h | |
parent | 68da105637af306f5113441812c13209e4f939c4 (diff) | |
download | linux-fsl-qoriq-05df482e6e41734bb68221b2aae50ea8a3911c5b.tar.xz |
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>
Diffstat (limited to 'drivers/staging/wlags49_h2/wl_internal.h')
-rw-r--r-- | drivers/staging/wlags49_h2/wl_internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/wlags49_h2/wl_internal.h b/drivers/staging/wlags49_h2/wl_internal.h index 9ed2857..5753408 100644 --- a/drivers/staging/wlags49_h2/wl_internal.h +++ b/drivers/staging/wlags49_h2/wl_internal.h @@ -980,6 +980,12 @@ struct wl_private #ifdef USE_WDS WVLAN_WDS_IF wds_port[NUM_WDS_PORTS]; #endif // USE_WDS + + /* Track whether the card is using WEP encryption or WPA + * so we know what to disable next time through. + * IW_ENCODE_ALG_NONE, IW_ENCODE_ALG_WEP, IW_ENCODE_ALG_TKIP + */ + int wext_enc; }; // wl_private #define wl_priv(dev) ((struct wl_private *) netdev_priv(dev)) |