Skip to content
Commit 5cb1c855 authored by cyrozap's avatar cyrozap
Browse files

Enable wmt_dbg functionality

These patches make it possible to read memory from the WiFi controller's
address space. Functions executed by `wmt_dev_dbg_write` can be accessed
as follows:

echo b 00000000 0 > /proc/driver/wmt_dbg

Where "b" is the hexadecimal index of the function you want to run in
`wmt_dev_dbg_func[]` and "00000000" and "0" are the first and second
arguments to the function (`par2` and `par3` in the code).

In this case, 0xb is `wmt_dbg_reg_read`, so "00000000" is the address of
the register/dword you want to read (zero-padding not required), and "0"
is supposedly a mask value, but it doesn't seem to actually do anything.

The result of the read can be viewed by grepping dmesg for
"wmt_dbg_reg_read".
parent f10ab59b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment