treewide: extend MSG_GET_DISASSOCIATED_STATIONS utils and docs

Signed-off-by: Tucker Polomik <t.polomik@cablelabs.com>
This commit is contained in:
Tucker Polomik
2023-09-25 09:10:49 -06:00
parent 21cfdb9a6a
commit f03c8e4d40
4 changed files with 9 additions and 1 deletions

View File

@@ -26,6 +26,8 @@ std::string message_type_to_string(const message_type_t &mt)
return "MSG_GET_STA_STATS";
case message_type_t::MSG_GET_STA_WMI_STATS:
return "MSG_GET_STA_WMI_STATS";
case message_type_t::MSG_GET_DISASSOCIATED_STATIONS:
return "MSG_GET_DISASSOCIATED_STATIONS";
default:
break;
}

View File

@@ -25,7 +25,10 @@ enum class message_type_t : uint32_t {
*
*/
MSG_GET_STA_WMI_STATS = 0x08,
/**
* @brief Check if a given STA has disassociated from a BSS.
* The STA MAC included in the message header is the station of interest.
*/
MSG_GET_DISASSOCIATED_STATIONS = 0x40,
};

View File

@@ -12,6 +12,7 @@ class MessageType(IntEnum):
MSG_UNREGISTER_STA = 0x02
MSG_GET_STA_STATS = 0x04
MSG_GET_STA_WMI_STATS = 0x08
MSG_GET_DISASSOCIATED_STATIONS = 0x40
def connect_and_poll_rssi(socket_path: str, mac: str) -> None:
trimmed_mac = mac.replace(':', '')

View File

@@ -28,6 +28,8 @@ enum message_type {
MSG_GET_STA_STATS = 0x04,
MSG_GET_STA_WMI_STATS = 0x08,
MSG_GET_DISASSOCIATED_STATIONS = 0x40,
};
enum error_type {