In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Difference between revisions of "/dev/net/ifmgr/ncl"

From WiiUBrew
Jump to navigation Jump to search
(Document a few netconf functions)
 
Line 1: Line 1:
 +
{{DEFAULTSORT:dev/net/ifmgr/ncl}}
 +
[[Category:Wii U Filesystem]]
 
/dev/net/ifmgr/ncl is the IOSU device node that handles network configuration. Its functions are exposed to the Cafe OS userspace through [[nsysnet.rpl]]'s netconf functions.
 
/dev/net/ifmgr/ncl is the IOSU device node that handles network configuration. Its functions are exposed to the Cafe OS userspace through [[nsysnet.rpl]]'s netconf functions.
  

Revision as of 12:25, 6 May 2016

/dev/net/ifmgr/ncl is the IOSU device node that handles network configuration. Its functions are exposed to the Cafe OS userspace through nsysnet.rpl's netconf functions.

ioctl() interface

0x0C - netconf_get_wifi_cfg()

This function is used to get the configuration information of the active wifi profile. It takes no input, and stores its output in a wifi configuration buffer.

0x11 - netconf_set_wifi_cfg()

This function is used to set the configuration information of the active wifi profile. It takes a wifi configuration buffer as input, and produces no output.

Structures

Wifi Configuration

<syntaxhighlight lang="C"> /* Wifi configuration */ typedef struct {

   char unk0[0x4-0x0];
   char ssid[0x20];
   uint16_t ssid_len;
   char unk26[0x2c-0x26];
   uint16_t key_len;
   char key[0x40];
   char unk6e[0x70-0x6e];

} wifi_config_t;