]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Fix ps-qos network latency handling
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>
Wed, 9 Jun 2010 06:51:52 +0000 (09:51 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 15 Jun 2010 20:00:48 +0000 (16:00 -0400)
commit9aa350e429a34eab62a52e4b1ce309ff9ab5a084
treeff55ef6186cd46d87ca4e54efbbe82f5ecc68f1e
parentea9f726cbbb5f7a9ba99dc871346cd916e386311
mac80211: Fix ps-qos network latency handling

The ps-qos latency handling is broken. It uses predetermined latency values
to select specific dynamic PS timeouts. With common AP configurations, these
values overlap with beacon interval and are therefore essentially useless
(for network latencies less than the beacon interval, PSM is disabled.)

This patch remedies the problem by replacing the predetermined network latency
values with one high value (1900ms) which is used to go trigger full psm. For
backwards compatibility, the value 2000ms is still mapped to a dynamic ps
timeout of 100ms.

Currently also the mac80211 internal value for storing user space configured
dynamic PSM values is incorrectly in the driver visible ieee80211_conf struct.
Move it to the ieee80211_local struct.

Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/mac80211.h
net/mac80211/cfg.c
net/mac80211/ieee80211_i.h
net/mac80211/main.c
net/mac80211/mlme.c