AndreyPopov
Senior Member
ASUS RT-N53 - stock firmware. how to restart wl-high (5g) driver by console?
ASUS RT-N53
stock firmware 374.4561
to start 5G on RT-N53 in init-broadcom.c code found:
continued in next post
ASUS RT-N53
stock firmware 374.4561
to start 5G on RT-N53 in init-broadcom.c code found:
Code:
#ifdef RTCONFIG_BRCM_USBAP
/* We have to load USB modules after loading PCI wl driver so
* USB driver can decide its instance number based on PCI wl
* instance numbers (in hotplug_usb())
*/
modprobe("usbcore");
#ifdef LINUX26
mount("usbfs", "/proc/bus/usb", "usbfs", MS_MGC_VAL, NULL);
#else
mount("usbdevfs", "/proc/bus/usb", "usbdevfs", MS_MGC_VAL, NULL);
#endif /* LINUX26 */
{
char insmod_arg[128];
int i = 0, maxwl_eth = 0, maxunit = -1;
char ifname[16] = {0};
int unit = -1;
char arg1[20] = {0};
char arg2[20] = {0};
char arg3[20] = {0};
char arg4[20] = {0};
char arg5[20] = {0};
char arg6[20] = {0};
char arg7[20] = {0};
const int wl_wait = 3; /* max wait time for wl_high to up */
/* Save QTD cache params in nvram */
sprintf(arg1, "log2_irq_thresh=%d", nvram_get_int("ehciirqt"));
sprintf(arg2, "qtdc_pid=%d", nvram_get_int("qtdc_pid"));
sprintf(arg3, "qtdc_vid=%d", nvram_get_int("qtdc_vid"));
sprintf(arg4, "qtdc0_ep=%d", nvram_get_int("qtdc0_ep"));
sprintf(arg5, "qtdc0_sz=%d", nvram_get_int("qtdc0_sz"));
sprintf(arg6, "qtdc1_ep=%d", nvram_get_int("qtdc1_ep"));
sprintf(arg7, "qtdc1_sz=%d", nvram_get_int("qtdc1_sz"));
modprobe("ehci-hcd", arg1, arg2, arg3, arg4, arg5, arg6, arg7);
/* Search for existing PCI wl devices and the max unit number used.
* Note that PCI driver has to be loaded before USB hotplug event.
* This is enforced in rc.c
*/
#define DEV_NUMIFS 8
for (i = 1; i <= DEV_NUMIFS; i++) {
sprintf(ifname, "eth%d", i);
Last edited: