iwlagn: fix warning when set WEP key
authorMohamed Abbas <mohamed.abbas@intel.com>
Wed, 11 Mar 2009 18:17:59 +0000 (11:17 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Mar 2009 22:09:47 +0000 (18:09 -0400)
commit48676eb3c3de9013de7d9a63fb8ffb70cd540d95
tree2eddd37d83a30c3546ae9cdef110cec4f670b478
parentfd9377ee6c351b3fd27bcc56fd5e24622df180bb
iwlagn: fix warning when set WEP key

iwl_clear_station_table will be called every time rxon called.
In this function ucode_key_table is set to 0 even though a static
WEP security is set. This will cause in many warning and might be
an issue if dynamic WEP is set. This patch make sure we keep track
of all existing static WEP when this function is called.

Signed-off-by: Mohamed Abbas <mohamed.abbas@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-sta.c