[PATCH v3 06/10] netdev: add netdev_get_low_signal_thresholds

James Prestwood <[email protected]>
Newsgroups dev.linux.lists.iwd
Message-ID <[email protected]>
---
 src/netdev.c | 9 +++++++++
 src/netdev.h | 1 +
 2 files changed, 10 insertions(+)

diff --git a/src/netdev.c b/src/netdev.c
index 2a6d94fc..31ccf9ab 100644
--- a/src/netdev.c
+++ b/src/netdev.c
@@ -463,6 +463,15 @@ uint8_t netdev_get_rssi_level_idx(struct netdev *netdev)
 	return netdev->cur_rssi_level_idx;
 }
 
+void netdev_get_low_signal_thresholds(int *threshold, int *threshold_5g)
+{
+	if (threshold)
+		*threshold = LOW_SIGNAL_THRESHOLD;
+
+	if (threshold_5g)
+		*threshold_5g = LOW_SIGNAL_THRESHOLD_5GHZ;
+}
+
 static void netdev_set_powered_result(int error, uint16_t type,
 					const void *data,
 					uint32_t len, void *user_data)
diff --git a/src/netdev.h b/src/netdev.h
index 6299934e..3962dc93 100644
--- a/src/netdev.h
+++ b/src/netdev.h
@@ -158,6 +158,7 @@ const char *netdev_get_name(struct netdev *netdev);
 bool netdev_get_is_up(struct netdev *netdev);
 const char *netdev_get_path(struct netdev *netdev);
 uint8_t netdev_get_rssi_level_idx(struct netdev *netdev);
+void netdev_get_low_signal_thresholds(int *threshold, int *threshold_5g);
 
 struct handshake_state *netdev_handshake_state_new(struct netdev *netdev);
 struct handshake_state *netdev_get_handshake(struct netdev *netdev);
-- 
2.34.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.