'iwlist' -> 界面不支持扫描 (Ubuntu LTS 10.04)

Vas*_*ass 17 command-line networking wifi ubuntu networkcard

我在三星 N150+ 上网本上使用 Ubuntu 10.04 (LTS)。我无法使用扫描 wifi 网络iwlist,我想这样做。以下是一些测试的输出:

alex@alex-laptop:~/Desktop/GoogleCode$ iwlist eth1 scan
eth1      Interface doesn't support scanning.


alex@alex-laptop:~/Desktop/GoogleCode$ iwlist scan
lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

eth1      Interface doesn't support scanning.

pan0      Interface doesn't support scanning.
Run Code Online (Sandbox Code Playgroud)

所以我尝试 iwconfig

alex@alex-laptop:~/Desktop/GoogleCode$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11  Access Point: Not-Associated   
      Link Quality:5  Signal level:207  Noise level:168
      Rx invalid nwid:0  invalid crypt:0  invalid misc:0

pan0      no wireless extensions.
Run Code Online (Sandbox Code Playgroud)

我有一个05:00.0 Network controller: Broadcom Corporation Device 4727 (rev 01)来自使用lspci.

任何提示?

小智 15

您必须在扫描之前启动 eth1。

ifconfig eth1 up

iwlist eth1 s


jor*_*anm 5

使用 iwlist 进行扫描并通过 iwconfig 关联到接入点的能力需要 root。在 Ubuntu 中,您可以使用以下命令:

sudo iwlist eth1 scan
Run Code Online (Sandbox Code Playgroud)


vaa*_*aab 5

如果您已检查您是 root 用户并且您的设备已启动:

sudo ifconfig eth1 up && sudo iwlist eth1 scan
Run Code Online (Sandbox Code Playgroud)

它仍然不起作用,我发现:

iw dev wlan0 scan ap-force
Run Code Online (Sandbox Code Playgroud)

在我的情况下会起作用。似乎该iwlist工具已过时,并且不再支持最近的 wifi 芯片组。


小智 5

查看rfkill list all

我的输出如下

0: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no
Run Code Online (Sandbox Code Playgroud)

导致错误的原因是接口不支持扫描

要删除该块,只需运行以下命令

sudo rfkill unblock wifi
Run Code Online (Sandbox Code Playgroud)