On Mon, 5 Sep 2011 17:53:06 -0400 (EDT) Justin Piszcz <jpiszcz@xxxxxxxxxxxxxxx> wrote: > Hello, > > Saw this on one of my Linux machines with a Linux (community > supported USB stick): > > [88927.073741] ------------[ cut here ]------------ > [88927.073762] WARNING: at drivers/net/wireless/ath/carl9170/tx.c:351 I'm dropping LKML from cc, no need to write there if there is a specialized mailing list. It looks like the bitmap code in carl9170 needs reviewing. I spotted one error immediately. bitmap_zero() takes the number of bits, not the number of long integers. Chances are not very high that it would help in your case, but here's the patch. I hope to give carl9170 some good testing before submitting that patch formally. carl9170: fix bitmap initialization From: Pavel Roskin <proski@xxxxxxx> bitmap_zero() takes the number of bits, not the long integers used to keep them. Signed-off-by: Pavel Roskin <proski@xxxxxxx> --- drivers/net/wireless/ath/carl9170/main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/wireless/ath/carl9170/main.c b/drivers/net/wireless/ath/carl9170/main.c index af351ec..2f68747 100644 --- a/drivers/net/wireless/ath/carl9170/main.c +++ b/drivers/net/wireless/ath/carl9170/main.c @@ -1411,7 +1411,7 @@ static int carl9170_op_ampdu_action(struct ieee80211_hw *hw, sta_info->stats[tid].req = false; if (tid_info) { - bitmap_zero(tid_info->bitmap, CARL9170_BAW_SIZE); + bitmap_zero(tid_info->bitmap, CARL9170_BAW_BITS); tid_info->state = CARL9170_TID_STATE_IDLE; } rcu_read_unlock(); -- Regards, Pavel Roskin -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html