Re: Why is rtwn module detaching?

2017-08-13 Thread Andriy Voskoboinyk
Sun, 13 Aug 2017 04:09:45 +0300 було написано Farhan Khan : Sounds like rtwn_init() fails somewhere - I would try to 'ifdef' out various routines from the end of it (e.g., everything but rtwn_power_on(), then rtwn_load_firmware(), rtwn_mac_init() etc.) to see where is the

Re: Why is rtwn module detaching?

2017-08-12 Thread Farhan Khan
Following up on this from earlier: I am trying to extend the sys/dev/rtwn/rtl8188e driver to support PCI. Linux calls this rtl8188ee. Right now, my code loads, reads the ROM, and will create an interface with: ifconfig wlan0 create wlandev rtwn0 But when I assign an IP address, it immediately

Re: Why is rtwn module detaching?

2017-08-07 Thread Adrian Chadd
For reference, we chatted on IRC. I think it's the NIC disappearing because giving it an iP brings it link 'up' and something in the 'up' path is causing the firmware to crash and the NIC to disappear. which bus is it on btw? eg, you could try 'devctl rescan pcib3' if it's on pcib3.. -adrian

Why is rtwn module detaching?

2017-08-05 Thread Farhan Khan
Hi all, I am slowly struggling through writing my Wifi first driver, which is an extension to the current rtwn driver. I have reached another hurdle that I'm stuck on. I bring up my wifi driver as follows: # kldload rtwn && kldload rtwn_pci # sudo ifconfig wlan0 create wlandev rtwn0 # sudo