Line 96: |
Line 96: |
| This copies the input data into state, and sets a flag in state. | | This copies the input data into state, and sets a flag in state. |
| | | |
− | This data is used during RequestSleep if a state field is set for using it (the codepath using this will throw an error if this data was not set). This data is cleared afterwards regardless of whether it was used. This is used for configuring various config related to wowl/etc (wake-on-WLAN). This probably isn't actually usable, "wowl_activate" must be set but sysmodule-side doesn't do so (unless wifi-controller sets it automatically?). | + | This data is used during RequestSleep if a state field is set for using it (the codepath using this will throw an error if this data was not set). This data is cleared afterwards regardless of whether it was used. This is used for configuring various config related to wowl/tcpka/etc (wake-on-WLAN/TCP keep-alive). Note that an error is thrown if "wowl_activate" isn't set but sysmodule-side doesn't do so (unless wifi-controller sets it automatically?). |
| + | |
| + | This is used by [[Network_Interface_services|nifm]]. |
| | | |
| == Cmd26 == | | == Cmd26 == |
Line 104: |
Line 106: |
| | | |
| This flag is eventually checked by code which runs via RequestSleep, and in one case with wlan:dtc cmd19 (also used by requests done by nnMain). | | This flag is eventually checked by code which runs via RequestSleep, and in one case with wlan:dtc cmd19 (also used by requests done by nnMain). |
| + | |
| + | == Cmd27 == |
| + | Takes a type-0xA output buffer containing an array of 2-byte entries, returns an output u32 total_out. |
| + | |
| + | This memcpys data from state into the output buffer, clamped to a maximum of 0x40 entries (nifm hard-codes the count to 0x26). |
| | | |
| == Cmd30 == | | == Cmd30 == |
Line 113: |
Line 120: |
| | | |
| This cmd is used by [[Network_Interface_services|nifm]] with a value from state, prior to using RequestSleep. | | This cmd is used by [[Network_Interface_services|nifm]] with a value from state, prior to using RequestSleep. |
| + | |
| + | == Cmd38 == |
| + | Takes an input u32 enum, no output. |
| + | |
| + | The input value must be 0-1. |
| + | |
| + | This internally sends a request which is then eventually handled (if the input doesn't match state already + other state fields are valid) by configuring "pm2_sleep_ret_ext" with a global struct selected via the input value. Afterwards another func is called with input value 2. |
| | | |
| = wlan:lcl = | | = wlan:lcl = |