iwlwifi: fix and describe iwl_adjust_beacon_interval
commitea196fdbb982150c19854f90773cb8b9bf331049
authorJohannes Berg <johannes.berg@intel.com>
Fri, 3 Sep 2010 13:30:55 +0000 (3 06:30 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Sat, 11 Sep 2010 15:52:01 +0000 (11 08:52 -0700)
treea5088223229900aca5edefec1ef175c2e61a09bf
parentf1f270b25c6ece9ff65f7ad970850338a198d52f
iwlwifi: fix and describe iwl_adjust_beacon_interval

The iwl_adjust_beacon_interval function is a bit
of black magic, so add comments to it describing
what it does. Also, in the case when there's no
beacon interval set, program the default into
the device (instead of adjusting, which results
in the max) since using the max in that case
interacts badly with dual-mode/PAN parameters.

Also update the PAN parameters accordingly and
use the same constant as here.

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-hcmd.c
drivers/net/wireless/iwlwifi/iwl-core.c