/dev/wl0
< /dev
Jump to navigation
Jump to search
The /dev/wl0 node represents the wireless interface.
List of functions (Ioctl)
Command | Function | Notes |
---|---|---|
0x1 | ||
0x2 | dhd_nin_dispatch | Dispatches a command to the interface. See #Command Overview. |
Command Overview
Commands are dispatched using IOCTL 0x2 with an IoBuffer as the input and no output.
Each command consists of a request and a confirmation stored consecutively in the IoBuffer.
Request Header
Start | Length | Description |
---|---|---|
0x00 | 0x0C | Unused/Reserved |
0x0C | 0x02 | Command code |
0x0E | 0x02 | Request length divided by 2 |
The request data follows after the header.
Confirm Header
Start | Length | Description |
---|---|---|
0x00 | 0x02 | Command code (must match the request code) |
0x02 | 0x02 | Confirm length divided by 2 |
0x04 | 0x02 | Result |
The response data follows after the header.
List of Commands
Each command contains a 16 bit command code, where the higher 8 bit represent a category and the lower 8 bit a command in the category.
Category 0 (MLME)
Command | Function | Notes |
---|---|---|
0x00 | wlc_mlme_reset_cmd | |
0x01 | Reserved | |
0x02 | ||
0x03 | wlc_mlme_join_cmd | |
0x04 | Reserved | |
0x05 | nwm_mlme_deauth_cmd | |
0x06 | Reserved | |
0x07 | Reserved | |
0x08 | nwm_mlme_deauth_cmd | Same as CMD 0x05? |
0x09 | wlc_mlme_start_cmd | |
0x0A | ||
0x0B | Reserved | |
0x0C | wlc_wps_start_cmd | |
0x0D | ||
0x0E | wlc_uds_start_cmd |
Category 1 (MA)
Command | Function | Notes |
---|---|---|
0x00 | wlc_ma_data_cmd | |
0x01 | ||
0x02 | wlc_ma_mp_cmd | |
0x03 | ||
0x04 |
Category 2 (PARAM)
Command | Function | Notes |
---|---|---|
0x00 | wlc_paramset_all_cmd | |
0x01 | ||
0x02 | ||
0x03 | ||
0x04 | ||
0x05 | ||
0x06 | ||
0x07 | ||
0x08 | wlc_paramset_wepkey_cmd | |
0x09 | ||
0x0A | ||
0x0B | ||
0x0C | ||
0x0D | ||
0x0E | ||
0x0F | ||
0x10 | Reserved | |
0x11 | ||
0x12 | ||
0x13 | ||
0x14 | ||
0x15 | ||
0x16 | ||
0x40 | ||
0x41 | Reserved | |
0x42 | ||
0x43 | ||
0x44 | Reserved | |
0x45 | ||
0x46 | ||
0x47 | dhd_nin_set_maclist | |
0x48 | ||
0x49 | ||
0x4A | ||
0x4B | ||
0x4C | Reserved | |
0x4D | ||
0x4E | ||
0x4F | Reserved | |
0x50 | Reserved | |
0x51 | Reserved | |
0x52 | Reserved | |
0x53 | Reserved | |
0x54 | ||
0x55 | ||
0x56 | Reserved | |
0x80 | ||
0x81 | ||
0x82 | ||
0x83 | dhd_nin_getcountryinfo | |
0x84 | ||
0x85 | ||
0x86 | ||
0x87 | ||
0x88 | Reserved | |
0x89 | ||
0x8A | ||
0x8B | ||
0x8C | ||
0x8D | ||
0x8E | ||
0x8F | ||
0x90 | Reserved | |
0x91 | ||
0x92 | dhd_nin_maxassoc | |
0x93 | dhd_nin_txant | |
0x94 | ||
0x95 | ||
0x96 | ||
0xC0 | ||
0xC1 | ||
0xC2 | ||
0xC3 | ||
0xC4 | Reserved | |
0xC5 | ||
0xC6 | ||
0xC7 | ||
0xC8 | ||
0xC9 | ||
0xCA | Reserved | |
0xCB | ||
0xCC | ||
0xCD | ||
0xCE | ||
0xCF | Reserved | |
0xD0 | Reserved | |
0xD1 | Reserved | |
0xD2 | Reserved | |
0xD3 | Reserved | |
0xD4 | Reserved | |
0xD5 | ||
0xD6 | wlc_paramget_amd_cmd |
Category 3 (DEV)
Command | Function | Notes |
---|---|---|
0x00 | Reserved | |
0x01 | Reserved | |
0x02 | wlc_dev_idle_cmd | |
0x03 | ||
0x04 | wlc_dev_reboot_cmd | |
0x05 | ||
0x06 | ||
0x07 | ||
0x08 | ||
0x09 | wlc_dev_testsignal_cmd | |
0x0A | wlc_dev_suspend_sdio_cmd |