diff options
author | Jouni Malinen <j@w1.fi> | 2010-11-20 12:43:16 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2010-11-20 12:43:16 +0200 |
commit | 0954399c90df11c2cb11bdb03c2bc9e04a3e61b4 (patch) | |
tree | 3e4cc071d694d69580b43680bfa63c65707eb3d2 /wlantest | |
parent | ef6ee3e5a3bd231d40eec3ee0a480f8de8ab696e (diff) | |
download | external_wpa_supplicant_8_ti-0954399c90df11c2cb11bdb03c2bc9e04a3e61b4.zip external_wpa_supplicant_8_ti-0954399c90df11c2cb11bdb03c2bc9e04a3e61b4.tar.gz external_wpa_supplicant_8_ti-0954399c90df11c2cb11bdb03c2bc9e04a3e61b4.tar.bz2 |
wlantest: Use proper cmd length in fetching STA list
Diffstat (limited to 'wlantest')
-rw-r--r-- | wlantest/wlantest_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wlantest/wlantest_cli.c b/wlantest/wlantest_cli.c index 27f2e7e..8191bda 100644 --- a/wlantest/wlantest_cli.c +++ b/wlantest/wlantest_cli.c @@ -206,7 +206,7 @@ static char ** get_sta_list(int s, const u8 *bssid, int add_bcast) pos = attr_hdr_add(pos, end, WLANTEST_ATTR_BSSID, ETH_ALEN); os_memcpy(pos, bssid, ETH_ALEN); pos += ETH_ALEN; - rlen = cmd_send_and_recv(s, buf, sizeof(buf), resp, sizeof(resp)); + rlen = cmd_send_and_recv(s, buf, pos - buf, resp, sizeof(resp)); if (rlen < 0) return NULL; |