From df2f9ec6b2578def21fc26c88e661b5d28f0fbbf Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 9 Aug 2012 18:45:39 +0300 Subject: [PATCH] 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 --- src/drivers/driver_nl80211.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 016250c57..4c748a281 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -60,6 +60,12 @@ #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 */