staging: rtl8723bs: simplify if-else blocks in rtw_mlme_ext.c

Fix indentation, remove unnecessary braces, and wrap long lines
in if-else blocks inside the site_survey function.

Signed-off-by: Andrei Khomenkov <khomenkov@mailbox.org>
Link: https://patch.msgid.link/20260510134315.64295-10-khomenkov@mailbox.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Andrei Khomenkov 2026-05-10 16:43:15 +03:00 committed by Greg Kroah-Hartman
parent acda662a0a
commit 3a7def187d

View File

@ -3741,11 +3741,11 @@ void site_survey(struct adapter *padapter)
}
if (survey_channel != 0) {
if (pmlmeext->sitesurvey_res.channel_idx == 0) {
set_channel_bwmode(padapter, survey_channel, HAL_PRIME_CHNL_OFFSET_DONT_CARE, CHANNEL_WIDTH_20);
} else {
r8723bs_select_channel(padapter, survey_channel);
}
if (pmlmeext->sitesurvey_res.channel_idx == 0)
set_channel_bwmode(padapter, survey_channel,
HAL_PRIME_CHNL_OFFSET_DONT_CARE, CHANNEL_WIDTH_20);
else
r8723bs_select_channel(padapter, survey_channel);
if (ScanType == SCAN_ACTIVE) { /* obey the channel plan setting... */
{