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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jun 2013 17:38:44 +0000 (10:38 -0700)
commit04778bad36603c0ced7f1540671de81e9b41ef0c
treedaecb369376233900bc3d73f1ed87a49ec69b6c4
parent386f1a109388d7eeb485008c4089ce8458731156
carl9170: fix frame drop and WARN due to minstrel_ht change

commit 5f34608fa2acbfef5a06d0072a978c9943c28a2d upstream.

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>
Cc: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/carl9170/tx.c