mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +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++;
|
||||
cookie = data->pending_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;
|
||||
|
||||
genlmsg_end(skb, msg_head);
|
||||
|
|
|
@ -148,6 +148,7 @@ enum {
|
|||
HWSIM_ATTR_RADIO_NAME,
|
||||
HWSIM_ATTR_NO_VIF,
|
||||
HWSIM_ATTR_FREQ,
|
||||
HWSIM_ATTR_PAD,
|
||||
__HWSIM_ATTR_MAX,
|
||||
};
|
||||
#define HWSIM_ATTR_MAX (__HWSIM_ATTR_MAX - 1)
|
||||
|
|
Loading…
Reference in a new issue