]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Add nla_put_u32() wrapper for Android
authorJouni Malinen <j@w1.fi>
Thu, 9 Aug 2012 15:45:39 +0000 (18:45 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 9 Aug 2012 15:45:39 +0000 (18:45 +0300)
The system/core/libnl_2 re-implementation in AOSP does not include
nla_put_u32().

Signed-hostap: Jouni Malinen <j@w1.fi>

src/drivers/driver_nl80211.c

index 016250c571170e75a55b6b8ce9e1f1cc90428687..4c748a281b3d60a9849f17c8c1735966945a961c 100644 (file)
 
 #ifdef ANDROID
 #include "android_drv.h"
+
+/* system/core/libnl_2 in AOSP does not include nla_put_u32() */
+int nla_put_u32(struct nl_msg *msg, int attrtype, uint32_t value)
+{
+       return nla_put(msg, attrtype, sizeof(uint32_t), &value);
+}
 #endif /* ANDROID */
 #ifdef CONFIG_LIBNL20
 /* libnl 2.0 compatibility code */