iwlagn: use proper good CRC threshold behaviour
authorJohannes Berg <johannes.berg@intel.com>
Wed, 20 Apr 2011 16:10:39 +0000 (09:10 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Sat, 30 Apr 2011 15:40:14 +0000 (08:40 -0700)
commitd2690c0db7146b12e4fc2d572053c823e512758a
treefc8254556fa4adb4f737a3b5f41f346fe2fa90d3
parentc1821c95c13240c2c8d3da8845c2021e575e29c6
iwlagn: use proper good CRC threshold behaviour

New microcode versions use the good CRC threshold
field differently, as a flag, and in that case we
should set it to 1/0 instead of 1/65535 for an
active/passive scan.

The new behaviour is advertised by the uCode with
a feature flag.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn-lib.c
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-dev.h