diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2009-03-09 20:45:17 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-03-09 20:45:17 +0200 |
commit | babfbf15cc3cd500fd032b97935ca43f6931e682 (patch) | |
tree | d45430e801ea76470417c16e4c5d191f251a4285 /src/utils | |
parent | 143a4bf632e79d7adbe97f23e1b02e9c1d1a5cee (diff) | |
download | external_wpa_supplicant_8_ti-babfbf15cc3cd500fd032b97935ca43f6931e682.zip external_wpa_supplicant_8_ti-babfbf15cc3cd500fd032b97935ca43f6931e682.tar.gz external_wpa_supplicant_8_ti-babfbf15cc3cd500fd032b97935ca43f6931e682.tar.bz2 |
FT: Add RIC Request generation and validation (but not processing)
This adds first part of FT resource request as part of Reassocition
Request frame (i.e., FT Protocol, not FT Resource Request Protocol).
wpa_supplicant can generate a test resource request when driver_test.c
is used with internal MLME code and hostapd can verify the FTIE MIC
properly with the included RIC Request.
The actual RIC Request IEs are not processed yet and hostapd does not
yet reply with RIC Response (nor would wpa_supplicant be able to
validate the FTIE MIC for a frame with RIC Response).
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/wpabuf.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/wpabuf.h b/src/utils/wpabuf.h index bd8f09e..a150455 100644 --- a/src/utils/wpabuf.h +++ b/src/utils/wpabuf.h @@ -111,6 +111,12 @@ static inline void wpabuf_put_u8(struct wpabuf *buf, u8 data) *pos = data; } +static inline void wpabuf_put_le16(struct wpabuf *buf, u16 data) +{ + u8 *pos = wpabuf_put(buf, 2); + WPA_PUT_LE16(pos, data); +} + static inline void wpabuf_put_be16(struct wpabuf *buf, u16 data) { u8 *pos = wpabuf_put(buf, 2); |