mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-02 09:22:32 +01:00
scan: Make factors static const
This commit is contained in:
parent
7cded805ce
commit
99ac4d1b0d
10
src/scan.c
10
src/scan.c
@ -356,11 +356,11 @@ static struct scan_bss *scan_parse_result(struct l_genl_msg *msg,
|
|||||||
|
|
||||||
void scan_bss_compute_rank(struct scan_bss *bss)
|
void scan_bss_compute_rank(struct scan_bss *bss)
|
||||||
{
|
{
|
||||||
double RANK_RSNE_FACTOR = 1.2;
|
static const double RANK_RSNE_FACTOR = 1.2;
|
||||||
double RANK_WPA_FACTOR = 1.0;
|
static const double RANK_WPA_FACTOR = 1.0;
|
||||||
double RANK_OPEN_FACTOR = 0.5;
|
static const double RANK_OPEN_FACTOR = 0.5;
|
||||||
double RANK_NO_PRIVACY_FACTOR = 0.5;
|
static const double RANK_NO_PRIVACY_FACTOR = 0.5;
|
||||||
double RANK_5G_FACTOR = 1.1;
|
static const double RANK_5G_FACTOR = 1.1;
|
||||||
double rank;
|
double rank;
|
||||||
uint32_t irank;
|
uint32_t irank;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user