aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-03-11 22:41:03 (GMT)
committerJouni Malinen <j@w1.fi>2010-03-11 22:41:03 (GMT)
commit73fc617d5c1df9e70c50ff78e1ea84f377c972a7 (patch)
tree3d69ff6abaa4a7c6866693e10b5b482bc638b38b /src
parentc1bbb0cee10bd321de664b8a8f24fbbf48aada05 (diff)
downloadhostap-73fc617d5c1df9e70c50ff78e1ea84f377c972a7.zip
hostap-73fc617d5c1df9e70c50ff78e1ea84f377c972a7.tar.gz
hostap-73fc617d5c1df9e70c50ff78e1ea84f377c972a7.tar.bz2
nl80211: Fix FT Action send command
Need to include payload header in the data length to avoid sending truncated FT Action frame.
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver_nl80211.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index d4679b9..5759760 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -5126,8 +5126,8 @@ static int nl80211_send_ft_action(void *priv, u8 action, const u8 *target_ap,
* FT IEs
*/
- data_len = ies_len;
- data = os_malloc(2 + 2 * ETH_ALEN + data_len);
+ data_len = 2 + 2 * ETH_ALEN + ies_len;
+ data = os_malloc(data_len);
if (data == NULL)
return -1;
pos = data;