Ad-hoc networking

An IBSS (Independent Basic Service Set) network, often called an ad-hoc network, is a way to have a group of devices talk to each other wirelessly, without a central controller. It is an example of a peer-to-peer network, in which all devices talk directly to each other, with no inherent relaying.

Now you can create an ad-hoc network. Replace your_ssid with the name of the network and frequency with the frequency in MHz, depending on which channel you want to use. See the Wikipedia page List of WLAN channels for a table showing frequencies of individual channels.

# iw interface ibss join your_ssidfrequency

WPA supplicant

ctrl_interface=DIR=/run/wpa_supplicant GROUP=wheel
# use 'ap_scan=2' on all devices connected to the network
# this is unnecessary if you only want the network to be created when no other networks are available
ap_scan=2
network={
ssid="MySSID"
mode=1
frequency=2432
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
psk="secret passphrase"
}

Run wpa_supplicant on all devices connected to the network with the following command: