aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-commands.h
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2008-06-11 21:47:09 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-06-14 12:18:08 -0400
commit4564ce8b0e17d91d047aa875843deb2cccf3f268 (patch)
tree46fe73e2085af1e9b62e787014128536f9424529 /drivers/net/wireless/iwlwifi/iwl-commands.h
parent630fe9b6f774dd55b71fe94392101eb00df58762 (diff)
iwlwifi: add bad length check for WEP keys
This patch adds a check for bad length in set key flow. This solves the Oops reported by Thomas Backlund, Joonwoo Park and Ian Schram. It also adds some debug printing that can be useful. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-commands.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-commands.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h
index a093f5b83cb6..b58f79626e10 100644
--- a/drivers/net/wireless/iwlwifi/iwl-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-commands.h
@@ -1002,6 +1002,7 @@ struct iwl_wep_cmd {
1002#define WEP_KEY_WEP_TYPE 1 1002#define WEP_KEY_WEP_TYPE 1
1003#define WEP_KEYS_MAX 4 1003#define WEP_KEYS_MAX 4
1004#define WEP_INVALID_OFFSET 0xff 1004#define WEP_INVALID_OFFSET 0xff
1005#define WEP_KEY_LEN_64 5
1005#define WEP_KEY_LEN_128 13 1006#define WEP_KEY_LEN_128 13
1006 1007
1007/****************************************************************************** 1008/******************************************************************************