mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacmn: Fix validation in dfs_process_phyerr_owl()
Fix validation in dfs_process_phyerr_owl function. Change-Id: I0c97e7c18e1e93a248f325ff6f9b477c4135c486 CRs-Fixed: 2233111
This commit is contained in:
parent
dbbf2c45da
commit
8add0f7fbb
1 changed files with 3 additions and 2 deletions
|
|
@ -137,9 +137,10 @@ int dfs_process_phyerr_owl(struct wlan_dfs *dfs,
|
|||
dur = ((uint8_t *) cbuf)[0];
|
||||
|
||||
/* This is a spurious event; toss. */
|
||||
if (rssi == 0 && dur == 0)
|
||||
if (rssi == 0 && dur == 0) {
|
||||
dfs->wlan_dfs_stats.datalen_discards++;
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Fill out dfs_phy_err with the information we have at hand. */
|
||||
qdf_mem_set(e, sizeof(*e), 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue