Bug 216748 - RTL8188CUS usb wifi adapter not working with CURRENT on i386 (not tested on other arch)
Summary: RTL8188CUS usb wifi adapter not working with CURRENT on i386 (not tested on o...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: CURRENT
Hardware: i386 Any
: --- Affects Only Me
Assignee: freebsd-usb mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-03 05:28 UTC by lenzi.sergio
Modified: 2017-02-13 02:03 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lenzi.sergio 2017-02-03 05:28:48 UTC
Hello,
I am trying to make work a TPlink TL WN725N NANO, that have a chip RTL8188CUS 
the adaptor works on 11-STABLE  but not on 12-CURRENT. I put some traces in the code, it finds the adaptor, but does NOT call the firmware-get code
the code calls ieee80211_ifattach from start to return but the interface DOES Not show wlan0  the word LZT is a "TRACE"  I put on the code that shows the function and the source line
Note that the attach code is called, than the ieee80211_ifattach is also colled and exit but the interface wlan0 does not show available.
Any help would be very welcome. as I need to make an access point using the device 

some files:
/boot/loader.conf
legal.realtek.license_ack=1


===========================
dmesg after iserting the device:
ugen1.2: <vendor 0x0bda product 0x8176> at usbus1
rtwn0 on uhub0
rtwn0: <vendor 0x0bda product 0x8176, class 0/0, rev 2.00/2.00, addr 2> on usbus1
LZT function:rtwn_usb_attach[344] name is rtwn0
LZT rtwn_attach[171]
rtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
LZT ieee80211_ifattach[331] ENTER
LZT ieee80211_ifattach[373] EXIT
LZT rtwn_attach[312] OKKKKKKKKKK
LZT function:rtwn_usb_attach[370] ATTACH
ugen1.2: <vendor 0x0bda product 0x8176> at usbus1 (disconnected)
rtwn0: at uhub0, port 5, addr 2 (disconnected)
rtwn0: detached
Comment 1 Andriy Voskoboinyk freebsd_committer 2017-02-03 20:24:52 UTC
ifconfig wlan0 create wlandev rtwn0 ?
Comment 2 Andriy Voskoboinyk freebsd_committer 2017-02-03 20:47:03 UTC
for access point (will be created as 'wlan3'):
- manually (with SSID 'test_hostap'):
ifconfig wlan3 create wlandev rtwn0 wlanmode hostap ssid AP
hostapd /etc/hostapd-wlan3.conf

- automatically (in /etc/rc.conf):
wlans_rtwn0="wlan3"
create_args_wlan3="wlanmode hostap"
ifconfig_wlan3="HOSTAP ssid AP"

sample config for hostapd(8) (should be in /etc/hostapd-wlan3.conf):

> interface=wlan3
> debug=1
> ctrl_interface_group=wheel
> ssid=AP
> wpa=2
> wpa_passphrase=passphrase
> wpa_key_mgmt=WPA-PSK
> wpa_pairwise=CCMP
Comment 3 Andriy Voskoboinyk freebsd_committer 2017-02-03 20:47:45 UTC
(In reply to Andriy Voskoboinyk from comment #2)
s/test_hostap/AP/
Comment 4 lenzi.sergio 2017-02-03 21:28:23 UTC
(In reply to Andriy Voskoboinyk from comment #1)

OK it works... 
I was confused because the prior version (freeBSD11) on insert of the device
ifconfig shows de device urtwn0

Now the device does not show not even /dev/rtwn0...  only a message in the console...  

Ok sorry for the noise...


Thank you all

Case CLOSED