From 5614e2750e019b0ffa14a50e3c92045b952e2634 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 5 Jul 2022 10:52:39 +1000 Subject: [PATCH] src: Add cyw43_wifi_ap_get_auth() helper function. Signed-off-by: Damien George --- src/cyw43.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/cyw43.h b/src/cyw43.h index b00f985..83153cf 100644 --- a/src/cyw43.h +++ b/src/cyw43.h @@ -317,6 +317,18 @@ static inline void cyw43_wifi_ap_get_ssid(cyw43_t *self, size_t *len, const uint *buf = self->ap_ssid; } +/*! + * \brief Get the security authorisation used in AP mode + * + * For access point (AP) mode, this method can be used to get the security authorisation mode. + * + * \param self the driver state object. This should always be \c &cyw43_state + * \return the current security authorisation mode for the access point + */ +static inline uint32_t cyw43_wifi_ap_get_auth(cyw43_t *self) { + return self->ap_auth; +} + /*! * \brief Set the the channel for the access point *