mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
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:
parent
acda662a0a
commit
3a7def187d
|
|
@ -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... */
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user