From 88beed4c562c49a79d4cc25e808e480271e12409 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Wed, 20 Mar 2019 13:58:58 +0800 Subject: [PATCH] mac80211: netifd: Use a mask when using Usage: iw [options] command Options: --debug enable netlink debugging --version show version (3.4) Commands: help [command] Print usage for all or a specific command, e.g. "help wowlan" or "help wowlan enable". event [-t] [-r] [-f] Monitor events from the kernel. -t - print timestamp -r - print relative timstamp -f - print full frame for auth/assoc etc. phy list List all wireless devices and their capabilities. phy info Show capabilities for the specified wireless device. dev List all network interfaces for wireless hardware. dev info Show information for this interface. dev del Remove this virtual interface dev interface add type [mesh_id ] [4addr on|off] [flags *] phy interface add type [mesh_id ] [4addr on|off] [flags *] Add a new virtual interface with the given configuration. Valid interface types are: managed, ibss, monitor, mesh, wds. The flags are only used for monitor interfaces, valid flags are: none: no special flags fcsfail: show frames with FCS errors control: show control frames otherbss: show frames from other BSSes cook: use cooked mode The mesh_id is used only for mesh mode. dev ibss join [HT20|HT40+|HT40-|NOHT] [fixed-freq] [] [beacon-interval ] [basic-rates ] [mcast-rate ] [key d:0:abcde] Join the IBSS cell with the given SSID, if it doesn't exist create it on the given frequency. When fixed frequency is requested, don't join/create a cell on a different frequency. When a fixed BSSID is requested use that BSSID and do not adopt another cell's BSSID even if it has higher TSF and the same SSID. If an IBSS is created, create it with the specified basic-rates, multicast-rate and beacon-interval. dev ibss leave Leave the current IBSS cell. dev station dump List all stations known, e.g. the AP on managed interfaces dev station set vlan Set an AP VLAN for this station. dev station set plink_action Set mesh peer link action for this station (peer). dev station del Remove the given station entry (use with caution!) dev station get Get information for a specific station. dev survey dump List all gathered channel survey data dev mesh leave Leave a mesh. dev mesh join [mcast-rate ] [=]* Join a mesh with the given mesh ID with mcast-rate and mesh parameters. dev mpath dump List known mesh paths. dev mpath set next_hop Set an existing mesh path's next hop. dev mpath new next_hop Create a new mesh path (instead of relying on automatic discovery). dev mpath del Remove the mesh path to the given node. dev mpath get Get information on mesh path to the given node. dev scan [-u] [freq *] [ies ] [ssid *|passive] Scan on the given frequencies and probe for the given SSIDs (or wildcard if not given) unless passive scanning is requested. If -u is specified print unknown data in the scan results. Specified (vendor) IEs must be well-formed. dev scan trigger [freq *] [ies ] [ssid *|passive] Trigger a scan on the given frequencies with probing for the given SSIDs (or wildcard if not given) unless passive scanning is requested. dev scan dump [-u] Dump the current scan results. If -u is specified, print unknown data in scan results. reg get Print out the kernel's current regulatory domain information. reg set Notify the kernel about the current regulatory domain. dev connect [-w] [] [] [key 0:abcde d:1:6162636465] Join the network with the given SSID (and frequency, BSSID). With -w, wait for the connect to finish or fail. dev disconnect Disconnect from the current network. dev link Print information about the current link, if any. dev offchannel Leave operating channel and go to the given channel for a while. dev cqm rssi [] Set connection quality monitor RSSI threshold. phy wowlan show Show WoWLAN status. phy wowlan disable Disable WoWLAN. phy wowlan enable [any] [disconnect] [magic-packet] [gtk-rekey-failure] [eap-identity-request] [4way-handshake] [rfkill-release] [patterns *] Enable WoWLAN with the given triggers. Each pattern is given as a bytestring with '-' in places where any byte may be present, e.g. 00:11:22:-:44 will match 00:11:22:33:44 and 00:11:22:33:ff:44 etc. dev roc start