Advertisement
Guest User

Wl commands

a guest
Jul 8th, 2024
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.50 KB | None | 0 0
  1. WL MANUAL
  2.  
  3. Usage: wl [-a|i <adapter>] [-hu] <command> [arguments]
  4.  
  5. -a, -i adapter name or number
  6. -h, -u this message
  7.  
  8. ver get version information
  9.  
  10. cmds generate a short list of available commands
  11.  
  12. up reinitialize and mark adapter up (operational)
  13.  
  14. down reset and mark adapter down (disabled)
  15.  
  16. out mark adapter down but do not reset hardware(disabled)
  17. On dualband cards, cards must be bandlocked before use.
  18.  
  19. clk set board clock state. return error for set_clk attempt if the driver is not down
  20. 0: clock off
  21. 1: clock on
  22.  
  23. restart Restart driver. Driver must already be down.
  24.  
  25. reboot Reboot platform
  26.  
  27. ucflags Get/Set ucode flags
  28.  
  29. radio Set the radio on or off.
  30. "on" or "off"
  31.  
  32. dump print driver software state and chip registers to stdout
  33.  
  34. srdump print contents of SPROM to stdout
  35.  
  36. nvdump print nvram variables to stdout
  37.  
  38. lodump print measlo table to stdout
  39.  
  40. nvset set an nvram variable
  41. name=value (no spaces around '=')
  42.  
  43.  
  44. nvget get the value of an nvram variable
  45.  
  46.  
  47. revinfo get hardware revision information
  48.  
  49.  
  50. msglevel
  51. set driver console debugging message bitvector
  52. type 'wl msglevel ?' for values
  53.  
  54. PM set driver power management mode:
  55. 0: CAM (constantly awake)
  56. 1: PS (power-save)
  57. 2: FAST PS mode
  58.  
  59. wake set driver power-save mode sleep state:
  60. 0: core-managed
  61. 1: awake
  62.  
  63. promisc set promiscuous mode ethernet address reception
  64. 0 - disable
  65. 1 - enable
  66.  
  67. monitor set monitor mode
  68. 0 - disable
  69. 1 - enable active monitor mode (interface still operates)
  70.  
  71. frag Set the fragmentation threshhold. (integer [256, 2346])
  72.  
  73. rts Set the RTS threshhold. (integer [0, 2347])
  74.  
  75. cwmin Set the cwmin. (integer [1, 255])
  76.  
  77. cwmax Set the cwmax. (integer [256, 2047])
  78.  
  79. srl Set the short retry limit. (integer [1, 255])
  80.  
  81. lrl Set the long retry limit. (integer [1, 255])
  82.  
  83. rate force a fixed rate:
  84. valid values for 802.11a are (6, 9, 12, 18, 24, 36, 48, 54)
  85. valid values for 802.11b are (1, 2, 5.5, 11)
  86. valid values for 802.11g are (1, 2, 5.5, 6, 9, 11, 12, 18, 24, 36, 48, 54)
  87. -1 (default) means automatically determine the best rate
  88.  
  89. mrate force a fixed multicast rate:
  90. valid values for 802.11a are (6, 9, 12, 18, 24, 36, 48, 54)
  91. valid values for 802.11b are (1, 2, 5.5, 11)
  92. valid values for 802.11g are (1, 2, 5.5, 6, 9, 11, 12, 18, 24, 36, 48, 54)
  93. -1 (default) means automatically determine the best rate
  94.  
  95. a_rate force a fixed rate for the A PHY:
  96. valid values for 802.11a are (6, 9, 12, 18, 24, 36, 48, 54)
  97. -1 (default) means automatically determine the best rate
  98.  
  99. a_mrate force a fixed multicast rate for the A PHY:
  100. valid values for 802.11a are (6, 9, 12, 18, 24, 36, 48, 54)
  101. -1 (default) means automatically determine the best rate
  102.  
  103. bg_rate force a fixed rate for the B/G PHY:
  104. valid values for 802.11b are (1, 2, 5.5, 11)
  105. valid values for 802.11g are (1, 2, 5.5, 6, 9, 11, 12, 18, 24, 36, 48, 54)
  106. -1 (default) means automatically determine the best rate
  107.  
  108. bg_mrate
  109. force a fixed multicast rate for the B/G PHY:
  110. valid values for 802.11b are (1, 2, 5.5, 11)
  111. valid values for 802.11g are (1, 2, 5.5, 6, 9, 11, 12, 18, 24, 36, 48, 54)
  112. -1 (default) means automatically determine the best rate
  113.  
  114. infra Set Infrastructure mode: 0 (IBSS) or 1 (Infra BSS)
  115.  
  116. ap Set AP mode: 0 (STA) or 1 (AP)
  117.  
  118. bssid Get the BSSID value, error if STA and not associated
  119.  
  120. channel Set the channel:
  121. valid channels for 802.11b/g (2.4GHz band) are 1 through 14
  122. valid channels for 802.11a (5 GHz band) are:
  123. 36, 40, 44, 48, 52, 56, 60, 64,
  124. 100, 104, 108, 112, 116,120, 124, 128, 132, 136, 140,
  125. 149, 153, 157, 161,
  126. 184, 188, 192, 196, 200, 204, 208, 212, 216
  127.  
  128. tssi Get the tssi value from radio
  129.  
  130. txpwr Set tx power in milliwatts. Range [1, 84]. (Deprecated: Use txpwr1 instead)
  131.  
  132. txpwr1 Set tx power in in various units. Choose one of (default: dbm):
  133. -d dbm units
  134. -q quarter dbm units
  135. -m milliwatt units
  136. Can be combined with:
  137. -o turn on override to disable regulatory and other limitations
  138. Use wl txpwr -1 to restore defaults
  139.  
  140.  
  141. txpathpwr
  142. Turn the tx path power on or off on 2050 radios
  143.  
  144. txpwrlimit
  145. Return current tx power limit
  146.  
  147. powerindex
  148. Set the transmit power for A band(0-63).
  149. -1 - default value
  150.  
  151. atten Set the transmit attenuation for B band. Args: bb radio txctl1.
  152. auto to revert to automatic control
  153.  
  154. phyreg Get/Set a phy register.
  155.  
  156. radioreg
  157. Get/Set a radio register.
  158.  
  159. shmem Get/Set a shared memory location.
  160.  
  161. macreg Get/Set any mac registers(include IHR and SB)
  162. macreg offset size[2,4] [value]
  163.  
  164. antdiv Set antenna diversity for rx
  165. 0 - force use of antenna 0
  166. 1 - force use of antenna 1
  167. 3 - automatic selection of antenna diversity
  168.  
  169. txant Set the transmit antenna
  170. 0 - force use of antenna 0
  171. 1 - force use of antenna 1
  172. 3 - use the RX antenna selection that was in force during
  173. the most recently received good PLCP header
  174.  
  175. ratedump
  176. Print driver rate selection tunables and per-scb state to stdout
  177. based on remote station mac address[xx:xx:xx:xx:xx:xx]
  178.  
  179. plcphdr Set the plcp header.
  180. "long" or "auto" or "debug"
  181.  
  182. phytype Get phy type
  183.  
  184. scbdump print driver scb state to stdout
  185.  
  186. rateparam
  187. set driver rate selection tunables
  188. arg 1: tunable id
  189. arg 2: tunable value
  190.  
  191. wepstatus
  192. Set or Get WEP status
  193. wepstatus [on|off]
  194.  
  195. primary_key
  196. Set or get index of primary key
  197.  
  198. addwep Set an encryption key. The key must be 5, 13 or 16 bytes long, or
  199. 10, 26, 32, or 64 hex digits long. The encryption algorithm is
  200. automatically selected based on the key size. keytype is accepted
  201. only when key length is 16 bytes/32 hex digits and specifies
  202. whether AES-OCB or AES-CCM encryption is used. Default is ccm.
  203. addwep <keyindex> <keydata> [ocb | ccm] [notx] [xx:xx:xx:xx:xx:xx]
  204.  
  205. rmwep Remove the encryption key at the specified key index.
  206.  
  207. wep Set WEP options.
  208. wl wep [options]
  209. [on|enable|1] enable WEP
  210. [off|disable|0] disable WEP
  211. [sw|software] perform WEP in software
  212. [hw|hardware] perform WEP in hardware
  213.  
  214. tkip Set TKIP options.
  215. wl tkip [options]
  216. [on|enable|1] enable TKIP
  217. [off|disable|0] disable TKIP
  218. [sw|software] perform TKIP in software
  219. [hw|hardware] perform TKIP in hardware
  220.  
  221. aes Set AES options.
  222. wl aes [options]
  223. [on|enable|1] enable AES
  224. [off|disable|0] disable AES
  225. [sw|software] perform AES in software
  226. [hw|hardware] perform AES in hardware
  227.  
  228. keys Prints a list of the current WEP keys
  229.  
  230. tsc Print Tx Sequence Couter for key at specified key index.
  231.  
  232. wsec_test
  233. Generate wsec errors
  234. wsec_test <test_type> <keyindex|xx:xx:xx:xx:xx:xx>
  235. type 'wl wsec_test ?' for test_types
  236.  
  237. tkip_countermeasures
  238. Enable or disable TKIP countermeasures (TKIP-enabled AP only)
  239. 0 - disable
  240. 1 - enable
  241.  
  242. wsec_restrict
  243. Drop unencrypted packets if WSEC is enabled
  244. 0 - disable
  245. 1 - enable
  246.  
  247. eap
  248. restrict traffic to 802.1X packets until 802.1X authorization succeeds
  249. 0 - disable
  250. 1 - enable
  251.  
  252. authorize
  253. restrict traffic to 802.1X packets until 802.1X authorization succeeds
  254.  
  255. deauthorize
  256. do not restrict traffic to 802.1X packets until 802.1X authorization succeeds
  257.  
  258. deauthenticate
  259. deauthenticate a STA from the AP with optional reason code (AP ONLY)
  260.  
  261. wsec wireless security bit vector
  262. 1 - WEP enabled
  263. 2 - TKIP enabled
  264. 4 - AES enabled
  265. 8 - WSEC in software
  266.  
  267. wpa_auth
  268. Bitvector of WPA authorization modes:
  269. 1 WPA NONE
  270. 2 WPA-802.1X/WPA-Professional
  271. 4 WPA-PSK/WPA-Personal
  272. 64 WPA2-802.1X/WPA2-Professional
  273. 128 WPA2-PSK/WPA2-Personal
  274. 0 disable WPA
  275.  
  276. set_pmk Set passphrase for PMK in driver-resident supplicant.
  277.  
  278. scan Initiate a scan.
  279. Default an active scan across all channels for any SSID.
  280. Optional arg: SSID, the SSID to scan.
  281. Options:
  282. -s S, --ssid=S SSID to scan
  283. -t ST, --scan_type=ST [active|passive] scan type
  284. --bss_type=BT [bss/infra|ibss/adhoc] bss type to scan
  285. -b MAC, --bssid=MAC particular BSSID MAC address to scan, xx:xx:xx:xx:xx:xx
  286. -n N, --nprobes=N number of probes per scanned channel
  287. -a N, --active=N dwell time per channel for active scanning
  288. -p N, --passive=N dwell time per channel for passive scanning
  289. -h N, --home=N dwell time for the home channel between channel scans
  290. -c L, --channels=L comma or space separated list of channels to scan
  291.  
  292. passive Puts scan engine into passive mode
  293.  
  294. regulatory
  295. Get/Set regulatory domain mode (802.11d). Driver must be down.
  296.  
  297. spect Get/Set 802.11h Spectrum Management mode.
  298. 0 - Off
  299. 1 - Loose interpretation of spec - may join non-11h APs
  300. 2 - Strict interpretation of spec - may not join non-11h APs
  301.  
  302. scanresults
  303. Return results from last scan.
  304.  
  305. assoc Print information about current network association.
  306. (also known as "status")
  307.  
  308. status Print information about current network association.
  309. (also known as "assoc")
  310.  
  311. disassoc
  312. Disassociate from the current BSS/IBSS.
  313.  
  314. chanlist
  315. Return valid channels for the current settings.
  316.  
  317. channels
  318. Return valid channels for the current settings.
  319.  
  320. channels_in_country
  321. Return valid channels for the country specified.
  322. Arg 1 is the country abbreviation
  323. Arg 2 is the band(a or b)
  324.  
  325. curpower
  326. Return current tx power settings
  327.  
  328. scansuppress
  329. Suppress all scans for testing.
  330. 0 - allow scans
  331. 1 - suppress scans
  332.  
  333. evm Start an EVM test on the given channel, or stop EVM test.
  334. Arg 1 is channel number 1-14, or "off" or 0 to stop the test.
  335. Arg 2 is optional rate (1, 2, 5.5 or 11)
  336.  
  337. rateset Returns or sets the supported and basic rateset, (b) indicates basic
  338. With no args, returns the rateset. Args are
  339. rateset "default" | "all" | <arbitrary rateset>
  340. default - driver defaults
  341. all - all rates are basic rates
  342. arbitrary rateset - list of rates
  343. List of rates are in Mbps and each rate is optionally followed
  344. by "(b)" or "b" for a Basic rate. Example: 1(b) 2b 5.5 11
  345. At least one rate must be Basic for a legal rateset.
  346.  
  347. roam_trigger
  348. Set the roam trigger RSSI threshold. (integer)
  349.  
  350. roam_delta
  351. Set the roam candidate qualification delta. (integer)
  352.  
  353. roam_scan_period
  354. Set the roam candidate qualification delta. (integer)
  355.  
  356. suprates
  357. Returns or sets the 11g override for the supported rateset
  358. With no args, returns the rateset. Args are a list of rates,
  359. or 0 or -1 to specify an empty rateset to clear the override.
  360. List of rates are in Mbps, example: 1 2 5.5 11
  361.  
  362. scan_channel_time
  363. Get/Set scan channel time
  364.  
  365. scan_unassoc_time
  366. Get/Set unassociated scan channel dwell time
  367.  
  368. scan_home_time
  369. Get/Set scan home channel dwell time
  370.  
  371. scan_passive_time
  372. Get/Set passive scan channel dwell time
  373.  
  374. scan_nprobes
  375. Get/Set scan parameter for number of probes to use per channel scanned
  376.  
  377. prb_resp_timeout
  378. Get/Set probe response timeout
  379.  
  380. channel_qa
  381. Get last channel quality measurment
  382.  
  383. channel_qa_start
  384. Start a channel quality measurment
  385.  
  386. country Select Country code for use with 802.11d
  387. Use either long name or abbreviation from ISO 3166.
  388. Use 'wl country list [band(a or b)]' for the list of supported countries
  389.  
  390. locale OBSOLETE: use "wl country"
  391. Select the country:
  392. Worldwide
  393. Thailand
  394. Israel
  395. Jordan
  396. China
  397. Japan
  398. USA/Canada/ANZ
  399. Europe
  400. USAlow
  401. JapanHigh
  402. All
  403.  
  404. join Join a specified network SSID.
  405. Join syntax is: join <ssid> [key xxxxx] [imode bss|ibss] [amode open|shared|wpa|wpapsk|wpanone]
  406.  
  407. ssid Set or get the current SSID.
  408. Setting will initiate an assoication attempt if in infrastructure mode,
  409. or join/creation of an IBSS if in IBSS mode,
  410. or creation of a BSS if in AP mode.
  411.  
  412. mac Set or get the list of source MAC address matches.
  413. wl mac xx:xx:xx:xx:xx:xx [xx:xx:xx:xx:xx:xx ...]
  414. To Clear the list: wl mac none
  415.  
  416. macmode Set the mode of the MAC list.
  417. 0 - Disable MAC address matching.
  418. 1 - Deny association to stations on the MAC list.
  419. 2 - Allow association to stations on the MAC list.
  420.  
  421. wds Set or get the list of WDS member MAC addresses.
  422. Set using a space separated list of MAC addresses.
  423. wl wds xx:xx:xx:xx:xx:xx [xx:xx:xx:xx:xx:xx ...]
  424.  
  425. lazywds Set or get "lazy" WDS mode (dynamically grant WDS membership to anyone).
  426.  
  427. noise Get noise (moving average) right after tx in dBm
  428.  
  429. fqacurcy
  430. Manufacturing test: set frequency accuracy mode.
  431. freqacuracy syntax is: fqacurcy <channel>
  432. Arg is channel number 1-14, or 0 to stop the test.
  433.  
  434. crsuprs Manufacturing test: set carrier suppression mode.
  435. carriersuprs syntax is: crsuprs <channel>
  436. Arg is channel number 1-14, or 0 to stop the test.
  437.  
  438. longtrain
  439. Manufacturing test: set longtraining mode.
  440. longtrain syntax is: longtrain <channel>
  441. Arg is A band channel number or 0 to stop the test.
  442.  
  443. int Interrupt Test - remember to precede by 'wl down' and follow by 'wl up'
  444.  
  445. lbt Loopback Test - remember to precede by 'wl down' and follow by 'wl up'
  446.  
  447. band Returns or sets the current band
  448. auto - auto switch between available bands (default)
  449. a - force use of 802.11a band
  450. b - force use of 802.11b band
  451.  
  452. bands Return the list of available 802.11 bands
  453.  
  454. phylist Return the list of available phytypes
  455.  
  456. shortslot
  457. Get current 11g Short Slot Timing mode. (0=long, 1=short)
  458.  
  459. shortslot_override
  460. Get/Set 11g Short Slot Timing mode override. (-1=auto, 0=long, 1=short)
  461.  
  462. shortslot_restrict
  463. Get/Set AP Restriction on associations for 11g Short Slot Timing capable STAs.
  464. 0 - Do not restrict association based on ShortSlot capability
  465. 1 - Restrict association to STAs with ShortSlot capability
  466.  
  467. ignore_bcns
  468. AP only (G mode): Check for beacons without NONERP element (0=Examine beacons, 1=Ignore beacons)
  469.  
  470. pktcnt Get the summary of good and bad packets.
  471.  
  472. upgrade Upgrade the firmware on an embedded device
  473.  
  474. gmode Set the 54g Mode (LegacyB|Auto||GOnly|BDeferred|Performance|LRS)
  475.  
  476. gmode_protection
  477. Get G protection mode. (0=disabled, 1=enabled)
  478.  
  479. gmode_protection_control
  480. Get/Set 11g protection mode control alg. (0=always off, 1=monitor local association, 2=monitor overlapping BSS)
  481.  
  482. gmode_protection_cts
  483. Get/Set 11g protection type to CTS (0=disable, 1=enable)
  484.  
  485. gmode_protection_override
  486. Get/Set 11g protection mode override. (-1=auto, 0=disable, 1=enable)
  487.  
  488. legacy_erp
  489. Get/Set 11g legacy ERP inclusion (0=disable, 1=enable)
  490.  
  491. scb_timeout
  492. AP only: inactivity timeout value for authenticated stas
  493.  
  494. assoclist
  495. AP only: Get the list of associated MAC addresses.
  496.  
  497. rssi Get the current RSSI val, for an AP you must specify the mac addr of the STA
  498.  
  499. isup Get driver operational state (0=down, 1=up)
  500.  
  501. fasttimer
  502. Get/Set High frequency watchdog timeout (tx_power) [15 sec]
  503.  
  504. slowtimer
  505. Get/Set Low frequency watchdog timeout (nrssislope) [60 sec]
  506.  
  507. glacialtimer
  508. Get/Set Very Low frequency watchdog timeout (measurelo) [120 sec]
  509.  
  510. radar Enable/Disable radar
  511.  
  512. rssidump
  513. Dump rssi values from aci scans
  514.  
  515. interference
  516. Get/Set interference mitigation mode. Choices are:
  517. 0 = none
  518. 1 = non wlan
  519. 2 = wlan manual
  520. 3 = wlan automatic
  521.  
  522. aciargs Get/Set various aci tuning parameters. Choices are:
  523. enter: CRS glitch trigger level to start detecting ACI
  524. exit: CRS glitch trigger level to exit ACI mode
  525. glitch Seconds interval between ACI scans when glitchcount is continuously high
  526. spin: Num microsecs to delay between rssi samples
  527. Usage: wl aciargs [enter x][exit x][spin x][glitch x]
  528.  
  529. frameburst
  530. Disable/Enable frameburst mode
  531.  
  532. pwr_percent
  533. Get/Set power output percentage
  534.  
  535. wet Get/Set wireless ethernet bridging mode
  536.  
  537. bi Get/Set the beacon period (bi=beacon interval)
  538.  
  539. dtim Get/Set DTIM
  540.  
  541. wds_remote_mac
  542. Get WDS link remote endpoint's MAC address
  543.  
  544. wds_wpa_role_old
  545. Get WDS link local endpoint's WPA role (old)
  546.  
  547. wds_wpa_role
  548. Get/Set WDS link local endpoint's WPA role
  549.  
  550. authe_sta_list
  551. Get authenticated sta mac address list
  552.  
  553. autho_sta_list
  554. Get authorized sta mac address list
  555.  
  556. measure_req
  557. Send an 802.11h measurement request.
  558. Usage: wl measure_req <type> <target MAC addr>
  559. Measurement types are: TPC, Basic, CCA, RPI
  560. Target MAC addr format is xx:xx:xx:xx:xx:xx
  561.  
  562. quiet Send an 802.11h quiet command.
  563. Usage: wl quiet <TBTTs until start>, <duration (in TUs)>, <offset (in TUs)>
  564.  
  565. csa Send an 802.11h channel switch anouncement
  566. Usage wl csa <mode> <when (in TBTTs)> <channel>
  567.  
  568. constraint
  569. Send an 802.11h Power Constraint IE
  570. Usage: wl constraint 1-255 db
  571.  
  572. rm_req Request a radio measurement of type basic, cca, or rpi
  573. specify a series of measurement types each followed by options.
  574. example: wl rm_req cca -c 1 -d 50 cca -c 6 cca -c 11
  575. Options:
  576. -t n numeric token id for measurement set or measurement
  577. -c n channel
  578. -d n duration in TUs (1024 us)
  579. -p parallel flag, measurement starts at the same time as previous
  580.  
  581. Each measurement specified uses the same channel and duration as the
  582. previous unless a new channel or duration is specified.
  583.  
  584. rm_rep Get current radio measurement report
  585.  
  586. wme Set WME (Wireless Multimedia Extensions) mode (0=off, 1=on)
  587.  
  588. wme-ac wl wme-ac sta/ap [be, bk, vi, vo] [ecwmax, ecwmin, txop, aifsn, acm] value
  589.  
  590.  
  591. sta_info
  592. wl sta_info <xx:xx:xx:xx:xx:xx>
  593.  
  594. cap driver capabilities
  595.  
  596. malloc_dump
  597. debug malloc info
  598.  
  599. chan_info
  600. channel info
  601.  
  602. add_ie Add a vendor proprietary IE to 802.11 management packets
  603. Usage: wl add_ie <pktflag> length OUI hexdata
  604. <pktflag>: Bit 0 - Beacons
  605. Bit 1 - Probe Rsp
  606. Bit 2 - Assoc/Reassoc Rsp
  607. Bit 3 - Auth Rsp
  608. Example: wl add_ie 3 10 00:90:4C 0101050c121a03
  609. to add this IE to beacons and probe responses
  610.  
  611.  
  612. del_ie Delete a vendor proprietary IE from 802.11 management packets
  613. Usage: wl del_ie <pktflag> length OUI hexdata
  614. <pktflag>: Bit 0 - Beacons
  615. Bit 1 - Probe Rsp
  616. Bit 2 - Assoc/Reassoc Rsp
  617. Bit 3 - Auth Rsp
  618. Example: wl del_ie 3 10 00:90:4C 0101050c121a03
  619.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement