]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
mac80211: Fix the wrong WARN_ON message appearing on enabling power save.
authorVivek Natarajan <vivek.natraj@gmail.com>
Thu, 5 Feb 2009 14:35:15 +0000 (20:05 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 13 Feb 2009 18:44:38 +0000 (13:44 -0500)
commit97d97b80984d0207e5c125c1b7b9467aad365d8d
treeca63c74261cb07382c914023f9d913cbefa65b41
parentdec59d6faffb44e741d9c19ffdf368d69a968a54
mac80211: Fix the wrong WARN_ON message appearing on enabling power save.

This issue happens only when we are associated with a 11n AP and power save
is enabled. In the function 'ieee80211_master_start_xmit', ps_disable_work
is queued where wake_queues is called. But before this work is executed,
we check if the queues are stopped in _ieee80211_tx and return TX_AGAIN to
ieee8011_tx which leads to the warning message.
This patch fixes this erroneous case.

Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c