wl1251: don't toggle PS, let firmware manage it
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 14 Feb 2015 20:29:30 +0000 (22:29 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 20 Feb 2015 22:05:30 +0000 (00:05 +0200)
commit214dc9eb7d5c61511a428408687d43cf080e1516
tree10fcbb79c7b20663037612cfaca103e34c20b295
parentfc9d1882a7b4ca1182f1b6f12aa87281a2a54f17
wl1251: don't toggle PS, let firmware manage it

This enables dynamic PS in mac80211, which stops it toggling PS based on
network activity and (mostly) keeps it on or off based on the user setting.
This is how the TI driver operates too, which enables PS in firmware and
never touches the setting after that.

Without this I'm constantly getting SYNCHRONIZATION_TIMEOUT events with
my current router. Doing it this way also makes the device accessible
from network much better with much lower ping times.

At least with my current router, PS entry must be severely delayed too
to avoid repeated sync timeouts. This patch adds such delays too.
drivers/net/wireless/wl1251/event.c
drivers/net/wireless/wl1251/main.c
drivers/net/wireless/wl1251/wl1251.h