iw: Add phymode parameters to scan command for Wide Band Scan support
PATCH 1/1 iw: Add phymode parameters to scan command for Wide Band Scan support
chandef is parsed and updated based on user phymode [HT40+|HT40-|80MHz] config. Scan flag NL80211_SCAN_FLAG_WIDE_BAND_SCAN is set to indicate the presence of chandef in nl_msg.
Added print in extended features dump.
Supported extended features:
* [ WIDE_BAND_SCAN ]: wide band scan (40Mhz, 80Mhz)
Wide Band Scan Commands:
-----------------------
dev <devname> scan freq <freq> [HT40+|HT40-|80MHz] [ap-force]
dev <devname> scan trigger freq <freq> [HT40+|HT40-|80MHz] [ap-force]
Examples:
---------
iw wlan0 scan freq 5180 HT40+
iw wlan0 scan trigger freq 5260 80Mhz ap-force
Signed-off-by Sathishkumar Muruganandam <[email protected]>
--- info.c | 2 ++ scan.c | 53 +++++++++++++++++++++++++++++++++++++++++------------ util.c | 5 +++-- 3 files changed, 46 insertions(+), 14 deletions(-)
info.c +2 -0
@@ -686,6 +686,8 @@ broken_combination:ext_feat_print (tb,EXT_KEY_ID ,"extended key ID support" );ext_feat_print (tb,STA_TX_PWR ,"TX power control per station" );ext_feat_print (tb,SAE_OFFLOAD ,"SAE offload support" ); +ext_feat_print (tb,NL80211_EXT_FEATURE_WIDE_BAND_SCAN , +"WIDE_BAND_SCAN" ,"wide band scan (40Mhz, 80Mhz)" ); }if (tb_msg[NL80211_ATTR_COALESCE_RULE ]) {
scan.c +41 -12
109 lines not on this page · raw message
util.c +3 -2
@@ -749,6 +749,9 @@ int parse_freqchan(struct chandef *chandef, bool chan, int argc, char **argv,if (!argv[0 ]) goto out; + +memset (chandef,0 ,sizeof (struct chandef )); + freq =strtoul (argv[0 ], &end,10 );if (*end) { res =1 ;
@@ -757,8 +760,6 @@ int parse_freqchan(struct chandef *chandef, bool chan, int argc, char **argv, _parsed +=1 ; -memset (chandef,0 ,sizeof (struct chandef )); -if (chan) {enum nl80211_band band;
Signature · 1 line
2.7.4