From 3de347c1f83b09f1ac4190a66d53992116fa66d2 Mon Sep 17 00:00:00 2001 From: Sven Eckelmann Date: Mon, 16 Mar 2015 17:28:39 +0100 Subject: [PATCH] iw: Hardcode VHT channel 36 in iw for testing --- .../iw/patches/300-hardcode-vht80-chan36.patch | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 package/network/utils/iw/patches/300-hardcode-vht80-chan36.patch diff --git a/package/network/utils/iw/patches/300-hardcode-vht80-chan36.patch b/package/network/utils/iw/patches/300-hardcode-vht80-chan36.patch new file mode 100644 index 0000000..0cc3425 --- /dev/null +++ b/package/network/utils/iw/patches/300-hardcode-vht80-chan36.patch @@ -0,0 +1,27 @@ +diff --git a/ibss.c b/ibss.c +index 1bf1bab..6f332ce 100644 +--- a/ibss.c ++++ b/ibss.c +@@ -89,10 +89,10 @@ static int join_ibss(struct nl80211_state *state, + } + if (chanmode_selected) { + NLA_PUT_U32(msg, NL80211_ATTR_CHANNEL_WIDTH, +- chanmode_selected->width); ++ NL80211_CHAN_WIDTH_80); + NLA_PUT_U32(msg, NL80211_ATTR_CENTER_FREQ1, +- freq + chanmode_selected->freq1_diff); +- if (chanmode_selected->chantype != -1) ++ 5210); ++ if (chanmode_selected->chantype != -1 && 0) + NLA_PUT_U32(msg, + NL80211_ATTR_WIPHY_CHANNEL_TYPE, + chanmode_selected->chantype); +@@ -194,7 +194,7 @@ COMMAND(ibss, leave, NULL, + NL80211_CMD_LEAVE_IBSS, 0, CIB_NETDEV, leave_ibss, + "Leave the current IBSS cell."); + COMMAND(ibss, join, +- " [HT20|HT40+|HT40-|NOHT|5MHZ|10MHZ] [fixed-freq] [] [beacon-interval ]" ++ " [HT20|HT40+|HT40-|HT80|HT80+80|HT160|NOHT|5MHZ|10MHZ] [fixed-freq] [] [beacon-interval ]" + " [basic-rates ] [mcast-rate ] " + "[key d:0:abcde]", + NL80211_CMD_JOIN_IBSS, 0, CIB_NETDEV, join_ibss, -- 2.5.0