iwlwifi: do not set the sequence control bit is not needed
commit3b610f6383fc35467b8451621b7ce4d154196e4a
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Thu, 8 Dec 2011 23:52:00 +0000 (8 15:52 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Jan 2012 22:17:15 +0000 (6 14:17 -0800)
tree423f9cb987c81ccc8115de91c3e74fc659624a3c
parent240606b385bb9d0a5c4dec19dfd364289bf478ab
iwlwifi: do not set the sequence control bit is not needed

commit 123877b80ed62c3b897c53357b622574c023b642 upstream.

Check the IEEE80211_TX_CTL_ASSIGN_SEQ flag from mac80211, then decide how to
set the TX_CMD_FLG_SEQ_CTL_MSK bit. Setting the wrong bit in BAR frame whill
make the firmware to increment the sequence number which is incorrect and
cause unknown behavior.

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/iwlwifi/iwl-agn-tx.c