diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-27 14:55:01 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-27 14:55:01 +0000 |
commit | 89abb27f2cfa253a422d405e40c04d7089d09a03 (patch) | |
tree | c6eb6c6a132ebd01567505a391868977a29adcee /package/network/services/hostapd/patches | |
parent | 44218424f104454afc42da638be8709bd3bcdb9c (diff) | |
download | master-31e0f0ae-89abb27f2cfa253a422d405e40c04d7089d09a03.tar.gz master-31e0f0ae-89abb27f2cfa253a422d405e40c04d7089d09a03.tar.bz2 master-31e0f0ae-89abb27f2cfa253a422d405e40c04d7089d09a03.zip |
hostapd: fix compile errors with nl80211 disabled (#19325)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45063
Diffstat (limited to 'package/network/services/hostapd/patches')
-rw-r--r-- | package/network/services/hostapd/patches/600-ubus_support.patch | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package/network/services/hostapd/patches/600-ubus_support.patch b/package/network/services/hostapd/patches/600-ubus_support.patch index 98acf19b5b..5375c935bd 100644 --- a/package/network/services/hostapd/patches/600-ubus_support.patch +++ b/package/network/services/hostapd/patches/600-ubus_support.patch @@ -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> @@ -358,6 +358,7 @@ + [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, @@ -381,6 +382,7 @@ + return UBUS_STATUS_NOT_SUPPORTED; + return UBUS_STATUS_OK; +} ++#endif + +enum { + VENDOR_ELEMENTS, @@ -423,7 +425,9 @@ + 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), +}; + |