]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Revert "nl80211: Add nla_put_u32() wrapper for Android"
authorJouni Malinen <j@w1.fi>
Sat, 4 May 2013 16:06:08 +0000 (19:06 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 4 May 2013 17:19:43 +0000 (20:19 +0300)
This reverts commit df2f9ec6b2578def21fc26c88e661b5d28f0fbbf.

The current AOSP snapshot for JB includes nla_put_u32(), so this is not
needed anymore and is also causing linking issues due to duplicated
definition.

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

src/drivers/driver_nl80211.c

index 0433ca64b0a8500704e87b744f9bb087e549d3e7..654438cecfdfe419288bead3dcaa50cdd5fc150f 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 */