carl9170: fix frame drop and WARN due to minstrel_ht change
authorChristian Lamparter <chunkeey@googlemail.com>
Fri, 22 Feb 2013 00:30:44 +0000 (01:30 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 Mar 2013 21:24:25 +0000 (16:24 -0500)
commit5f34608fa2acbfef5a06d0072a978c9943c28a2d
tree0fc97a1023c8fb7c79ab60c3e601cadf859a0504
parenta829148435618174a08154a478e4e64fa44eb4d4
carl9170: fix frame drop and WARN due to minstrel_ht change

With "mac80211/minstrel_ht: add support for using CCK rates"
minstrel_ht selects legacy CCK rates as viable rates for
outgoing frames which might be sent as part of an A-MPDU
[IEEE80211_TX_CTL_AMPDU is set].

This behavior triggered the following WARN_ON in the driver:
> WARNING: at carl9170/tx.c:995 carl9170_op_tx+0x1dd/0x6fd
The driver assumed that the rate control algorithm made a
mistake and dropped the frame.

This patch removes the noisy warning altogether and allows
said A-MPDU frames with CCK sample and/or fallback rates to
be transmitted seamlessly.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/carl9170/tx.c