aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wnm_sta.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-12-16 10:29:10 (GMT)
committerJouni Malinen <j@w1.fi>2012-12-16 10:29:10 (GMT)
commite9199e314925f81f5989b19b390e779d25c57200 (patch)
tree9c36f936aaa494357bb9286710f27234e6d9cb88 /wpa_supplicant/wnm_sta.c
parent2dfb9a447c7b71e03d4f4a318b4f8d67244d57d1 (diff)
downloadhostap-e9199e314925f81f5989b19b390e779d25c57200.zip
hostap-e9199e314925f81f5989b19b390e779d25c57200.tar.gz
hostap-e9199e314925f81f5989b19b390e779d25c57200.tar.bz2
WNM: Add ctrl_iface command for sending WNM-Sleep Mode Request
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/wnm_sta.c')
-rw-r--r--wpa_supplicant/wnm_sta.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/wnm_sta.c b/wpa_supplicant/wnm_sta.c
index aefe375..870c536 100644
--- a/wpa_supplicant/wnm_sta.c
+++ b/wpa_supplicant/wnm_sta.c
@@ -41,7 +41,7 @@ static int ieee80211_11_set_tfs_ie(struct wpa_supplicant *wpa_s,
/* MLME-SLEEPMODE.request */
int ieee802_11_send_wnmsleep_req(struct wpa_supplicant *wpa_s,
- u8 action, u8 intval)
+ u8 action, u16 intval)
{
struct ieee80211_mgmt *mgmt;
int res;
@@ -62,7 +62,7 @@ int ieee802_11_send_wnmsleep_req(struct wpa_supplicant *wpa_s,
wnmsleep_ie->len = wnmsleep_ie_len - 2;
wnmsleep_ie->action_type = action;
wnmsleep_ie->status = WNM_STATUS_SLEEP_ACCEPT;
- wnmsleep_ie->intval = intval;
+ wnmsleep_ie->intval = host_to_le16(intval);
/* TFS IE(s) */
wnmtfs_ie = os_zalloc(MAX_TFS_IE_LEN);