Skip to content

Commit

Permalink
[PSDK] Add structures and enumeration describing radio power state (r…
Browse files Browse the repository at this point in the history
…eactos#7596)

This piece of data is returned by WlanQueryInterface().
Used by `WlanQueryInterface` with the `wlan_intf_opcode_radio_state` opcode.

CORE-6905
  • Loading branch information
SigmaTel71 authored Jan 8, 2025
1 parent 03ee075 commit 3ff9c47
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions sdk/include/psdk/wlanapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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__)
Expand Down

0 comments on commit 3ff9c47

Please sign in to comment.