3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

scan: Fix warning

CC       src/scan.o
src/scan.c: In function ‘scan_bss_compute_rank’:
src/scan.c:1048:4: warning: this decimal constant is unsigned only in ISO C90
    factor = factor * data_rate / 2340000000 +
This commit is contained in:
Denis Kenzior 2019-04-03 11:54:41 -05:00
parent 5c9e6b255f
commit 6ecc3a20b8

View File

@ -1045,7 +1045,7 @@ static void scan_bss_compute_rank(struct scan_bss *bss)
/* /*
* Maximum rate is 2340Mbps (VHT) * Maximum rate is 2340Mbps (VHT)
*/ */
factor = factor * data_rate / 2340000000 + factor = factor * data_rate / 2340000000U +
RANK_MIN_SUPPORTED_RATE_FACTOR; RANK_MIN_SUPPORTED_RATE_FACTOR;
rank *= factor; rank *= factor;
} else } else