PASN: Fix setting frame and data lengths in AP mode PASN response
Frame length and data length can exceed 256 so need to use size_t instead of u8. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
parent
c733664be9
commit
da3ac98099
1 changed files with 2 additions and 2 deletions
|
@ -2881,11 +2881,11 @@ static int handle_auth_pasn_resp(struct hostapd_data *hapd,
|
||||||
{
|
{
|
||||||
struct wpabuf *buf, *pubkey = NULL, *wrapped_data_buf = NULL;
|
struct wpabuf *buf, *pubkey = NULL, *wrapped_data_buf = NULL;
|
||||||
u8 mic[WPA_PASN_MAX_MIC_LEN];
|
u8 mic[WPA_PASN_MAX_MIC_LEN];
|
||||||
u8 mic_len, frame_len, data_len;
|
u8 mic_len;
|
||||||
u8 *ptr;
|
u8 *ptr;
|
||||||
const u8 *frame, *data, *rsn_ie, *rsnxe_ie;
|
const u8 *frame, *data, *rsn_ie, *rsnxe_ie;
|
||||||
u8 *data_buf = NULL;
|
u8 *data_buf = NULL;
|
||||||
size_t rsn_ie_len;
|
size_t rsn_ie_len, frame_len, data_len;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
wpa_printf(MSG_DEBUG, "PASN: Building frame 2: status=%u", status);
|
wpa_printf(MSG_DEBUG, "PASN: Building frame 2: status=%u", status);
|
||||||
|
|
Loading…
Reference in a new issue