Use SSID_MAX_LEN define instead of value 32 when comparing SSID length
This makes the implementation easier to understand. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
65b10253d6
commit
d9d1b9527a
24 changed files with 65 additions and 54 deletions
|
@ -9,6 +9,8 @@
|
|||
#ifndef PRIVSEP_COMMANDS_H
|
||||
#define PRIVSEP_COMMANDS_H
|
||||
|
||||
#include "common/ieee802_11_defs.h"
|
||||
|
||||
enum privsep_cmd {
|
||||
PRIVSEP_CMD_REGISTER,
|
||||
PRIVSEP_CMD_UNREGISTER,
|
||||
|
@ -29,7 +31,7 @@ enum privsep_cmd {
|
|||
struct privsep_cmd_associate
|
||||
{
|
||||
u8 bssid[ETH_ALEN];
|
||||
u8 ssid[32];
|
||||
u8 ssid[SSID_MAX_LEN];
|
||||
size_t ssid_len;
|
||||
int hwmode;
|
||||
int freq;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue