drivers/wireless: use nla_put_u64_64bit()
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Tue, 26 Apr 2016 08:06:12 +0000 (10:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Apr 2016 16:00:48 +0000 (12:00 -0400)
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/mac80211_hwsim.c
drivers/net/wireless/mac80211_hwsim.h

index c757f14c4c002bd9c251940ae5aaee599cc66aed..9ed0ed1bf51481e4458dbeae2d105731bbf0f575 100644 (file)
@@ -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);
index 66e1c73bd50716af22d5f51db4f9fe179f81fadf..39f22467ca2a219809cd35c38a2f5c28d15595bc 100644 (file)
@@ -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)