Use for_each_link() where possible
This takes care of the places that the spatch did not catch already. Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
This commit is contained in:
parent
dbdf7ef679
commit
11f26fed64
1 changed files with 2 additions and 8 deletions
|
@ -4034,12 +4034,9 @@ static int wpa_sm_set_ml_info(struct wpa_supplicant *wpa_s)
|
||||||
wpa_mlo.valid_links = drv_mlo.valid_links;
|
wpa_mlo.valid_links = drv_mlo.valid_links;
|
||||||
wpa_mlo.req_links = drv_mlo.req_links;
|
wpa_mlo.req_links = drv_mlo.req_links;
|
||||||
|
|
||||||
for (i = 0; i < MAX_NUM_MLD_LINKS; i++) {
|
for_each_link(drv_mlo.req_links, i) {
|
||||||
struct wpa_bss *bss;
|
struct wpa_bss *bss;
|
||||||
|
|
||||||
if (!(drv_mlo.req_links & BIT(i)))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
bss = wpa_supplicant_get_new_bss(wpa_s, drv_mlo.links[i].bssid);
|
bss = wpa_supplicant_get_new_bss(wpa_s, drv_mlo.links[i].bssid);
|
||||||
if (!bss) {
|
if (!bss) {
|
||||||
wpa_supplicant_update_scan_results(wpa_s);
|
wpa_supplicant_update_scan_results(wpa_s);
|
||||||
|
@ -5863,13 +5860,10 @@ static void wpas_tid_link_map(struct wpa_supplicant *wpa_s,
|
||||||
pos += res;
|
pos += res;
|
||||||
|
|
||||||
if (!info->default_map) {
|
if (!info->default_map) {
|
||||||
for (i = 0; i < MAX_NUM_MLD_LINKS && end > pos; i++) {
|
for_each_link(info->valid_links, i) {
|
||||||
char uplink_map_str[9];
|
char uplink_map_str[9];
|
||||||
char downlink_map_str[9];
|
char downlink_map_str[9];
|
||||||
|
|
||||||
if (!(info->valid_links & BIT(i)))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
bitmap_to_str(info->t2lmap[i].uplink, uplink_map_str);
|
bitmap_to_str(info->t2lmap[i].uplink, uplink_map_str);
|
||||||
bitmap_to_str(info->t2lmap[i].downlink,
|
bitmap_to_str(info->t2lmap[i].downlink,
|
||||||
downlink_map_str);
|
downlink_map_str);
|
||||||
|
|
Loading…
Reference in a new issue