无线网络未显示在 Debian Wheezy 上

无线网络未显示在 Debian Wheezy 上

这是的延续另一个帖子现在已经解决了。

现在我实际上正在努力获取可用的无线网络列表。 Intel 7260 似乎已正确安装和检测,但任何加入名为“mar”的 ESSID 的尝试都会失败。我尝试过使用wpa_supplicant(请参阅问题描述中的进一步内容)。

请注意,我可以获得使用的网络列表,iwlist scan但没有使用结果wpa_cli list_networks(请参阅进一步)。这对我来说没有多大意义,因为这对我来说都是新鲜事。

环境

消息

root@marvin:~# dmesg | grep wifi
[    2.793592] iwlwifi 0000:02:00.0: enabling device (0000 -> 0002)
[    2.793814] iwlwifi 0000:02:00.0: irq 44 for MSI/MSI-X
[    2.801067] iwlwifi 0000:02:00.0: firmware: direct-loading firmware iwlwifi-7260-9.ucode
[    2.801353] iwlwifi 0000:02:00.0: loaded firmware version 25.222.9.0 op_mode iwlmvm
[    2.816828] iwlwifi 0000:02:00.0: Detected Intel(R) Dual Band Wireless AC 7260, REV=0x144
[    2.817506] iwlwifi 0000:02:00.0: L1 Disabled; Enabling L0S
[    2.817768] iwlwifi 0000:02:00.0: L1 Disabled; Enabling L0S
[    4.697179] iwlwifi 0000:02:00.0: L1 Disabled; Enabling L0S
[    4.697409] iwlwifi 0000:02:00.0: L1 Disabled; Enabling L0S

配置文件

# iwconfig

eth0      no wireless extensions.

wlan0     IEEE 802.11abgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on

lo        no wireless extensions.

列表

 $ sudo iwlist wlan0 scan
 wlan0     Scan completed :
          Cell 01 - Address: F4:CA:E5:FE:60:D4
                    Channel:10
                    Frequency:2.457 GHz (Channel 10)
                    Quality=29/70  Signal level=-81 dBm  
                    Encryption key:on
                    ESSID:"mar"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 22 Mb/s
                              6 Mb/s; 9 Mb/s; 12 Mb/s
                    Bit Rates:18 Mb/s; 24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000001c32228160
                    Extra: Last beacon: 3276ms ago
                    IE: Unknown: 00036D6172
                    IE: Unknown: 010882848B962C0C1218
                    IE: Unknown: 03010A
                    IE: Unknown: 050400020000
                    IE: Unknown: 2A0104
                    IE: Unknown: 3205243048606C
                    IE: Unknown: 7F080000000000000040
                    IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
          Cell 02 - Address: F4:CA:E5:FE:60:D5
                    Channel:10
                    Frequency:2.457 GHz (Channel 10)
                    Quality=29/70  Signal level=-81 dBm  
                    Encryption key:off
                    ESSID:"FreeWifi"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 22 Mb/s
                              6 Mb/s; 9 Mb/s; 12 Mb/s
                    Bit Rates:18 Mb/s; 24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000001c32228160
                    Extra: Last beacon: 3240ms ago
                    IE: Unknown: 00084672656557696669
                    IE: Unknown: 010882848B962C0C1218
                    IE: Unknown: 03010A
                    IE: Unknown: 050401020000
                    IE: Unknown: 2A0104
                    IE: Unknown: 3205243048606C
                    IE: Unknown: 2D1A6C0003FFFFFF0001000000000000000100000000000000000000
                    IE: Unknown: 3D160A001300000000000000000000000000000000000000
                    IE: Unknown: 7F080000000000000040
                    IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00

ip链接

# ip link show wlan0
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT qlen 1000
    link/ether 00:15:00:bc:79:e2 brd ff:ff:ff:ff:ff:ff

接口

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

# The loopback network interface
#auto lo
#iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

wpa_supplicant.conf

# more /etc/wpa_supplicant/wpa_supplicant.conf
network={
    ssid="mar"
    key_mgmt=NONE
    wep_key0=fffffffff
}


# wpa_cli reconfigure
Selected interface 'wlan0'
FAIL

但最令人惊讶的是,而iwlist scan提供了一个网络列表?

# wpa_cli list_networks
Selected interface 'wlan0'
network id / ssid / bssid / flags

# wpa_cli status
Selected interface 'wlan0'
wpa_state=INACTIVE
address=00:15:00:bc:79:e2

更新

# ps -ef | grep wpa
/sbin/wpa_supplicant -s -B -P /var/run/wpa_supplicant.wlan0.pid -i wlan0 -D nl80211,wext -t -ddd -c /etc/wpa_supplicant/wpa_supplicant.conf -C /var/run/wpa_supplicant


# wpa_cli scan_results
Selected interface 'wlan0'
bssid / frequency / signal level / flags / ssid
f4:ca:e5:fe:60:d4   2457    -83 [WEP][ESS]  mar
f4:ca:e5:fe:60:d6   2457    -85 [WPA2-EAP-TKIP+CCMP][ESS]   FreeWifi_secure
f4:ca:e5:fe:60:d5   2457    -83 [ESS]   FreeWifi

但我仍然不太确定为什么list_networks没有返回结果(?)我一定是误解了用法。

相关内容