Solved TP LINK TL-WN823N (USB)

Hello,

I'm trying using this wireless adapter on FreeBSD 10.2. I can create the wlan0 interface successfully and run wpa_supplicant and dhclient on it with no errors, but when I trying a ping scan it returns "network is down" message. Anyone knows what's happening?

In my /boot/loader.conf I have this lines:

Code:
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
if_urtwn_load="YES"
urtwn-rtl8192cfwU_load="YES"
legal.realtek.license_ack=1

The dmesg command doesn't show anything wrong when I plugged the device:

Code:
urtwn0: <vendor 0x0bda product 0x8178, class 0/0, rev 2.00/2.00, addr 3> on usbus0
urtwn0: MAC/BB RTL8192CU, RF 6052 2T2R

Thanks to all.
PS: sorry if my English is not well, is not my native language.
 
Sorry, the ifconfig output is:

Code:
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
 options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
    ether 74:d4:35:53:b1:7e
    inet 192.168.1.35 netmask 0xffffff00 broadcast 192.168.1.255 
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    media: Ethernet autoselect (100baseTX <full-duplex>)
    status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    inet6 ::1 prefixlen 128 
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 
    inet 127.0.0.1 netmask 0xff000000 
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
urtwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
    ether e8:de:27:15:33:af
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
    status: associated
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ether e8:de:27:15:33:af
    inet 192.168.1.36 netmask 0xffffff00 broadcast 192.168.1.255 
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
    status: associated
    ssid WLAN_E6A6 channel 3 (2422 MHz 11g) bssid 38:72:c0:7d:e6:a9
    country US authmode WPA privacy ON deftxkey UNDEF TKIP 2:128-bit
    txpower 0 bmiss 7 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250
    roam:rssi 7 roam:rate 5 protmode CTS roaming MANUAL

The wlan0 interface is up with an IP assigned through dhcpd, but the ping command says "network down" always.

Thanks.
 
This is the netstat -rn command output:

Code:
Routing tables

Internet:
Destination        Gateway            Flags      Netif Expire
default            192.168.1.1        UGS         re0
127.0.0.1          link#2             UH          lo0
192.168.1.0/24     link#1             U           re0
192.168.1.35       link#1             UHS         lo0
192.168.1.36       link#4             UHS         lo0

Internet6:
Destination                       Gateway                       Flags      Netif Expire
::/96                             ::1                           UGRS        lo0
::1                               link#2                        UH          lo0
::ffff:0.0.0.0/96                 ::1                           UGRS        lo0
fe80::/10                         ::1                           UGRS        lo0
fe80::%lo0/64                     link#2                        U           lo0
fe80::1%lo0                       link#2                        UHS         lo0
ff01::%lo0/32                     ::1                           U           lo0
ff02::/16                         ::1                           UGRS        lo0
ff02::%lo0/32                     ::1                           U           lo0
 
Ok, I found the problem. When I do the ping command, the interface where ping exit was the wired interface re0. To test, I unplugged the ethernet and I bring up the usb wireless and it works.

Thanks to all.
 
Back
Top