Skip to content

Instantly share code, notes, and snippets.

@liushooter
Forked from networkextension/apple80211
Last active July 16, 2024 09:11
Show Gist options
  • Save liushooter/1cb40d53ccec4ff5f472fc11810a556d to your computer and use it in GitHub Desktop.
Save liushooter/1cb40d53ccec4ff5f472fc11810a556d to your computer and use it in GitHub Desktop.

Revisions

  1. liushooter revised this gist Jul 16, 2024. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion apple80211
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    iPhoneX-test:/usr/local/bin root# apple80211
    # https://www.jdeen.com/blog/airport-the-nifty-command-line-wireless-utility-for-macos

    apple80211 interface_name [-qvh] -cmd[=new_val]
    -q: Quiet mode. Produce script-friendly output.
    -h: Verbose help.
  2. @networkextension networkextension created this gist May 21, 2021.
    304 changes: 304 additions & 0 deletions apple80211
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,304 @@
    iPhoneX-test:/usr/local/bin root# apple80211
    apple80211 interface_name [-qvh] -cmd[=new_val]
    -q: Quiet mode. Produce script-friendly output.
    -h: Verbose help.
    -v: Verbose output.
    -40int=[true/false] Get/Set 40 MHz intolerance.
    -2g_chain_disable=[0/1,0/1] Get/Set 2Ghz shared chain disable and reassoc. [disabled,reassoc]
    -acl_add=[mac addr,] Comma separated list of mac addresses to add to ACL list for the interface
    -acl_flush Remove all entries from the ACL list for the interface
    -acl_list List entries in the ACL list for the interface
    -acl_policy=[off/whitelist/blacklist] get/set ACL policy for the specified interface
    -acl_remove=[mac addr,] Comma separated list of mac addresses to remove from ACL list for the interface
    -actfrm=[mac_addr,channel,hex_packet]: Send/Receive action frames on the specified interface
    -antdiv=[chain1_index,chain2_index,chain3_index,chain4_index]: Get/Set antenna diversity (index may be 0, 1, or -1 for auto)
    -ap_ie_list: Dump IE list received from beacon/probe response of AP to which the interface is currently associated
    -ap_sort=[ssid]: Sort APs in the area with the specified SSID using the same algorithm as the drivers.
    -apmode: Get/Set target access point mode (ibss, infrastructure)
    -assoc_result: Get association attempt result
    -assoc_history: Get association attempt history
    -assoc_status: Get last association attempt status code.
    -authtype=[lower,upper]: Get/set authtype (lower: open, shared, cisco, upper: none,wpa,wpa-psk,wpa2,wpa2-psk,leap,8021x,wps)
    -background_scan[=off/auto/a,b,g]
    -block_ack=[block_ack,immediate_block_ack,compressed_bit_map_block_ack,implicit_block_ack] Get/Set on or off.
    -bssid=[mac addr]: Get BSSID or specify a fixed BSSID when configuring an SSID. Setting a zeroed BSSID clears any previous setting.
    -btcoex=[off/full/preempt/lightweight/unique/hybrid]: Get/Set bluetooth coexistance.
    -btc_profile_active=[x,y] (where x is 2.4GHz profile index and y is 5GHz profile index). Get or set btcoex active profile
    -btc_profile=idx[+mode_strong_wifi_bt,mode_weak_wifi,mode_weak_bluetooth,mode_weak_wifi_bluetooth,wifi_high_to_low_rssi_thresh,wifi_low_to_high_rssi_thresh,bluetooth_high_to_low_rssi_thresh,bluetooth_low_to_high_rssi_thresh,desense_high_to_low_rssi_thresh,desense_low_to_high_rssi_thresh,ack_pwr_high_to_low_rssi_thresh,ack_pwr_low_to_high_rssi_thresh,tx_pwr_high_to_low_rssi_thresh,tx_pwr_low_to_high_rssi_thresh,desense_level,ack_power_strong_rssi,ack_power_weak_rssi,transmit_power_strong_rssi,transmit_power_weak_rssi] **The last five values are chain attributes. Repeat those a number of times to match the number of chains the interface has. Currently there are four profile indices (0->3). : gets/sets btcoex active profile
    -priv_mac=[enable(on,off),flags(hex_number/scan_unassoc+scan_assoc_roam+scan_assoc_pno+scan_assoc_host),MAC,timeout]: Get/Set private MAC configuration.
    -capture=[reason string]: Request a CoreCapture dump.
    -cache_thresh: Get/set scan cache age threshold.
    -cardcap: Get card capabilities
    -cdd=[2.4GHz,5GHz(lower),5GHz(middle),5GHz(H),5GHz(upper)]: Get/Set CDD modes (off, on, auto)
    -clear_pmks: Clear PMK cache
    -chain_ack=[rf_chain1,rf_chain2,..]: Get/Set rf chain ACK (on, off)
    -channel=[number,[1/-1] or [number:[20,40above,40below,80]] Get/Set channel
    -cipher_key=key (key = hex digits or 'none')
    -color=[0/1] Set text colored output (default is 1). Flag must be set before the command with the formatted output for the color to apply.
    -countrychannels=[CC] : get channels for ISO country code
    -country_code=[ISO country code]: Get/Set current country code.
    -crash=[id]: set driver crash with crash id
    -deauth: Get/set a deauth code
    -debug=[none,info,err,rsn,scan]: Get/set debug verbosity.
    -desense=[2.4GHz,5GHz,low_rssi(2.4GHz),high_rssi(2.4GHz),low_rssi(5GHz),high_rssi(5GHz)]: Get/Set Desense modes (2.4GHz,5GHz=off, on), (low_rssi,high_rssi=dBm)
    -desense_level[=num]: Get/Set Desense level from 0 to 6
    -disassociate: disassociate from current network
    -driver_ver: Get driver version
    -dtim: Get/Set DTIM interval
    -dump_rom: Dump card rom
    -dwds=[on/off]: Get/Set dwds.
    -errdesc=[error_code]: Convert Apple80211 API error code into useful information.
    -events: monitor 802.11 events
    -factory_mode=[[powersaveon/powersaveoff],[countryadopton/countryadoptoff],[roamon/roamoff]]: Set environment for factory testing.
    -fmscan=[ssid,bssid...]: Query the scan cache for a list of SSIDs and/or BSSIDs.
    -frag: Get/Set fragmentation threshold.
    -fscan[=ssid]: Query the scan cache.
    -guard=[short,long]: Get/set the guard interval.
    -hardware_ver: Get hardware version
    -hostap=ssid: Start an infrastructure network with specified ssid
    -hostap_hidden=[enable/disable]: Get/Set host ap hidden mode
    -ibss=ssid,key: Start IBSS network with specified ssid, and optional hex WEP key
    -ie_add=[frame_types,signature_length,hex_ie_data]: Add an information element (Types: P=ProbeReq p=ProbeResp, A=AssocReq a=AssocResp, b=beacon)
    NOTE: The length byte is excluded when specifying an IE.
    -ie_del=[frame_types,hex_signature_data]: Delete an information element. Only frame type and signature data (does not include length) is specified.
    -ie_get=[hex_signature_data]: Retreive information about an IE configured with the specified signature. The signature does not include the length byte.
    -intmit: Get/Set interference mitigation (off,auto)
    -int_stats: Display interrupt stats
    -int_stats_reset: Reset interrupt stats
    -last_pkt: Get statistics about the last received packet.
    -lbst: Get the number of seconds since the last broadcast scan request was issued on the interface
    -ldpc=[on/off]: Get/Set ldpc.
    -link_changed_event_data: Print link changed event data.
    -locale: Get/Set locale (fcc, etsi, japan, korea, apac, row, indonesia)
    -log: Monitor reliable logger.
    -lq_event_params=[rssi_div,txrate_div,min_interval,hysteresis]: Get/set link quality event parameters.
    -lrl: Get/Set long retry limit
    -max_nss_for_ap : Get the maximum number of spatial streams supported by the AP to which the STA represented by the given interface is associated to.
    -mcs: Get/Set mcs index (0-76,auto).
    -mcs_vht=[auto/[0-23,1-3,20/40/80/160,sgi/lgi/agi]]: Get/Set VHT MCS. The order of the arguments is MCS index, NSS, bandwidth, guard interval (agi = auto).
    If set to 'auto', the driver resumes using its normal MCS selection.
    -mcs_index_set=[index,index,...]: Get/Set mcs index set.
    -mimo_ps: Get mimo powersave.
    -mpdu=[factor,density] Get/Set mpdu factor (0-3) and density (0-7).
    -mrate: Get/Set multicast rate.
    -mscan=[ssid,bssid,...]: Perform a scan for a list of SSIDs and/or BSSIDs.
    -mscan+bcast=[ssid,bssid,...]: Perform a scan for a list of SSIDs and/or BSSIDs, also probing the zero-length SSID.
    -msdu_len: Get/Set msdu length (must be 3839 or 7935).
    -mt: Monitor driver message tracer output.
    -noise: Get noise
    -offload_arp=[off/IPv4Address].
    -offload_arp_ndp=[arp,ndp]: Get/Set ARP/NDP Offloads (arp=off,IPv4 address)(ndp=off,IPv6 address)
    -offload_beacons=[enabled,csa] Enable/Disable Beacon Offloads (enabled=on/off)(csa=on/off)
    -offload_country_code=[chip,driver,family,userland] Get/Set the owner of adopting a country code.
    -offload_keepalive_l2=[discard,txperiod,wme_ac]: Get/Set Layer2 Keepalive Offloads (discard=on/off)(txperiod in ms)(wme=vi,vo,be,bk)
    -offload_ndp=[off/IPv6Address1,IPv6Address2,...]
    . -offload_rsn=[ptk/gtk]: Get/Set RSN Owner (ptk/gtk=chip,driver,family,userland)
    -offload_scan=[off/ssid1,ssid2,...]
    -offload_stats: Display offload stats
    -offload_stats_reset: Reset offload stats
    -offload_tcpka_enable=[enable/disable]: Get/Set TCP keep alive offload
    -opmode: Get opmode
    -p2p=[on/off]: If on, create device interface. If off, delete all p2p interfaces. No argument means dump interface's p2p interface list.
    -p2p_cli_default_ies=[on/off]: Configure or clear default P2P client IEs.
    -p2p_ct_window=[new_window]: Get/Set the client talk window in TUs.
    -p2p_find=[listen_chan]: Run P2P find procedure using the specified listen channel
    -p2p_go_conf=[ssid,channel[*/+/-],beacon,strict_probe_resp,airdrop]. Set p2p go configuration (beacon,strict_probe_resp,airdrop=on/off)
    -p2p_go_default_ies=[on/off]: Configure or clear default P2P GO IEs.
    -p2p_listen=[chan,dwell_ms] Run P2P listen mode on specified channel.
    -p2p_noa_list: Display the NoA descriptor list advertised by the interface.
    -p2p_opp_ps: Get/Set Opportunistic power save
    -p2p_scan: Scan each social channel once looking for the P2P Wildcard SSID
    -phymode=[a,b,g,n,ac]: Get/set phymode
    -phystats=[all,{timeQueued,finalDataRate,etc}] get phy stats for all peers
    -physubmode=[[auto/legacy/legacy_dup/ht/ht_dup/gf],[2/5/2-5],[20/20-40]]: Get/Set 802.11n phy sub mode.
    -pidlock=[on/off] Get/Set pid lock (setting locks scanning and associating to caller's pid only).
    -pls=[on/off]: Get/Set phy level spoofing.
    -pmk_cache: Dump the contents of the interface's PMK cache.
    -power=[rf_chain1,rf_chain2,..]: Get/Set rf chain power (on, tx, rx, off)
    -power_budget=[budget]: Get/Set power budget (0-100).
    -powersave: Get/Set powersave mode (disabled, 80211, vendor, maxtp, maxps)
    -protmode=[mode,threshold]: Get/Set protection mode and threshold (mode = off,auto,cts,rts-cts,dual_cts)
    -psmp=[on/off]: Get/Set PSMP.
    -radio: Print radio information.
    -rate: Get/Set rate (Set to 0 for auto rate selection)
    -rateset=[rate[b],rate[b]]: Get rate set for current network
    -reassoc: Force a reassociation to the current BSSID.
    -reset=[W,T,w,t,tt] reset WLAN chip, W:WD ,T:trap t/w:trigger WD with full dumps ,tt:trigger a WD after disabling traps.
    -rifs=[on/off]: Get/Set rifs.
    -roam=[BSSID, "chan" or "band"(optional), value(optional)]: Trigger opportunistic roam to specified BSSID (and optional channel to limit roam scan to specific channel). Specifying FF:FF:FF:FF:FF:FF instructs roaming algorithm to perform a scan cache evaluation.
    -roam_prof=[a/b/g,flags,rssi_upper,rssi_lower,delta,boost_thresh,boost_delta,nfscan,fullperiod,period,backoff,maxperiod,..]: Get/Set roaming profiles for a band.
    -roam_thresh=[rssi,rate]: Get/Set roam threshold parameters. Specifying 0 resets a parameter to its default value.
    -roaming=[chip,driver,family,userland] Get/Set roaming owner
    -rssi: Get RSSI
    -rxant: Get rx antenna
    -scan[=ssid]: Do a scan
    -scan_backoff_report=[enable]: Enable scan backoff reporting or get the most recent report.
    -scancache_clear: Clears the scan cache of the IO80211Family driver and the vendor driver.
    -shortslot: Get/Set short slot timing mode (auto, long, short)
    -srl: Get/Set short retry limit
    -ssid: Get/Set ssid
    -sta_ie=[sta_mac]: Retrieve station IE list.
    -sta_stats=[sta_mac]: Retrieve station Rx/Tx statistics.
    -stalist: Get station list
    -state: Get card state
    -stats: Dump tx/rx frame/error count
    -suppchannels: Get supported channels in active country code
    -hwsuppchannels: Get all hardware supported channels
    -tcp_client=ipv4_server_address[,keepalive_interval_seconds]: Connect to apple80211 echo server.
    -tcp_server[=keepalive_interval_seconds]: Run echo server.
    -awdl : get lots of awdl info
    -awdl_common_channel : Get AWDL Common Channel.
    -awdl_enable=[0/1] : enable AWDL.
    -awdl_extension_length=[msecs] : Set AWDL Availability Window Extension Length.
    -awdl_max_cpc: Set/Get AWDL max peer cache limit
    -awdl_peer_ampdu[=xx:xx:xx:xx:xx:xx on/off] : get/set ampdu enable for a given peer
    -awdl_aw_period=[msecs] : Set AWDL Availability Window Period.
    -awdl_aw_length=[msecs] : Set AWDL Availability Window Length.
    -awdl_peer_services : Print the advertised services per peer
    -timer_stats: Display timer stats
    -timer_stats_reset: Reset timer stats
    -thermal_index=[index]: Get/Set thermal index.
    -thermal_throttling=[rf_chain1,rf_chain2,..]: Get/Set rf chain thermal throttling (on, off)
    -trap_info[=Chip,JoinTimeout]: Get extended trap info
    -trap_crashtracer_mini_dump: Get CrashTracer Mini Dump
    -txant=[chain1_index,chain2_index,chain3_index,chain4_index]: Get/Set tx antenna (index may be 0, 1, or -1 for auto)
    -txpower: Get/Set txpower (mw)
    -tx_chain_power=[chain1_power,chain2_power,chain3_power,chain4_power]: Get/Set per chain TX power offset, in units of 1 dBm (use 0 to restore default behavior)
    -tx_nss: Get/Set the number of TX streams
    -vdebug=[none,assoc,connection,p2p] Get/Set vendor debug flags.
    -version: Display the version information
    -vht_mcs_index_set: Get vht mcs index set.
    -vif_create=[p2p_dev/p2p_cli/p2p_go/awdl/ap/wds,mac_addr]: Create a virtual interace with the specified role and address.
    -vif_delete=name: Delete virtual interface with the specified name.
    -vif_parent: Get the name of the physical interface through which a virtual interface was created.
    -vif_role: Retrieve role of virtual interface.
    -wake=[ip/mac/mac%ifname]
    -wake2=[mac%ifname]: Send magic packet for the specified address to that address and the broadcast address.
    -wow=[on/off]: Get/Set wake on wireless
    -wow_params=[magic,disassoc,deauthed,beacon_lost]: Get/set wake on wireless configuration
    -wow_pkt_sleep=[mac%ifname]: Send Apple specific WoW sleep notification packet.
    -wow_pkt_wake=[mac%ifname]: Send Apple specific WoW wake notification packet.
    -wow_test=[secs]: Enable/disable WoW test mode by specifying time for card to wake system after sleeping (0 to disable).
    -peer_stats=xx:xx:xx:xx:xx:xx : get data-path stats of a given peer
    -ht_capability : get HT capability
    -vht_capability : get VHT capability
    -dbg=command : send debug command to the driver.
    -awdl_sync_frame_period=[msecs] : Set AWDL Synchronization Frame Transmit Period.
    -awdl_sync_params : Get AWDL Sync Params.
    -awdl_master_channel : Get/Set AWDL Master Channel.
    -awdl_secondary_master_channel : Get/Set AWDL Secondary Master Channel.
    -awdl_ext_params : Get AWDL Extension Params.
    -awdl_min_ext[=num] : Set AWDL Minimum Number of Extension.
    -awdl_max_ext_uni[=num] : Set AWDL Maximum Number of Unicast Extension.
    -awdl_max_ext_multi[=num] : Set AWDL Maximum Number of Multicast Extension.
    -awdl_max_ext_action[=num] : Set AWDL Maximum Number of Action Extension.
    -awdl_strategy[=num] : Set AWDL strategy: 0=none 1=alwaysExtend-neverExtend.
    -awdl_presence_mode[=num] : Set AWDL Presence Mode.
    -awdl_aw_align_enabled[=0/1] : Enable/Disable AP Beacon Availability Window Alignment.
    -awdl_aw_align_offset[=num] : Set AWDL AP Beacon AW alignment offset.
    -awdl_scan_reserved_time[=num] : Set/Get AWDL time reserved for Scans.
    -awdl_aw_channel_sequence[= [s<step_count>] [d<duplicate_count] <ch0> <ch1> ... <chN>] : Step Count (optional, default is 1) Duplicate Count (optional, default is 0) and List of channels.
    -awdl_edge_rssi_thres[=threshold] : Set AWDL edge RSSI threshold.
    -awdl_close_rssi_thres[=threshold] : Set AWDL close range RSSI threshold.
    -awdl_close_sync_rssi_thres[=threshold] : Set AWDL close sync RSSI threshold.
    -awdl_mid_range_rssi_thres[=threshold] : Set AWDL mid range RSSI threshold.
    -awdl_guard_time[=val (ms)] : Get/Set AWDL guard time.
    -awdl_non_election_sync_period[=num] : Set AWDL Non Election Master Sync Frame Transmit Period (ms).
    -awdl_bt_coex_protected_period[=num] : Set AWDL BT Coex AW Protected Period Length.
    -awdl_election_enabled[=0/1] : Enable/Disable AWDL continuous ElectionProcess.
    -awdl_max_no_masters[=num] : Num of AW periods a Slave remains Slave if it doesn't hear from its Master.
    -awdl_sync_state[=master/slave/ne_master] : set sync state
    -awdl_service_request=xx:xx:xx:xx:xx:xx.
    -awdl_election_id[=val].
    -awdl_election_metric[=val] (Value of 0, sets the election metric to automatic mode).
    -dbgf[=param_name[=val]]. Get/Set awdl debug parameters - sent to Family
    -awdl_election : Get election parameters.
    -awdl_oob : Print AWDL OOB requests.
    -awdl_sr : Print AWDL service requests.
    -awdl_peers : Print AWDL Peers.
    -awdl_af_tx_mode : Set/Get AWDL AF Tx Mode.
    -awdl_peer_traffic_registration[="set=AA:BB:CC:DD:EE:FF"]. Get/Set peer registration for real time traffic
    -awdl_forced_roam: set channel to force roam to.
    -awdl_social_time_slots : Set/Get social timeslots.
    -awdl_redirect=XX:XX:XX:XX:XX:XX : Toggle redirecting traffic sent to a peer onto the Infrastructure interface.
    -awdl_oper_mode : Set/Get AWDL operation mode 0=AUTO 1=MANUAL
    -awdl_restore_defaults : Restores the default values for AWDL parameters
    -awdl_encrypt_type : Set/Get AWDL encryption type
    -awdl_keys : Set the AWDL keys
    -awdl_stats[=0] : Get the statistics for AWDL, =0 to clear
    -awdl_block_set_commands[=0/1] : when enabled all set commands to to the device are blocked
    -awdl_sync_tree : Print the synchronization tree
    -awdl_force_master[=XX:XX:XX:XX:XX:XX] Force sync to this master, specify empty MAC to disable[=]
    -awdl_peers_overlap : Get information on the overlap with current AWDL peers
    -awdl_peers_sync_stats : Get sync statistics of current AWDL peers
    -awdl_peers_sync_periods[=XX:XX:XX:XX:XX:XX] : Get sync period of specific AWDL peer
    -dbg_guard_time_params : [guard_dur, on_dur, off_chan_dur, off_channel, number_times]
    -leaky_ap_stats_mode : Enable / Disable leaky AP logging mode
    -leaky_ap_stats[=0] : Get leaky AP statistics (Value of 0, resets the data and used for debug purposes).
    -ctl[=flags [op]] : toggle log flags. op = set, clear or toggle, default is toggle
    -dlog : monitor driver log messages
    -ranging_enable=[addr,key] : set device rangeable to specified peer. AWDL must be enabled. Empty argument to query.
    -ranging_start=[addr,key,num_measurements,core_mask] : start ranging peer with specified MAC address using specified PMK over AWDL.
    -tko_params=[minPeriod, maxPeriod, minTimeout, maxTimeout, minRetries, maxRetries] : set TCP Keep Alive params
    -tko_dump : Dump TCP Keep Alive debug information
    -nearby_log_trigger=[unique log ID] : trigger near by devices log dump with unique id
    -suppress_scans[=0/1] : Get/Set suppress scans state. (0 to suppress, 1 to allow, empty argument to query)
    -nan_cluster_id[=aa:bb:cc:dd:ee:ff]: Get/Set NAN Cluster ID
    -nan_disc_bcn_period[=period]: Get/Set NAN Discovery beacon period in TUs
    -nan_sync_bcn_period[=period]: Get/Set NAN Sync beacon period in DWs, 1=every DW
    -nan_dw_awake_period[=2.4Gperiod,5Gperiod]: Get/Set NAN DW awake period, value is 2^n, max is 16
    -nan_bcn_tx_control[=bitmap: Get/Set NAN beacon transmission control
    -nan_host_election[=0/1]: Get/Set host election
    -nan_rssi_close[=RSSI]: Get/Set RSSI close for 2.4GHz beacons
    -nan_rssi_middle[=RSSI]: Get/Set RSSI middle for 2.4GHz beacons
    -nan_rssi_5g_close[=RSSI]: Get/Set RSSI close for 5GHz beacons
    -nan_rssi_5g_middle[=RSSI]: Get/Set RSSI middle for 5GHz beacons
    -nan_enable[=0/1]: Enable/Disable NAN functionality
    -nan: Get current NAN device state
    -nan_master_preference[=value]: Get/Set master preference
    -nan_random_factor[=value]: Get/Set random factor
    -nan_random_factor_rotation[=0/1]: Get/Set periodic randomization of the random factor
    -nan_hop_count_to_anchor_master: Get hop count to the AM
    -nan_master_rank: Get current master rank
    -nan_max_peers[=num]: Get/Set max number of peer supported in the FW
    -nan_master_channel[=channel]: Get/Set the primary master channel
    -nan_secondary_master_channel[=channel]: Get/Set the secondary master channel
    -nan_tx_rate[=txrate]: Get/Set minimum floored Tx rate
    -nan_warmup_time[=timeInSeconds]: Get/Set the NAN warmup time, in seconds
    -nan_current_anchor_master_record: Get current AMR
    -nan_last_anchor_master_record: Get last AMR
    -nan_sync_stats: Get current sync state
    -nan_hop_count_limit[=limit]: Get/Set the hop count limit
    -nan_af_tx: Set the payload of the Action Frame to the transmitted
    -nan_channel_sequence[="-h"]: Set/Get the channel sequence
    -nan_publish[="-h"]: Set publish request, ="-h" for help
    -nan_cancel_publish[=instanceID] Cancel the publish request
    -nan_subscribe[="-h"]: Set subscribe request, ="-h" for help
    -nan_cancel_subscribe[=instanceId]: Cance subscribe request
    -nan_followup_tx[="-h"]: Set payload for the followup, ="-h" for help
    -nan_followup_rx[="-h"]: Get the queued Rx followup SDF, , ="-h" for help
    -nan_disc_result[=subscribe_id,publish_id,publisher_address]: Get discovery result
    -nan_publisher_list[=instanceId]: Get the publishers list
    -nan_sd_stats: Get the service discovery statistics
    -nan_srv_desc_ext[="-h"]: Set service descriptor extenstion attribute, ="-h" for help
    -nan_dp_request[="-h"]: Set NAN DP request parameters, ="-h" for help
    -nan_dp_response[="-h"]: Set NAN DP response parameters, ="-h" for help
    -nan_dp_terminate[="-h"]: Terminate NAN DP, ="-h" for help
    -nan_advertisers: Get the NAN neighboring advertisers
    -nan_channel_avail[="-h"]: Set channel availability, committed, conditional or potential, ="-h" for help
    -nan_avail_bmap[="-h"]: Set/Get NAN availability time bitmap for NDC & Immutable, ="-h" for help
    -nan_ranging[="-h"]: Set ranging parameters for carry the range measurements, ="-h" for help
    -nan_ranging_resp=["-h"]: Configure range response parameters, ="-h" for help
    -nan_ranging_cancel=[range_id]: Cancels the range request for the specified range ID.
    -nan_peers: Get the peer database
    -nan_dbg=[flags ]: Get/Set runtime variables
    -nan_dp_info=["-h"]: Get info about the datapath associated with the specified ID & initiator mac addr
    -nan_vendor_payload=[-h]: Set vendor specific IE on all payload, =-h for help.
    -nan_qos[=<QoS Type>]: Get/Set NAN QoS Params
    -nan_fast_disc[=0/1] : Enable/Disable fast discovery mode, 0 = disable, 1 = enable
    -lqm_config[=lqm_update_interval_ms,rssi_update_interval_ms,chanq_update_interval_ms]: Get/Set LQM update intervals
    -traffic_reg --rtmode --set=<peer_mac_1>,<peer_mac_2> or -traffic_reg --sidecar --set=<peer_mac_1>
    -awdl_llw_params
    -softap_params[="-h"]: Set/Get SoftAP related parameters
    -softap_trigger_csa : Set SoftAP CSA parameters
    -softap_stats: Get SoftAP stats