Skip to content

Commit

Permalink
src: Add cyw43_wifi_ap_get_auth() helper function.
Browse files Browse the repository at this point in the history
Signed-off-by: Damien George <dpgeorge@georgerobotics.com.au>
  • Loading branch information
Damien George committed Jul 5, 2022
1 parent 7a20b31 commit 5614e27
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/cyw43.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 5614e27

Please sign in to comment.