如何使我的 Atheros AR9485 无线网卡在 Ubuntu Server 16.04 中工作?

如何使我的 Atheros AR9485 无线网卡在 Ubuntu Server 16.04 中工作?

因此,我最近在一台旧电脑上安装了 Ubuntu Server 16.04,将其设置为服务器。在设置过程中,它已连接,但当我第一次启动时,它无法连接。因此,我四处寻找了一段时间,并阅读了 Ask Ubuntu 帖子以寻找答案。我找到了很多帖子,但没有一篇能解决我的问题。

我运行后lshw -C network得到了输出:

 *-network DISABLED
   description: Ethernet interface
   product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
   vendor: Realtek Semiconductor Co., Ltd.
   physical id: 0
   bus info: pci@0000:03:00.0
   logical name: enp3s0
   version: 07
   serial: 40:a8:f0:3c:ef:09
   size: 10Mbit/s
   capacity: 100Mbit/s
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
   configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half latency=0 link=no multicast=yes port=MII speed=10Mbit/s
   resources: irq:33 ioport:e000(size=256) memory:d0804000-d0804fff memory:d0800000-d0803fff
*-network
   description: Wireless interface
   product: AR9485 Wireless Network Adapter
   vendor: Qualcomm Atheros
   physical id: 0
   bus info: pci@0000:04:00.0
   logical name: wlp4s0
   version: 01
   serial: b8:ee:65:9e:42:99
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
   configuration: broadcast=yes driver=ath9k driverversion=4.4.0-116-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
   resources: irq:39 memory:fea00000-fea7ffff memory:fea80000-fea8ffff

它曾经显示 AR9485 设备已被禁用,但我运行ifconfig wlp4s0 up后问题就解决了。

我也运行了,lsmod | grep ath9k得到了输出:

ath9k                 147456  0
ath9k_common           36864  1 ath9k
ath9k_hw              479232  2 ath9k_common,ath9k
ath                    32768  3 ath9k_common,ath9k,ath9k_hw
mac80211              737280  1 ath9k
cfg80211              565248  4 ath,ath9k_common,ath9k,mac80211

我还安装了 rfkill(我必须手动下载它并将其放在 USB 上)并运行,rfkill list all得到输出:

0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no

接下来我运行iwconfig并得到:

wlp4s0    IEEE 802.11bgn  ESSID:off/any  
    Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
    Retry short limit:7   RTS thr:off   Fragment thr:off
    Power Management:off

然后我跑了ifconfig wlp4s0

lo      Link encap:Local Loopback  
    inet addr:127.0.0.1  Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING  MTU:65536  Metric:1
    RX packets:7064 errors:0 dropped:0 overruns:0 frame:0
    TX packets:7064 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1 
    RX bytes:524368 (524.3 KB)  TX bytes:524368 (524.3 KB)

wlp4s0    Link encap:Ethernet  HWaddr b8:ee:65:9e:42:99  
    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)

我不认为这是司机的问题,因为我读过页面上说他们提供的驱动程序ath9k是内核的一部分,而且这是他们为 Qualcomm Atheros AR9485 无线网络适配器提供的唯一驱动程序。

我还修改了 /etc/network/interfaces,如下所示:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

auto wlp4s0
iface wlp4s0 inet dhcp
    wpa-driver wext
    wpa-ssid myessid
    wpa-ap-scan 1
    wpa-proto RSN
    wpa-pairwise CCMP
    wpa-key-mgmt WPA-PSK
    wpa-password mypasshere

我在想我是不是应该用wlan0而不是wlp4s0?但不管怎样都不起作用。我也用 重启了网络,sudo /etc/init.d/networking restart但仍然不起作用。

有人能给我一些建议吗?我不想再买一个无线适配器。

相关内容