hostapd: fix compile errors with nl80211 disabled (#19325)
authorFelix Fietkau <nbd@openwrt.org>
Fri, 27 Mar 2015 14:55:01 +0000 (14:55 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 27 Mar 2015 14:55:01 +0000 (14:55 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45063

package/network/services/hostapd/Makefile
package/network/services/hostapd/files/hostapd-full.config
package/network/services/hostapd/files/hostapd-mini.config
package/network/services/hostapd/patches/600-ubus_support.patch

index 7cbbe8d5d575ddf7e9d6b56f979333532286a031..9a5b29b4d62338723e0183ddd067d0b396853e98 100644 (file)
@@ -64,6 +64,7 @@ ifneq ($(CONFIG_DRIVER_11N_SUPPORT),)
 endif
 
 DRIVER_MAKEOPTS= \
+       CONFIG_ACS=$(CONFIG_PACKAGE_kmod-cfg80211) \
        CONFIG_DRIVER_NL80211=$(CONFIG_PACKAGE_kmod-cfg80211) \
        CONFIG_DRIVER_HOSTAP=$(CONFIG_PACKAGE_kmod-hostap) \
        CONFIG_IEEE80211N=$(HOSTAPD_IEEE80211N) \
index b9b2d8d8b314bd6ab536dc1b0dd0746e29c4e685..f1b2655cfcb7f8cbc61399eb3ffb886770b55a3f 100644 (file)
@@ -163,6 +163,4 @@ CONFIG_NO_DUMP_STATE=y
 CONFIG_WPS=y
 CONFIG_FULL_DYNAMIC_VLAN=y
 
-CONFIG_ACS=y
-
 CONFIG_UBUS=y
index 39245221238ef1d49e1bebd5f902606f54efb8a0..118d97cb3a21c195bc903fde2d4f885699b2425b 100644 (file)
@@ -156,6 +156,4 @@ CONFIG_TLS=internal
 CONFIG_NO_RANDOM_POOL=y
 CONFIG_NO_DUMP_STATE=y
 
-CONFIG_ACS=y
-
 CONFIG_UBUS=y
index 98acf19b5bb58abaa4e32409568015af3840f5ec..5375c935bd7c11173d647ca6d76bd6f380b0c461 100644 (file)
@@ -41,7 +41,7 @@
                HAPD_IFACE_DISABLED,
 --- /dev/null
 +++ b/src/ap/ubus.c
-@@ -0,0 +1,490 @@
+@@ -0,0 +1,494 @@
 +/*
 + * hostapd / ubus support
 + * Copyright (c) 2013, Felix Fietkau <nbd@openwrt.org>
 +      [CSA_BCN_COUNT] = { "bcn_count", BLOBMSG_TYPE_INT32 },
 +};
 +
++#ifdef NEED_AP_MLME
 +static int
 +hostapd_switch_chan(struct ubus_context *ctx, struct ubus_object *obj,
 +                  struct ubus_request_data *req, const char *method,
 +              return UBUS_STATUS_NOT_SUPPORTED;
 +      return UBUS_STATUS_OK;
 +}
++#endif
 +
 +enum {
 +      VENDOR_ELEMENTS,
 +      UBUS_METHOD_NOARG("list_bans", hostapd_bss_list_bans),
 +      UBUS_METHOD_NOARG("wps_start", hostapd_bss_wps_start),
 +      UBUS_METHOD_NOARG("wps_cancel", hostapd_bss_wps_cancel),
++#ifdef NEED_AP_MLME
 +      UBUS_METHOD("switch_chan", hostapd_switch_chan, csa_policy),
++#endif
 +      UBUS_METHOD("set_vendor_elements", hostapd_vendor_elements, ve_policy),
 +};
 +