From: Felix Fietkau Date: Sun, 7 Oct 2018 08:48:31 +0000 (+0200) Subject: iw: strip a few more non-essential features from iw-tiny X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=dc78c70d5c0749c983239895ec75bdd2b8328aa1;p=openwrt%2Fstaging%2Fxback.git iw: strip a few more non-essential features from iw-tiny Signed-off-by: Felix Fietkau (backported from 518fb345e110f7028912211ebf75af92c7c10809) --- diff --git a/package/network/utils/iw/patches/200-reduce_size.patch b/package/network/utils/iw/patches/200-reduce_size.patch index bf5d038609..5f4bce6a8b 100644 --- a/package/network/utils/iw/patches/200-reduce_size.patch +++ b/package/network/utils/iw/patches/200-reduce_size.patch @@ -270,7 +270,7 @@ OBJS += $(OBJS-y) $(OBJS-Y) -+OBJS_FULL = ocb offch cqm wowlan coalesce roc p2p ap ++OBJS_FULL = ocb offch cqm wowlan coalesce roc p2p ap mgmt vendor +ifdef IW_FULL + CFLAGS += -DIW_FULL +else @@ -308,3 +308,48 @@ static int handle_station_dump(struct nl80211_state *state, struct nl_msg *msg, +--- a/interface.c ++++ b/interface.c +@@ -615,9 +615,11 @@ static int handle_interface_wds_peer(str + nla_put_failure: + return -ENOBUFS; + } ++#ifdef IW_FULL + COMMAND(set, peer, "", + NL80211_CMD_SET_WDS_PEER, 0, CIB_NETDEV, handle_interface_wds_peer, + "Set interface WDS peer."); ++#endif + + static int set_mcast_rate(struct nl80211_state *state, + struct nl_msg *msg, +@@ -707,6 +709,7 @@ static int handle_chan(struct nl80211_st + return handle_chanfreq(state, msg, true, argc, argv, id); + } + ++#ifdef IW_FULL + SECTION(switch); + COMMAND(switch, freq, + " [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz] [beacons ] [block-tx]\n" +@@ -715,3 +718,4 @@ COMMAND(switch, freq, + "Switch the operating channel by sending a channel switch announcement (CSA)."); + COMMAND(switch, channel, " [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz] [beacons ] [block-tx]", + NL80211_CMD_CHANNEL_SWITCH, 0, CIB_NETDEV, handle_chan, NULL); ++#endif +--- a/phy.c ++++ b/phy.c +@@ -359,6 +359,7 @@ static int handle_cac(struct nl80211_sta + + return 0; + } ++#ifdef IW_FULL + TOPLEVEL(cac, "channel [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]\n" + "freq [NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz]\n" + "freq [5|10|20|40|80|80+80|160] [ []]", +@@ -370,6 +371,7 @@ COMMAND(cac, trigger, + NL80211_CMD_RADAR_DETECT, 0, CIB_NETDEV, handle_cac_trigger, + "Start or trigger a channel availability check (CAC) looking to look for\n" + "radars on the given channel."); ++#endif + + static int handle_fragmentation(struct nl80211_state *state, + struct nl_msg *msg,