I have Debian/Ubuntu hosts that I connect via an ad-hoc network with the following settings:
board:~# cat /etc/network/interfaces
auto wlan0
iface wlan0 inet static
address 10.0.0.2
netmask 255.255.255.0
wpa-driver nl80211
wpa-conf /etc/wpa_supplicant.conf
board:~# cat /etc/wpa_supplicant.conf
# IBSS/ad-hoc network with WPA-None/TKIP.
ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
network={
ssid="adhoc_test"
mode=1
frequency=2412
proto=WPA
key_mgmt=WPA-NONE
pairwise=NONE
group=TKIP
psk="abcdefgh"
bssid=F8:D1:11:52:0C:4E
}
These configurations create an ad-hoc WLAN; however, the nodes often get different cell IDs so that they cannot communicate with each other. To prevent it I added a bssid=F8:D1:11:52:0C:4E line; however, nodes don't get the predefined cell ID when they get the cell ID.
My question is how can I prevent nodes from getting different cell IDs? Why does the bssid line not work in the ad-hoc mode?
P.S. I tried these settings on Ubuntu and Debian distributions that have 3.2 and 3.4 kernels. Wpa_supplicant versions that I used were 0.7, 1.0, and 2.0. None work. For the chipset, I am using Atheros AR9271 chipset for the Wi-Fi module.
