mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 22:59:41 +01:00
ie: make rate_rssi_map const
This commit is contained in:
parent
7d7fcff03b
commit
5ce6e173ba
4
src/ie.c
4
src/ie.c
@ -1387,7 +1387,7 @@ struct basic_rate_map {
|
||||
* so its more convenient to match by this encoding. The actual data rate is
|
||||
* converted to Mbps after we find a match
|
||||
*/
|
||||
static struct basic_rate_map rate_rssi_map[] = {
|
||||
static const struct basic_rate_map rate_rssi_map[] = {
|
||||
{ -82, 12 },
|
||||
{ -81, 18 },
|
||||
{ -79, 24 },
|
||||
@ -1416,7 +1416,7 @@ static int ie_parse_supported_rates(struct ie_tlv_iter *supp_rates_iter,
|
||||
|
||||
/* Find highest rates possible with our RSSI */
|
||||
for (i = 0; i < L_ARRAY_SIZE(rate_rssi_map); i++) {
|
||||
struct basic_rate_map *map = &rate_rssi_map[i];
|
||||
const struct basic_rate_map *map = &rate_rssi_map[i];
|
||||
|
||||
if (rssi < map->rssi)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user