@@ -9648,8 +9648,6 @@ EXPORT_SYMBOL(ieee80211_disable_rssi_reports);
9648
9648
9649
9649
static void ieee80211_ml_reconf_selectors (unsigned long * userspace_selectors )
9650
9650
{
9651
- * userspace_selectors = 0 ;
9652
-
9653
9651
/* these selectors are mandatory for ML reconfiguration */
9654
9652
set_bit (BSS_MEMBERSHIP_SELECTOR_SAE_H2E , userspace_selectors );
9655
9653
set_bit (BSS_MEMBERSHIP_SELECTOR_HE_PHY , userspace_selectors );
@@ -9669,7 +9667,7 @@ void ieee80211_process_ml_reconf_resp(struct ieee80211_sub_if_data *sdata,
9669
9667
sdata -> u .mgd .reconf .removed_links ;
9670
9668
u16 link_mask , valid_links ;
9671
9669
unsigned int link_id ;
9672
- unsigned long userspace_selectors ;
9670
+ unsigned long userspace_selectors [ BITS_TO_LONGS ( 128 )] = {} ;
9673
9671
size_t orig_len = len ;
9674
9672
u8 i , group_key_data_len ;
9675
9673
u8 * pos ;
@@ -9777,7 +9775,7 @@ void ieee80211_process_ml_reconf_resp(struct ieee80211_sub_if_data *sdata,
9777
9775
}
9778
9776
9779
9777
ieee80211_vif_set_links (sdata , valid_links , sdata -> vif .dormant_links );
9780
- ieee80211_ml_reconf_selectors (& userspace_selectors );
9778
+ ieee80211_ml_reconf_selectors (userspace_selectors );
9781
9779
link_mask = 0 ;
9782
9780
for (link_id = 0 ; link_id < IEEE80211_MLD_MAX_NUM_LINKS ; link_id ++ ) {
9783
9781
struct cfg80211_bss * cbss = add_links_data -> link [link_id ].bss ;
@@ -9823,7 +9821,7 @@ void ieee80211_process_ml_reconf_resp(struct ieee80211_sub_if_data *sdata,
9823
9821
link -> u .mgd .conn = add_links_data -> link [link_id ].conn ;
9824
9822
if (ieee80211_prep_channel (sdata , link , link_id , cbss ,
9825
9823
true, & link -> u .mgd .conn ,
9826
- & userspace_selectors )) {
9824
+ userspace_selectors )) {
9827
9825
link_info (link , "mlo: reconf: prep_channel failed\n" );
9828
9826
goto disconnect ;
9829
9827
}
@@ -10152,14 +10150,14 @@ int ieee80211_mgd_assoc_ml_reconf(struct ieee80211_sub_if_data *sdata,
10152
10150
*/
10153
10151
if (added_links ) {
10154
10152
bool uapsd_supported ;
10155
- unsigned long userspace_selectors ;
10153
+ unsigned long userspace_selectors [ BITS_TO_LONGS ( 128 )] = {} ;
10156
10154
10157
10155
data = kzalloc (sizeof (* data ), GFP_KERNEL );
10158
10156
if (!data )
10159
10157
return - ENOMEM ;
10160
10158
10161
10159
uapsd_supported = true;
10162
- ieee80211_ml_reconf_selectors (& userspace_selectors );
10160
+ ieee80211_ml_reconf_selectors (userspace_selectors );
10163
10161
for (link_id = 0 ; link_id < IEEE80211_MLD_MAX_NUM_LINKS ;
10164
10162
link_id ++ ) {
10165
10163
struct ieee80211_supported_band * sband ;
@@ -10235,7 +10233,7 @@ int ieee80211_mgd_assoc_ml_reconf(struct ieee80211_sub_if_data *sdata,
10235
10233
data -> link [link_id ].bss ,
10236
10234
true,
10237
10235
& data -> link [link_id ].conn ,
10238
- & userspace_selectors );
10236
+ userspace_selectors );
10239
10237
if (err )
10240
10238
goto err_free ;
10241
10239
}
0 commit comments