mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
drivers/wireless: use nla_put_u64_64bit()
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f60d94c009
commit
08f4cbb8f2
2 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||||
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)
|
||||||
|
|
Loading…
Reference in a new issue