I've been trying to get my machine to work with Wi-Fi Direct and also ad-hoc mode. I have two dongles, one for each mode. I'm following this tutorial on how to set up wifi ad-hoc: WiFi Ad-hoc Network
*edit*
I followed the following steps:
I modified the
/etc/network/interfaces
document to be the following:
auto wlan0
iface wlan0 inet static
address 192.168.2.30
netmask 255.255.255.0
wireless-channel 1
wireless-essid IBSSNetwork
wireless-mode ad-hoc
wlan0
was my adapter for IBSS mode and wlan1
is my adapter for Wi-Fi direct. I also enabled Wi-Fi direct in the wpa_supplicant configuration. My other computer that I'm trying to communicate with using ad-hoc had the following in the /etc/network/interfaces
document:
auto wlan0
iface wlan0 inet static
address 192.168.2.31
netmask 255.255.255.0
wireless-channel 1
wireless-essid IBSSNetwork
wireless-mode ad-hoc
From this configuration, I can ping each computer but I cannot create a Wi-Fi direct network. Now I change the /etc/network/interfaces
document to be
auto wlan0
iface wlan0 inet static
address 192.168.2.30
netmask 255.255.255.0
wireless-channel 7
wireless-essid IBSSNetwork
wireless-mode ad-hoc
and
auto wlan0
iface wlan0 inet static
address 192.168.2.31
netmask 255.255.255.0
wireless-channel 7
wireless-essid IBSSNetwork
wireless-mode ad-hoc
and after rebooting the computer, I can no longer communicate via ad-hoc between computers, but I can create a Wi-Fi direct network on my first computer.
*end edit*
And I'm able to get the Wi-Fi direct and Wi-Fi ad hoc to work independently but not simultaneously. Here's my problem:
When I follow the guide and set the wireless channel to 1 and I use wpa_cli
- the p2p-dev-wlan1
interface does not show up. When I change the wireless channel in the /etc/network/interfaces
document, I can't ping the other computer on the Ad-hoc network.
**So my question is, what is blocking me from using both interfaces simultaneously and why can't I set the Wi-Fi ad hoc network to another channel and still communicate with other devices?**
Thanks!
Asked by FettFrank
(271 rep)
Feb 23, 2018, 06:44 PM
Last activity: Feb 24, 2018, 09:01 AM
Last activity: Feb 24, 2018, 09:01 AM