https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3ff9c476a067367fad166…
commit 3ff9c476a067367fad1662a1990153cd9910ffce
Author: Vitaly Orekhov <vkvo2000(a)vivaldi.net>
AuthorDate: Wed Jan 8 14:28:46 2025 +0300
Commit: GitHub <noreply(a)github.com>
CommitDate: Wed Jan 8 12:28:46 2025 +0100
[PSDK] Add structures and enumeration describing radio power state (#7596)
This piece of data is returned by WlanQueryInterface().
Used by `WlanQueryInterface` with the `wlan_intf_opcode_radio_state` opcode.
CORE-6905
---
sdk/include/psdk/wlanapi.h | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/sdk/include/psdk/wlanapi.h b/sdk/include/psdk/wlanapi.h
index e16089372a8..a0675f49e6c 100644
--- a/sdk/include/psdk/wlanapi.h
+++ b/sdk/include/psdk/wlanapi.h
@@ -31,6 +31,16 @@ extern "C" {
/* Enumerations */
+#if defined(__midl) || defined(__WIDL__)
+typedef [v1_enum] enum _DOT11_RADIO_STATE {
+#else
+typedef enum _DOT11_RADIO_STATE {
+#endif
+ dot11_radio_state_unknown = 0,
+ dot11_radio_state_on,
+ dot11_radio_state_off
+} DOT11_RADIO_STATE; /* HACK: WIDL is broken, *PDOT11_RADIO_STATE; */
+
#if defined(__midl) || defined(__WIDL__)
typedef [v1_enum] enum _WLAN_OPCODE_VALUE_TYPE {
#else
@@ -175,6 +185,17 @@ typedef struct _WLAN_INTERFACE_CAPABILITY {
/* enum32 */ long dot11PhyTypes[WLAN_MAX_PHY_INDEX];
} WLAN_INTERFACE_CAPABILITY, *PWLAN_INTERFACE_CAPABILITY;
+typedef struct _WLAN_PHY_RADIO_STATE {
+ DWORD dwPhyIndex;
+ DOT11_RADIO_STATE dot11SoftwareRadioState;
+ DOT11_RADIO_STATE dot11HardwareRadioState;
+} WLAN_PHY_RADIO_STATE, *PWLAN_PHY_RADIO_STATE;
+
+typedef struct _WLAN_RADIO_STATE {
+ DWORD dwNumberOfPhys;
+ WLAN_PHY_RADIO_STATE PhyRadioState[WLAN_MAX_PHY_INDEX];
+} WLAN_RADIO_STATE, *PWLAN_RADIO_STATE;
+
typedef struct _WLAN_RAW_DATA {
DWORD dwDataSize;
#if defined(__midl) || defined(__WIDL__)