Skip to content

Commit

Permalink
qcacld-3.0: wma_utils: Fix misleading-indentation warning
Browse files Browse the repository at this point in the history
Fix error:
    ../drivers/staging/qcacld-3.0/core/wma/src/wma_utils.c:4667:3: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
                    mac_ctx = (tpAniSirGlobal)cds_get_context(QDF_MODULE_ID_PE);
                    ^
    ../drivers/staging/qcacld-3.0/core/wma/src/wma_utils.c:4660:2: note: previous statement is here
            if (wma->bmiss_skip_full_scan)
            ^
    1 error generated.

Signed-off-by: Khusika Dhamar Gusti <[email protected]>
Change-Id: I230c7968257369473ba2377f4cd8f89b770a80e8
  • Loading branch information
palaych authored and Khusika Dhamar Gusti committed May 22, 2020
1 parent 5b13d29 commit 89edaa9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/staging/qcacld-3.0/core/wma/src/wma_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -4651,14 +4651,14 @@ static void wma_set_roam_offload_flag(tp_wma_handle wma, uint8_t vdev_id,
if (is_set) {
flag = WMI_ROAM_FW_OFFLOAD_ENABLE_FLAG |
WMI_ROAM_BMISS_FINAL_SCAN_ENABLE_FLAG;
/*
* If WMI_ROAM_BMISS_FINAL_SCAN_ENABLE_FLAG is set, then
* WMI_ROAM_BMISS_FINAL_SCAN_TYPE_FLAG decides whether firmware
* does channel map based partial scan or partial scan followed
* by full scan in case no candidate is found in partial scan.
*/
if (wma->bmiss_skip_full_scan)
flag |= WMI_ROAM_BMISS_FINAL_SCAN_TYPE_FLAG;
/*
* If WMI_ROAM_BMISS_FINAL_SCAN_ENABLE_FLAG is set, then
* WMI_ROAM_BMISS_FINAL_SCAN_TYPE_FLAG decides whether firmware
* does channel map based partial scan or partial scan followed
* by full scan in case no candidate is found in partial scan.
*/
if (wma->bmiss_skip_full_scan)
flag |= WMI_ROAM_BMISS_FINAL_SCAN_TYPE_FLAG;

/*
* If 4-way HS offload is disabled then let supplicant handle
Expand Down

0 comments on commit 89edaa9

Please sign in to comment.