Wifi direct (P2P) has been implemented in WLAN drivers and wpa_supplicant. I would like to work on 2 machines connected each through wifi direct.
Like mentioned in the comments I was only able to bring it to work with openSUSE 12.3. I got two laptops with the wifi card Atheros Communications Inc. AR9485 Wireless Network Adapter (rev 01).
Intel Wireless cards, at least the older ones, doesn't seem to be usable for Wifi Direct [yet].
Howto for 12.3:
All steps need to be run on both machines!
Since Network Manager and its own wpa_supplicant daemon could interfere it should be disabled. Switch in
yast2 lan to the traditional network method.
wpa_supplicant (>= 2.0) needs to be compiled with the following options:
For 12.3 and 13.1 I have created a forked package with these options: https://build.opensuse.org/package/show/home:thardeck:branches:openSUSE:13.1/wpa_supplicant
A configuration file for wpa_supplicant is required with the following content:
wpa_supplicant has to be started as a daemon:
wpa_supplicant -Dnl80211 -c <configuration_file> -f /var/log/wpa_supplicant -i wlan0 -ddt -B
The following commands need to be run in
p2p_stop //run after the opposite client was found
p2p_connect MAC pbc go_intent=1
Last but not least the network device has to be configured with something like:
ifconfig p2p-wlan0-0 192.168.1.<number> netmask 255.255.255.0 up
Findings with openSUSE 13.1
- I have used the same wpa_supplicant package just compiled against 13.1.
- Finding the p2p device does work but the connect does always fail because it is unable to switch the wireless mode. http://pastebin.suse.de/8001
- To test if it is just a driver issue/kernel regression I have installed the 12.3 Kernel in 13.1 but the result was the same. So I would suspect that the udev name changes might interfere in the process. I have already informed two udev guys if they have a clue if this might be the reason or how to address the issue.
Matt Chen is planning to integrate the functionality in NetworkManager so it would be much easier to set up a direct connection. This might make it pretty easy to share information between Android and Linux but I haven't tested the Android Wifi Direct functionality yet.
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-testing.git (wireless testing kernel)
Looking for hackers with the skills:
Nothing? Add some keywords!
This project is part of:
Hack Week 10
This project is one of its kind!