mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[PSDK] Define maximum SSID length properly (#7394)
Avoid using magic numbers for structures and ease the day for those who do not remember IEEE 802.11 specifications by heart. - Add a #define that matches by name with one used since day one of Visual Studio 2008 (VS2005 does not have Native Wi-Fi SDK) - Remove magic constant from DOT11_SSID.ucSSID size definition Reference: https://learn.microsoft.com/en-us/windows/win32/nativewifi/dot11-ssid CORE-6905
This commit is contained in:
parent
1c0b769e96
commit
c2082ce92a
2 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,7 @@ typedef DOT11_MAC_ADDRESS* PDOT11_MAC_ADDRESS;
|
||||||
|
|
||||||
typedef struct _DOT11_SSID {
|
typedef struct _DOT11_SSID {
|
||||||
ULONG uSSIDLength;
|
ULONG uSSIDLength;
|
||||||
UCHAR ucSSID[32];
|
UCHAR ucSSID[DOT11_SSID_MAX_LENGTH];
|
||||||
} DOT11_SSID, *PDOT11_SSID;
|
} DOT11_SSID, *PDOT11_SSID;
|
||||||
|
|
||||||
typedef struct _DOT11_BSSID_LIST {
|
typedef struct _DOT11_BSSID_LIST {
|
||||||
|
|
|
@ -7,6 +7,7 @@ typedef enum _DOT11_BSS_TYPE {
|
||||||
dot11_BSS_type_any
|
dot11_BSS_type_any
|
||||||
} DOT11_BSS_TYPE;
|
} DOT11_BSS_TYPE;
|
||||||
|
|
||||||
|
#define DOT11_SSID_MAX_LENGTH 32
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue