mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-04-14 13:37:52 +02:00
netdev: add netdev_get_low_signal_threshold
This commit is contained in:
parent
258482d509
commit
bf69e6210c
@ -463,6 +463,14 @@ uint8_t netdev_get_rssi_level_idx(struct netdev *netdev)
|
|||||||
return netdev->cur_rssi_level_idx;
|
return netdev->cur_rssi_level_idx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int netdev_get_low_signal_threshold(uint32_t frequency)
|
||||||
|
{
|
||||||
|
if (frequency > 4000)
|
||||||
|
return LOW_SIGNAL_THRESHOLD_5GHZ;
|
||||||
|
|
||||||
|
return LOW_SIGNAL_THRESHOLD;
|
||||||
|
}
|
||||||
|
|
||||||
static void netdev_set_powered_result(int error, uint16_t type,
|
static void netdev_set_powered_result(int error, uint16_t type,
|
||||||
const void *data,
|
const void *data,
|
||||||
uint32_t len, void *user_data)
|
uint32_t len, void *user_data)
|
||||||
|
@ -158,6 +158,7 @@ const char *netdev_get_name(struct netdev *netdev);
|
|||||||
bool netdev_get_is_up(struct netdev *netdev);
|
bool netdev_get_is_up(struct netdev *netdev);
|
||||||
const char *netdev_get_path(struct netdev *netdev);
|
const char *netdev_get_path(struct netdev *netdev);
|
||||||
uint8_t netdev_get_rssi_level_idx(struct netdev *netdev);
|
uint8_t netdev_get_rssi_level_idx(struct netdev *netdev);
|
||||||
|
int netdev_get_low_signal_threshold(uint32_t frequency);
|
||||||
|
|
||||||
struct handshake_state *netdev_handshake_state_new(struct netdev *netdev);
|
struct handshake_state *netdev_handshake_state_new(struct netdev *netdev);
|
||||||
struct handshake_state *netdev_get_handshake(struct netdev *netdev);
|
struct handshake_state *netdev_get_handshake(struct netdev *netdev);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user