File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -667,19 +667,22 @@ static int sta_info_insert_finish(struct sta_info *sta) __acquires(RCU)
667
667
668
668
list_add_tail_rcu (& sta -> list , & local -> sta_list );
669
669
670
+ /* update channel context before notifying the driver about state
671
+ * change, this enables driver using the updated channel context right away.
672
+ */
673
+ if (sta -> sta_state >= IEEE80211_STA_ASSOC ) {
674
+ ieee80211_recalc_min_chandef (sta -> sdata );
675
+ if (!sta -> sta .support_p2p_ps )
676
+ ieee80211_recalc_p2p_go_ps_allowed (sta -> sdata );
677
+ }
678
+
670
679
/* notify driver */
671
680
err = sta_info_insert_drv_state (local , sdata , sta );
672
681
if (err )
673
682
goto out_remove ;
674
683
675
684
set_sta_flag (sta , WLAN_STA_INSERTED );
676
685
677
- if (sta -> sta_state >= IEEE80211_STA_ASSOC ) {
678
- ieee80211_recalc_min_chandef (sta -> sdata );
679
- if (!sta -> sta .support_p2p_ps )
680
- ieee80211_recalc_p2p_go_ps_allowed (sta -> sdata );
681
- }
682
-
683
686
/* accept BA sessions now */
684
687
clear_sta_flag (sta , WLAN_STA_BLOCK_BA );
685
688
You can’t perform that action at this time.
0 commit comments