]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
iwlagn: update beacon smarter
authorJohannes Berg <johannes.berg@intel.com>
Mon, 10 Oct 2011 14:26:52 +0000 (07:26 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Oct 2011 18:48:09 +0000 (14:48 -0400)
commit3bde2b68cfdeb3b68284172fa7759287a63cd981
treea93a6cc0a34e469b55428d36258653f92566fd0f
parent7e4005cc4ae49100582ee1c97368dd79474f0a82
iwlagn: update beacon smarter

Updating the beacon every time right after one was
transmitted is pointless, most of the time we might
not even have to update it. We will update it every
time it changes, which includes from set_tim(), a
callback iwlwifi didn't implement so far.

This also reduces latency for clients, previously
we would update the beacon right after the previous
one was transmitted, and then a TIM change would
only take effect after that again -- updating the
beacon right after the TIM changes makes the TIM
change go out to the air faster.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-rx.c