]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: stop tx before doing hw config and rate update
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Fri, 2 Sep 2011 08:21:59 +0000 (13:51 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 Sep 2011 17:56:18 +0000 (13:56 -0400)
commit354422863c56f9717b36a36e703435ccd68fabc0
tree05216b06c2ff8838053602d0754fc7f491a275bb
parent696c28fe556284419480255ae7dd25bbdadd7aa6
mac80211: stop tx before doing hw config and rate update

The assumption is that during the hw config, transmission was
already stopped by mac80211. Sometimes the AP can be switching
b/w the ht modes due to intolerant or etc where STA is in
the middle of transmission. In such scenario, buffer overflow
was observed at driver side. And also before updating the rate
control, the frames are continued to xmited with older rates.
This patch ensures that the frames are always xmitted with
updated rates and avoid buffer overflow.

Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c