提交 c4c205f3 编写于 作者: B Bob Copeland 提交者: Johannes Berg

mac80211: assign seqnums for group QoS frames

According to 802.11-2012 9.3.2.10, paragraph 4, QoS
data frames with a group address in the Address 1 field
have sequence numbers allocated from the same counter
as non-QoS data and management frames.  Without this
flag, some drivers may not assign sequence numbers, and
in rare cases frames might get dropped.  Set the control
flag accordingly.
Signed-off-by: NBob Copeland <bob@cozybit.com>
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 a4ef66a9
...@@ -781,9 +781,11 @@ ieee80211_tx_h_sequence(struct ieee80211_tx_data *tx) ...@@ -781,9 +781,11 @@ ieee80211_tx_h_sequence(struct ieee80211_tx_data *tx)
/* /*
* Anything but QoS data that has a sequence number field * Anything but QoS data that has a sequence number field
* (is long enough) gets a sequence number from the global * (is long enough) gets a sequence number from the global
* counter. * counter. QoS data frames with a multicast destination
* also use the global counter (802.11-2012 9.3.2.10).
*/ */
if (!ieee80211_is_data_qos(hdr->frame_control)) { if (!ieee80211_is_data_qos(hdr->frame_control) ||
is_multicast_ether_addr(hdr->addr1)) {
/* driver should assign sequence number */ /* driver should assign sequence number */
info->flags |= IEEE80211_TX_CTL_ASSIGN_SEQ; info->flags |= IEEE80211_TX_CTL_ASSIGN_SEQ;
/* for pure STA mode without beacons, we can do it */ /* for pure STA mode without beacons, we can do it */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册