diff options
Diffstat (limited to 'drivers/net/wireless/mwifiex/sta_rx.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_rx.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/drivers/net/wireless/mwifiex/sta_rx.c b/drivers/net/wireless/mwifiex/sta_rx.c index ed26387eccf5..8b639d7fe6df 100644 --- a/drivers/net/wireless/mwifiex/sta_rx.c +++ b/drivers/net/wireless/mwifiex/sta_rx.c | |||
@@ -183,6 +183,7 @@ int mwifiex_process_sta_rx_packet(struct mwifiex_private *priv, | |||
183 | struct rx_packet_hdr *rx_pkt_hdr; | 183 | struct rx_packet_hdr *rx_pkt_hdr; |
184 | u8 ta[ETH_ALEN]; | 184 | u8 ta[ETH_ALEN]; |
185 | u16 rx_pkt_type, rx_pkt_offset, rx_pkt_length, seq_num; | 185 | u16 rx_pkt_type, rx_pkt_offset, rx_pkt_length, seq_num; |
186 | struct mwifiex_sta_node *sta_ptr; | ||
186 | 187 | ||
187 | local_rx_pd = (struct rxpd *) (skb->data); | 188 | local_rx_pd = (struct rxpd *) (skb->data); |
188 | rx_pkt_type = le16_to_cpu(local_rx_pd->rx_pkt_type); | 189 | rx_pkt_type = le16_to_cpu(local_rx_pd->rx_pkt_type); |
@@ -213,14 +214,25 @@ int mwifiex_process_sta_rx_packet(struct mwifiex_private *priv, | |||
213 | * If the packet is not an unicast packet then send the packet | 214 | * If the packet is not an unicast packet then send the packet |
214 | * directly to os. Don't pass thru rx reordering | 215 | * directly to os. Don't pass thru rx reordering |
215 | */ | 216 | */ |
216 | if (!IS_11N_ENABLED(priv) || | 217 | if ((!IS_11N_ENABLED(priv) && |
218 | !(ISSUPP_TDLS_ENABLED(priv->adapter->fw_cap_info) && | ||
219 | !(local_rx_pd->flags & MWIFIEX_RXPD_FLAGS_TDLS_PACKET))) || | ||
217 | !ether_addr_equal_unaligned(priv->curr_addr, rx_pkt_hdr->eth803_hdr.h_dest)) { | 220 | !ether_addr_equal_unaligned(priv->curr_addr, rx_pkt_hdr->eth803_hdr.h_dest)) { |
218 | mwifiex_process_rx_packet(priv, skb); | 221 | mwifiex_process_rx_packet(priv, skb); |
219 | return ret; | 222 | return ret; |
220 | } | 223 | } |
221 | 224 | ||
222 | if (mwifiex_queuing_ra_based(priv)) { | 225 | if (mwifiex_queuing_ra_based(priv) || |
226 | (ISSUPP_TDLS_ENABLED(priv->adapter->fw_cap_info) && | ||
227 | local_rx_pd->flags & MWIFIEX_RXPD_FLAGS_TDLS_PACKET)) { | ||
223 | memcpy(ta, rx_pkt_hdr->eth803_hdr.h_source, ETH_ALEN); | 228 | memcpy(ta, rx_pkt_hdr->eth803_hdr.h_source, ETH_ALEN); |
229 | if (local_rx_pd->flags & MWIFIEX_RXPD_FLAGS_TDLS_PACKET && | ||
230 | local_rx_pd->priority < MAX_NUM_TID) { | ||
231 | sta_ptr = mwifiex_get_sta_entry(priv, ta); | ||
232 | if (sta_ptr) | ||
233 | sta_ptr->rx_seq[local_rx_pd->priority] = | ||
234 | le16_to_cpu(local_rx_pd->seq_num); | ||
235 | } | ||
224 | } else { | 236 | } else { |
225 | if (rx_pkt_type != PKT_TYPE_BAR) | 237 | if (rx_pkt_type != PKT_TYPE_BAR) |
226 | priv->rx_seq[local_rx_pd->priority] = seq_num; | 238 | priv->rx_seq[local_rx_pd->priority] = seq_num; |