@@ -236,21 +236,13 @@ static void iwl_mvm_add_rtap_sniffer_config(struct iwl_mvm *mvm,
236
236
static void iwl_mvm_pass_packet_to_mac80211 (struct iwl_mvm * mvm ,
237
237
struct napi_struct * napi ,
238
238
struct sk_buff * skb , int queue ,
239
- struct ieee80211_sta * sta ,
240
- struct ieee80211_link_sta * link_sta )
239
+ struct ieee80211_sta * sta )
241
240
{
242
241
if (unlikely (iwl_mvm_check_pn (mvm , skb , queue , sta ))) {
243
242
kfree_skb (skb );
244
243
return ;
245
244
}
246
245
247
- if (sta && sta -> valid_links && link_sta ) {
248
- struct ieee80211_rx_status * rx_status = IEEE80211_SKB_RXCB (skb );
249
-
250
- rx_status -> link_valid = 1 ;
251
- rx_status -> link_id = link_sta -> link_id ;
252
- }
253
-
254
246
ieee80211_rx_napi (mvm -> hw , sta , skb , napi );
255
247
}
256
248
@@ -588,7 +580,7 @@ static void iwl_mvm_release_frames(struct iwl_mvm *mvm,
588
580
while ((skb = __skb_dequeue (skb_list ))) {
589
581
iwl_mvm_pass_packet_to_mac80211 (mvm , napi , skb ,
590
582
reorder_buf -> queue ,
591
- sta , NULL /* FIXME */ );
583
+ sta );
592
584
reorder_buf -> num_stored -- ;
593
585
}
594
586
}
@@ -2213,6 +2205,11 @@ void iwl_mvm_rx_mpdu_mq(struct iwl_mvm *mvm, struct napi_struct *napi,
2213
2205
if (IS_ERR (sta ))
2214
2206
sta = NULL ;
2215
2207
link_sta = rcu_dereference (mvm -> fw_id_to_link_sta [id ]);
2208
+
2209
+ if (sta && sta -> valid_links && link_sta ) {
2210
+ rx_status -> link_valid = 1 ;
2211
+ rx_status -> link_id = link_sta -> link_id ;
2212
+ }
2216
2213
}
2217
2214
} else if (!is_multicast_ether_addr (hdr -> addr2 )) {
2218
2215
/*
@@ -2356,8 +2353,7 @@ void iwl_mvm_rx_mpdu_mq(struct iwl_mvm *mvm, struct napi_struct *napi,
2356
2353
!(desc -> amsdu_info & IWL_RX_MPDU_AMSDU_LAST_SUBFRAME ))
2357
2354
rx_status -> flag |= RX_FLAG_AMSDU_MORE ;
2358
2355
2359
- iwl_mvm_pass_packet_to_mac80211 (mvm , napi , skb , queue , sta ,
2360
- link_sta );
2356
+ iwl_mvm_pass_packet_to_mac80211 (mvm , napi , skb , queue , sta );
2361
2357
}
2362
2358
out :
2363
2359
rcu_read_unlock ();
0 commit comments