developer | 4e0da23 | 2022-05-09 13:05:53 +0800 | [diff] [blame] | 1 | --- a/wpa_supplicant/wpa_supplicant.c |
| 2 | +++ b/wpa_supplicant/wpa_supplicant.c |
developer | 198585d | 2022-09-22 17:12:54 +0800 | [diff] [blame^] | 3 | @@ -2539,11 +2539,13 @@ void ibss_mesh_setup_freq(struct wpa_sup |
developer | 4e0da23 | 2022-05-09 13:05:53 +0800 | [diff] [blame] | 4 | for (j = 0; j < wpa_s->last_scan_res_used; j++) { |
| 5 | struct wpa_bss *bss = wpa_s->last_scan_res[j]; |
| 6 | |
| 7 | - if (ssid->mode != WPAS_MODE_IBSS) |
| 8 | + /* Don't adjust control freq in case of fixed_freq */ |
| 9 | + if (ssid->fixed_freq) { |
| 10 | + obss_scan = 0; |
| 11 | break; |
| 12 | + } |
| 13 | |
| 14 | - /* Don't adjust control freq in case of fixed_freq */ |
| 15 | - if (ssid->fixed_freq) |
| 16 | + if (ssid->mode != WPAS_MODE_IBSS) |
| 17 | break; |
| 18 | |
| 19 | if (!bss_is_ibss(bss)) |