If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.
Property:dhdctl
BoxMatrix >> Shell-Commands >> dhdctl | @ BoxMatrix - IRC-Chat - Translate: de es fr it nl pl |
News | Selectors | Models | Accessories | Components | Environment | Config | Commands | System | Webif | Software | Develop | Lexicon | Community | Project | Media |
Startup-Scr | Hotplug-Scr | BusyBox-Cmds | Bash-Cmds | AVM-Cmds | Chipset-Cmds | Linux-Cmds | Shared-Libs | Kernel-Mods | Research |
Chipset-Command
Command: | dhdctl - type Link, Exec | Wiki | Freetz | IPPF | whmf | AVM | Web |
Location: | Shell-Commands >> Chipset-Commands - Origin: Broadcom | ||||||
Path: | Release: /bin Lab+Rel: /bin | ||||||
Properties: | Size: 101k, Link - Firmware: 6.54 - 7.31 | ||||||
Function: | Broadcom Dongle Host Driver Control. |
Goto: Examples - Dependencies - Model-Matrix - Symbols - SMW-Browser
Details
dhdctl is the Broadcom Dongle Host Driver Control. DHD is the WLAN offload accelerator driver dhd.ko.
dhdctl contacts the dhd.ko driver through the WLAN network interfaces wl0 or wl1.
7581 fw 7.17:
root@fritz:/var/mod/root# dhdctl Usage: dhdctl [-a|i <adapter>] [-h] [-d|u|x] <command> [arguments] -h this message -a, -i adapter name or number -d display values as signed integer -u display values as unsigned integer -x display values as hexdecimal cmds generate a short list of available commands version get version information lmtest get/set low memory test flag msglevel get/set message bits bcmerrorstr errorstring wdtick watchdog tick time (ms units) msi_sim simulate MSI interrupts for the PCIE full dongle operation pcie_lpbk send a loopback message on the bus pcie_dmaxfer send a dma transfer message on the bus pcie_tx_lpbk enable/disable loopback of tx packets on the bus pcie_suspend suspend/resume pcie bus oob_bt_reg_on get/set level of BT_REG_ON pin oob_enable Enable OOB DEVICE_WAKE functionality pciereg get/set a pciereg from the device bar0secwinreg g/set any backplane address across BAR0 pciecorereg get/set a pciecorereg from the device pcieserdesreg get/set a pcieserdesreg from the device. first param is the block adress. second is the register offset, third is value of reg pciecfgreg get/set a pciecfgreg from the device aspm get/set ASPM values sleep_allowed boolean to indicate whether the device is allowed to go to deep sleep cc_nvmshadow dump OTP/SPROM shadow in chip common enum space dump_ringupdblk dump ring update block in dhd memory dma_ring_indices allow dmaing write/read indices from dongle to host memory intr use interrupts on the bus pollrate number of ticks between bus polls (0 means no polling) idletime number of ticks for activity timeout (-1: immediate, 0: never) idleclock idleclock active | stopped | <N> active (0) - do not request any change to the SD clock stopped (-1) - request SD clock be stopped on activity timeout <N> (other) - an sd_divisor value to request on activity timeout sd1idle change mode to SD1 when turning off clock at idle forceeven force SD tx/rx buffers to be even readahead enable readahead feature (look for next frame len in headers) sdrxchain enable packet chains to SDIO stack for glom receive alignctl align control frames sdalign display the (compiled in) alignment target for sd requests txbound get/set maximum number of tx frames per scheduling rxbound get/set maximum number of rx frames per scheduling txminmax get/set maximum number of tx frames per scheduling while rx frames outstanding dconpoll g/set dongle console polling interval (ms) dump dump information cons send string to device console (sd only) clearcounts reset the bus stats shown in the dhd dump logdump dump the timestamp logging buffer logcal logcal <n> -- log around an osl_delay of <n> usecs logstamp logstamp [<n1>] [<n2>] -- add a message to the log ramstart display start address of onchip SOCRAM ramsize display size of onchip SOCRAM usb_lb_txfer usb_lb_txfer <cnt> <size> send cnt usb looback packets of size equal to len on the bus membytes membytes [-h | -r | -i] <address> <length> [<data>] read or write data in the dongle ram -h <data> is a sequence of hex digits rather than a char string -r output binary to stdout rather hex buzzz_dump buzzz_dump download download [-a <address>] [--noreset] [--norun] [--verify] <binfile> [<varsfile>] download file to specified dongle ram address and start CPU optional vars file will replace vars parsed from the CIS --noreset do not reset SOCRAM core before download --norun do not start dongle CPU after download --verify do readback verify default <address> is 0 dldn download <binfile> download file to specified dongle ram address 0 vars vars [<file>] override SPROM vars with <file> (before download) coredump coredump <file> dump dongle RAM content into a file in dumpfile format for use with ELF core generator consoledump consoledump dump dongle debug console buffer upload upload [-a <address> ] <file> [<size>] upload dongle RAM content into a file default <address> is 0, default <size> is RAM size srdump display SPROM content srwrite write data or file content to SPROM srwrite <word-offset> <word-value> ... srwrite [-c] <srom-file-path> -c means write regardless of crc sleep enter/exit simulated host sleep (bus powerdown w/OOB wakeup) kso keep sdio on devcap brcm device capabilities devsleep Sleep CMD14 extloop external loopback: convert all tx data to echo test frames pktgen configure/report pktgen status (SDIO) -f N frequency: send/recv a burst every N ticks -c N count: send/recv N packets each burst -t N total: stop after a total of N packets -p N print: display counts on console every N bursts -m N min: set minimum length of packet data -M N Max: set maximum length of packet data -l N len: set fixed length of packet data -s N stop after N tx failures -d dir test direction/type: send -- send packets discarded by dongle echo -- send packets to be echoed by dongle burst -- request bursts (of size <-c>) from dongle one every <-f> ticks, until <-t> total requests recv -- request dongle enter continuous send mode, read up to <-c> pkts every <-f> ticks until <-t> total reads dngl_isolation g/set dongle isolation, so the dev could be disabled with out effecting the dongle state ltrsleep_on_unload g/set sending ltr sleep message on unload config sdreg g/set sdpcmdev core register (f1) across SDIO (CMD53) sbreg g/set any backplane core register (f1) across SDIO (CMD53) sd_cis dump sdio CIS sd_devreg g/set device register across SDIO bus (CMD52) sd_hostreg g/set local controller register sd_blocksize g/set block size for a function sd_blockmode g/set blockmode sd_ints g/set client ints sd_dma g/set dma usage: [PIO | SDMA | ADMA1 | ADMA2] sd_yieldcpu allow blocking (yield of CPU) on data xfer sd_minyield minimum xfer size to allow CPU yield sd_forcerb force readback when changing local interrupt settings sd_numints number of device interrupts sd_numlocalints number of non-device interrupts sd_divisor set the divisor for SDIO clock generation sd_power set the SD Card slot power sd_power_save set the SDIO3.0 power save value sd_clock turn on/off the SD Clock sd_crc turn on/off CRC checking in SPI mode sd_mode g/set SDIO bus mode (spi, sd1, sd4) sd_highspeed set the high-speed clocking mode sd_msglevel g/set debug message level sd_hciregs display host-controller interrupt registers sdiod_drive SDIO Device drive strength in milliamps. (0=tri-state, 1-12mA) spi_errstats SPI device status error statistics. spi_respdelay g/set response delay flag. devreset Move device into or out of reset state (1/reset, or 0/operational) pcie_device_trap trap the pcie device via mailbox mechanism ioctl_timeout IOCTL response timeout (milliseconds). proptx enable/disable the proptxtstatus feature 0 - disabled 1 - enabled ptxmode set the proptxtstatus operation mode: 0 - Unsupported 1 - Use implied credit from a packet status 2 - Use explicit credit proptx_opt enable/disable proptxtstatus optimizations to increase throughput: 0 - Unsupported 1 - Enable proptxstatus optimizations to increase throughput pmodule_ignore use/bypass the proptxtstatus module 0 - apply 1 - bypass pcredit_ignore apply/ignore the proptxtstatus credit control 0 - apply 1 - ignore ptxstatus_ignore process/ignore the proptxtstatus txstaus 0 - process 1 - ignore rxpkt_chk check/ignore rx packet for multiple AC detection 0 - ignore 1 - check sd_uhsimode g/set UHSI Mode host_reorder_flows get host reorder flows txglomsize max glom size for sdio tx txp_thresh max txp glom to flush to device on PCIE Tx txglommode glom mode for sdio tx 0- copy, 1- multidescriptor fw_hang_report enable/disable report firmware hangs for firmware reload 0 - disabled (for testing) 1 - enabled (default) tuning_mode get/set tuning mode 1 - Disabled periodic tuning 0 - Enable periodic tuning tcpack_suppress Turn tcpack_suppress on/off 0 - off 1 - on txinrx_thres get/set threshold for num of in-queued pkts to tx in rx process 0 - always send out in rx process num - amount of in-queued pkts db1_for_mb get/set doorbell1 option for Mail box interrupt, for PCIE FD0 - use default config write for mb interrupt 1 - use enumeration doorbell1 write for mb interrupt flow_prio_map 0 - Default AC priority map 1 - TID based priority map op_mode get/set operation mode when cfg80211 is used 1- STA Only 2- SOFT AP Only 3- P2P Only 4- STA + P2P assert_type set/get the asset_bypass flag assert_type <1/0> (On/Off) wowl_wakeind get wowl wake reason WAKE_EVENT_NLO_DISCOVERY_BIT 0x0001 WAKE_EVENT_AP_ASSOCIATION_LOST_BIT 0x0002 WAKE_EVENT_GTK_HANDSHAKE_ERROR_BIT 0x0004 WAKE_EVENT_4WAY_HANDSHAKE_REQUEST_BIT 0x0008 WAKE_EVENT_NET_PAKCET_BIT 0x0010 UNSPECIFIED (dhd not the wake reason) 0x0000 wmf_bss_enable enable/disable wmf features wmf_psta_disable disable/enable wmf for proxy sta wmf_ucast_igmp enable/disable wmf unicast igmp features wmf_mcast_data_sendup enable/disable wmf multicast data sendup wmf_ucast_igmp_query enable/disable wmf unicast igmp query wmf_ucast_upnp enable/disable wmf unicast upnp features ap_isolate set/get AP isolation proxy_arp enable/disable proxy arp features dhcp_unicast enable/disable dhcp unicast features block_ping enable/disable block ping features grat_arp enable/disable grat arp features block_tdls enable/disable block_tdls feature dev_def set/get dev_def pmac Get mac obj values such as of SHM and IHR usage: dhd -i IF pmac <type> <address> [-s step_size] [-n num] [-b bitmap] [-v] type: register typeaddress: register addressstep_size: 0 or 2 or 4 num : how many to print bitmap : 32-bit value -v: verbose mode dump_mac dump mac registers in the list usage: dhd -i IF dump_mac [-x] [-v] [-k] -x: Dump psmx regs-v: verbose mode-k: Kill ARM processor before start dumping psvmp Get svmp mem values usage: dhd -i IF psvmp [-n num] num : how many to print -v: verbose mode dump_svmp dump svmp mems in the list usage: dhd -i IF dump_svmp [-v] [-k] -v: verbose mode-k: Kill ARM processor before start dumping mcast_regen_bss_enable enable/disable per bss unicast to multicast pkt conversion feature lbr_aggr_en_mask get/set tid bit mask for low bit rate aggregation b'0: disable b'1: enable lbr_aggr_len get/set number of packets to aggregate lbr_aggr_release_timeout get/set low bit rate aggregation time window to release aggregates pktc Enable/Disable PKTC 0 - disable 1 - enable pktcbnd RX PKTC bound rnr_flowring_profile Get/Set DHD Runner Flowring profile Usage: dhd -i IF rnr_flowring_profile -id <id> -ac_bk <weight:size> -ac_be <weight:size> -ac_vi <weight:size> -ac_vo <weight:size> -bc_mc <weight:size> <id> 0-2 user profile per radio 3-7 Built-in profiles <weight> priority to allocate reserved memory -1: Allocate all ring items 0: do not allocate ring items 1-n: allocate n items (<size) per round robin allocation <size> numer of items in the flow ring NOTE: Set needs DHD driver unload or system reboot rnr_flowring_policy Get/Set DHD Runner Flowring selection policy for HW or SW Usage: dhd -i IF rnr_flowring_policy -<policy> <setting> <policy> policy name (global, intfidx, clients, aclist, maclist, dot11ac) <setting> setting based on the policy <policy> <setting> global <0/1> intfidx <interface index> clients <number of clients> aclist ac_bk:<0/1> ac_be:<0/1> ac_vi:<0/1> ac_vo:<0/1> bc_mc:<0/1> maclist <xx-xx-xx-xx-xx-xx> dot11ac <0/1> NOTE: Set needs DHD driver unload or system reboot rnr_rxoffload Get/Set DHD Runner Rx Offload Usage: dhd -i IF rnr_rxoffload <1/0> 0 disable Rx Offload acceleration 1 Enable Rx Offload acceleration NOTE: Set needs DHD driver unload or system reboot
Examples
7581 fw 7.17:
root@fritz:/var/mod/root# dhdctl -a wl0 cmds aspm intr ptxstatus_ignore sd_power alignctl idletime proxy_arp sd_power_save assert_type idleclock pmac sd_clock ap_isolate ioctl_timeout psvmp sd_crc bcmerrorstr kso pktc sd_mode bar0secwinreg lmtest pktcbnd sd_highspeed buzzz_dump logdump readahead sd_msglevel block_ping logcal rxbound sd_hciregs block_tdls logstamp ramstart sdiod_drive cmds ltrsleep_on_unload ramsize spi_errstats cc_nvmshadow lbr_aggr_en_mask rxpkt_chk spi_respdelay cons lbr_aggr_len rnr_flowring_profile sd_uhsimode clearcounts lbr_aggr_release_timeout rnr_flowring_policy txbound coredump msglevel rnr_rxoffload txminmax consoledump msi_sim sleep_allowed txglomsize dump_ringupdblk membytes sd1idle txp_thresh dma_ring_indices mcast_regen_bss_enable sdrxchain txglommode dconpoll oob_bt_reg_on sdalign tuning_mode dump oob_enable srdump tcpack_suppress download op_mode srwrite txinrx_thres dldn pcie_lpbk sleep usb_lb_txfer devcap pcie_dmaxfer sdreg upload devsleep pcie_tx_lpbk sbreg version dngl_isolation pcie_suspend sd_cis vars devreset pciereg sd_devreg wdtick db1_for_mb pciecorereg sd_hostreg wowl_wakeind dhcp_unicast pcieserdesreg sd_blocksize wmf_bss_enable dev_def pciecfgreg sd_blockmode wmf_psta_disable dump_mac pollrate sd_ints wmf_ucast_igmp dump_svmp pktgen sd_dma wmf_mcast_data_sendup extloop pcie_device_trap sd_yieldcpu wmf_ucast_igmp_query forceeven proptx sd_minyield wmf_ucast_upnp fw_hang_report ptxmode sd_forcerb flow_prio_map proptx_opt sd_numints grat_arp pmodule_ignore sd_numlocalints host_reorder_flows pcredit_ignore sd_divisor
Dependencies
Daily updated index of all dependencies of this command. Last update: 2024-12-23 07:59 GMT.
A *
in the Mod
column marks info from Supportdata-Probes, which will always stay incomplete.
Relation | Typ | Object | Mod | Firmware | Info | Origin |
---|---|---|---|---|---|---|
Symlink to | cmd | dhd | 1 | 7.20 - 7.31 | Alias for dhdctl. | Broadcom |
Symlinked by | cmd | dhd | 2 | 6.54 - 7.18 | Alias for dhdctl. | Broadcom |
Depends on | lib | libc.so | 2 | 6.54 - 7.18 | Standard C library | Linux |
Depends on | lib | libgcc_s.so | 2 | 6.54 - 7.18 | GCC low-level runtime library | Linux |
4 dependencies for this command |
Model-Matrix
Daily updated index of the presence, path and size of this command for each model. Last update: 2024-12-23 05:44 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom/rtl)
label in the Model
column shows which CPU is meant for Multi-Linux models.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.
Model | Firmware | Path | Size |
---|---|---|---|
FRITZ!Box 7530 AX | 7.20 - 7.31 | /bin | Link |
FRITZ!Box 7581 | 6.54 - 7.18 | /bin | 101k |
FRITZ!Box 7582 | 6.83 - 7.18 | /bin | 101k |
3 models use this command |
Symbols
Daily updated index of all symbols of this command. Last update: 2024-12-23 07:59 GMT.
Firmware | Symbol |
---|---|
6.54 - 7.18 | ctrlc_handler |
1 symbol for this command |