thinkpad t410 wpa_supplicant wifip2p - Linux

Table of Contents

大家好

我想請問用wpa_supplicant建立wifi p2p連線的問題

[問題]
我用筆電雙系統的win7配合intel的wifi p2p軟體,
我可以用手機的wifi direct搜尋到NB。

但是當我使用Linux時,在wpa_cli中打p2p_find [timeout],
會直接跳出FAIL。我啟動wpa_supplicant的debug mode (wpa_supplicant ... -dt),
在wpa_cli出現FAIL時並沒有跳出錯誤或警告訊息

想請教諸位前輩這種狀況我應該朝那邊走?
我不清楚問題點到底是在driver不支援還是wpa_supplicant設定有問題,
還是在其他地方...Orz

[網路資訊]
有人說 $ iw list吐出來的訊息中,
supported interface mode沒有P2P_GO & P2P_client就是設備不支援
=> 不過win7的環境可以用p2p搜尋
=> 另外想請教,iw list是顯示wifi chip的資訊還是driver看到的資訊?

iwlwifi-1000 (intel wireless driver)本身不支援P2P
Linux wireless上提到的
=> P2P我以為可以靠更上層的軟體解決,還是這driver不支援就沒辦法?
wpa_supplicant的README本身並沒有提到這點,他只有說:

Linux drivers that support cfg80211/nl80211. Even though there are
number of driver specific interface included in wpa_supplicant, please
note that Linux drivers are moving to use generic wireless configuration
interface driver_nl80211 (-Dnl80211 on wpa_supplicant command line)
should be the default option to start with before falling back to driver
specific interface.

Linux drivers that support WPA/WPA2 configuration with the generic
Linux wireless extensions (WE-18 or newer). Obsoleted by nl80211.

In theory, any driver that supports Linux wireless extensions can be
used with IEEE 802.1X (i.e., not WPA) when using ap_scan=0 option in
configuration file.

我自己是比較偏向wpa_supplicant的設定是不是有問題, 設定檔如下(.config)
http://paste.ideaslabs.com/show/3SHxXWBuJK

runtime config:
http://paste.ideaslabs.com/show/3GzWKUcbWR


[環境]
硬體環境為thinkpad T410 (Intel Centrino wireless-N 1000)

OS: Debian 7
libnl-3
libnl-3-dev
wpa_supplicant v2.4
wpa_cli v2.4
iwlwifi-1000 39.31.5.1 (intel driver)

--

$ iw list
...
Supported interface modes:
* IBSS
* managed
* monitor
software interface modes (can always be added):
* monitor
Supported TX frame types:
* P2P-client: 0x00 0x10 0x20 ...
* P2P-GO: 0x00 0x10 0x20 ...
Supported RX frame types:
* P2P-client: 0x40 0xd0
* P2P-GO: 0x00 0x20 0x40 0xa0 0xb0...



--

All Comments

Jack avatarJack2015-04-11
你要的是wifi access point mode吧?
Tom avatarTom2015-04-12
P2P Mode 要有 Wireless Driver support,沒有是沒法動的