nl80211: Add nla_put_u32() wrapper for Android

The system/core/libnl_2 re-implementation in AOSP does not include
nla_put_u32().

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2012-08-09 18:45:39 +03:00
parent 6ed3117561
commit df2f9ec6b2

View file

@ -60,6 +60,12 @@
#ifdef ANDROID #ifdef ANDROID
#include "android_drv.h" #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 */ #endif /* ANDROID */
#ifdef CONFIG_LIBNL20 #ifdef CONFIG_LIBNL20
/* libnl 2.0 compatibility code */ /* libnl 2.0 compatibility code */