]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: fix and describe iwl_adjust_beacon_interval
authorJohannes Berg <johannes.berg@intel.com>
Fri, 3 Sep 2010 13:30:55 +0000 (06:30 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Sat, 11 Sep 2010 15:52:01 +0000 (08:52 -0700)
commitf5b4744050a1328de0654202d32ae01fd031200c
treea5088223229900aca5edefec1ef175c2e61a09bf
parent8e47fa698ad6d74559b306ff851b0889a027e8db
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