mirror of
https://gitlab.com/prpl-foundation/prplmesh/stationsniffer.git
synced 2025-12-20 02:20:31 +08:00
treewide: extend MSG_GET_DISASSOCIATED_STATIONS utils and docs
Signed-off-by: Tucker Polomik <t.polomik@cablelabs.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
@@ -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(':', '')
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user