mt76: fix handling ps-poll frames
authorFelix Fietkau <nbd@nbd.name>
Sat, 29 Sep 2018 11:13:09 +0000 (13:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:19:29 +0000 (08:19 +0100)
commit741a445a88e4aab3f876cd47527f72bef2c2ff09
treec0d42655e3bfc890651e29a34141bc3c4da90dd4
parentddb4299f1d78a258254ead08c97d397665c94c2f
mt76: fix handling ps-poll frames

[ Upstream commit 36d910960fae3f9e74bedf3e0ef39ee26bdaa51f ]

Hardware station lookup for pspoll frames can fail, which makes the driver
ignore ps-poll frames. Fix the resulting powersave issues by looking up
the station for pspoll frames in software

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mac80211.c