Wifi

無法在 Debian Wheezy 上使用 TP_LINK / TL-WN823N / Realtek 8192cu usb 無線適配器

  • October 7, 2015

我的桌面有一個 TP-LINK TL-WN823N 無線 USB 棒(Realtek 模組 8192cu)。我無法讓網路管理員使用它。

Wicd說沒有找到無線網路,標準網路監視器說無線已斷開連接。我已經執行了https://wiki.debian.org/rtl819x。在底部我有/etc/apt/sources.list文件的內容並執行apt-get update。(在執行這些測試時,電腦通過乙太網電纜連接)

從看iwconfig

lo        no wireless extensions.

wlan1     IEEE 802.11bgn  ESSID:off/any  
     Mode:Managed  Access Point: Not-Associated   Tx-Power=off   
     Retry  long limit:7   RTS thr=2347 B   Fragment thr:off
     Encryption key:off
     Power Management:off

eth0      no wireless extensions.

ifconfig wlan1:

wlan1     Link encap:Ethernet  HWaddr c4:e9:84:16:63:ed  
     UP BROADCAST MULTICAST  MTU:1500  Metric:1
     RX packets:0 errors:0 dropped:0 overruns:0 frame:0
     TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
     collisions:0 txqueuelen:1000 
     RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ifup wlan1:

Ignoring unknown interface wlan1=wlan1.

作業系統版本的輸出lsb_release -a

No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.9 (wheezy)
Release:    7.9
Codename:   wheezy

相關輸出lsusb

Bus 001 Device 004: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter

輸出apt-cache search Realtek

flashrom - Identify, read, write, erase, and verify BIOS/ROM/flash chips
nictools-pci - Diagnostic tools for many PCI ethernet cards
firmware-realtek - Binary firmware for Realtek wired and wireless network adapters

從做,apt-get install firmware-realtek

Reading package lists... Done
Building dependency tree       
Reading state information... Done
firmware-realtek is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

相關輸出dmesg

[   19.751049] rtl8192cu: MAC auto ON okay!
[   19.783738] rtl8192cu: Tx queue select: 0x05
[   19.784619] rtl8192c_common: Loading firmware file  rtlwifi/rtl8192cufw.bin
[   20.202574] ADDRCONF(NETDEV_UP): wlan1: link is not ready
[   20.499417] r8169 0000:02:00.0: firmware: agent loaded rtl_nic/rtl8168e-3.fw into memory

嘗試通過以下方式啟動 wlan0 ifconfig wlan0 up

wlan0: ERROR while getting interface flags: No such device

ifconfig wlan1 up工作原理是沒有出現錯誤

從看lsmod | grep rtl

rtl8192cu              74897  0 
rtlwifi                81393  1 rtl8192cu
rtl8192c_common        52602  1 rtl8192cu
mac80211              192806  3 rtl8192c_common,rtlwifi,rtl8192cu
cfg80211              137243  2 mac80211,rtlwifi
usbcore               128741  5 ehci_hcd,usbhid,rtlwifi,rtl8192cu

內容/etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

/etc/apt/sources.list內容_

# deb cdrom:[Debian GNU/Linux 7.7.0 _Wheezy_ - Official amd64 NETINST Binary-1 20141018-13:04]/ wheezy main
# deb cdrom:[Debian GNU/Linux 7.7.0 _Wheezy_ - Official amd64 NETINST Binary-1 20141018-13:04]/ wheezy main
deb http://ftp.uk.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.uk.debian.org/debian/ wheezy main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
# wheezy-updates, previously known as 'volatile'
deb http://ftp.uk.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://ftp.uk.debian.org/debian/ wheezy-updates main contrib non-free
deb http://download.virtualbox.org/virtualbox/debian wheezy contrib
# Debian 7 "Wheezy"
deb http://http.debian.net/debian/ wheezy main contrib non-free

編輯配置文件以wicd將其定向到wlan1,因為它正在註冊但未看到。

sudo nano /etc/wicd/manager-settings.conf 

並設置而不是wlan0none

wireless_interface = wlan1

引用自:https://unix.stackexchange.com/questions/234605