diff options
| author | Jouni Malinen <j@w1.fi> | 2017-08-04 13:14:57 +0300 |
|---|---|---|
| committer | Dan Pasanen <dan.pasanen@gmail.com> | 2017-10-16 10:50:00 -0500 |
| commit | 726e02c213c2d7dc8eb9501c5380ab85fdce61fe (patch) | |
| tree | 746aa8f0adeceeae9f8847ff2032e890ae000176 /src | |
| parent | cda7ff16fb94f5e82207b18dd6c66e50f5a0964a (diff) | |
| download | android_external_wpa_supplicant_8-726e02c213c2d7dc8eb9501c5380ab85fdce61fe.tar.gz android_external_wpa_supplicant_8-726e02c213c2d7dc8eb9501c5380ab85fdce61fe.tar.bz2 android_external_wpa_supplicant_8-726e02c213c2d7dc8eb9501c5380ab85fdce61fe.zip | |
Add MGMT_TX_STATUS_PROCESS command for testing purposes
This allows ext_mgmt_frame_handling=1 cases with hostapd to process TX
status events based on external processing. This is useful for increased
test coverage of management frame processing.
Change-Id: Ie15d9e2adf710cb104c950395b10e20231896fa0
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src')
| -rw-r--r-- | src/ap/ieee802_11.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 45ecbfbd..b1cfb51c 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -2893,8 +2893,16 @@ void ieee802_11_mgmt_cb(struct hostapd_data *hapd, const u8 *buf, size_t len, #ifdef CONFIG_TESTING_OPTIONS if (hapd->ext_mgmt_frame_handling) { - wpa_msg(hapd->msg_ctx, MSG_INFO, "MGMT-TX-STATUS stype=%u ok=%d", - stype, ok); + size_t hex_len = 2 * len + 1; + char *hex = os_malloc(hex_len); + + if (hex) { + wpa_snprintf_hex(hex, hex_len, buf, len); + wpa_msg(hapd->msg_ctx, MSG_INFO, + "MGMT-TX-STATUS stype=%u ok=%d buf=%s", + stype, ok, hex); + os_free(hex); + } return; } #endif /* CONFIG_TESTING_OPTIONS */ |
