]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: avoid sending too many commands
authorJohannes Berg <johannes.berg@intel.com>
Fri, 3 Sep 2010 13:32:21 +0000 (06:32 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Sat, 11 Sep 2010 15:51:39 +0000 (08:51 -0700)
commitb40df461327891e3d4babfcff91976cb605222fe
tree99d8574d1b8172b4f527d6674908081b6e279355
parent59b4d33b5913b83a7c22d2c775c75175a71368f1
iwlwifi: avoid sending too many commands

When the PAN context is unused, there's no
need to continually update it in the device.
So track which contexts are active (with the
special case that the WLAN context is always
active ...) and only send their commands to
the device when needed.

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