nl80211: Fix FT Action send command
Need to include payload header in the data length to avoid sending truncated FT Action frame.
This commit is contained in:
parent
c1bbb0cee1
commit
73fc617d5c
1 changed files with 2 additions and 2 deletions
|
@ -5126,8 +5126,8 @@ static int nl80211_send_ft_action(void *priv, u8 action, const u8 *target_ap,
|
||||||
* FT IEs
|
* FT IEs
|
||||||
*/
|
*/
|
||||||
|
|
||||||
data_len = ies_len;
|
data_len = 2 + 2 * ETH_ALEN + ies_len;
|
||||||
data = os_malloc(2 + 2 * ETH_ALEN + data_len);
|
data = os_malloc(data_len);
|
||||||
if (data == NULL)
|
if (data == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
pos = data;
|
pos = data;
|
||||||
|
|
Loading…
Reference in a new issue