Commit 08f4cbb8 authored by Nicolas Dichtel's avatar Nicolas Dichtel Committed by David S. Miller

drivers/wireless: use nla_put_u64_64bit()

Signed-off-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f60d94c0
...@@ -1030,7 +1030,7 @@ static void mac80211_hwsim_tx_frame_nl(struct ieee80211_hw *hw, ...@@ -1030,7 +1030,7 @@ static void mac80211_hwsim_tx_frame_nl(struct ieee80211_hw *hw,
data->pending_cookie++; data->pending_cookie++;
cookie = data->pending_cookie; cookie = data->pending_cookie;
info->rate_driver_data[0] = (void *)cookie; info->rate_driver_data[0] = (void *)cookie;
if (nla_put_u64(skb, HWSIM_ATTR_COOKIE, cookie)) if (nla_put_u64_64bit(skb, HWSIM_ATTR_COOKIE, cookie, HWSIM_ATTR_PAD))
goto nla_put_failure; goto nla_put_failure;
genlmsg_end(skb, msg_head); genlmsg_end(skb, msg_head);
......
...@@ -148,6 +148,7 @@ enum { ...@@ -148,6 +148,7 @@ enum {
HWSIM_ATTR_RADIO_NAME, HWSIM_ATTR_RADIO_NAME,
HWSIM_ATTR_NO_VIF, HWSIM_ATTR_NO_VIF,
HWSIM_ATTR_FREQ, HWSIM_ATTR_FREQ,
HWSIM_ATTR_PAD,
__HWSIM_ATTR_MAX, __HWSIM_ATTR_MAX,
}; };
#define HWSIM_ATTR_MAX (__HWSIM_ATTR_MAX - 1) #define HWSIM_ATTR_MAX (__HWSIM_ATTR_MAX - 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment