2
1
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.
Thank you for your reply. I saw your post on stackoverflow as well. I am looking for a solution for wpa_supplicant. The reason is that iwconfig or iw tool provides WEP encryption. My config above has also WEP encryption settings but I will use RSN patch to have WPA2 however iwconfig can only provide WEP as I know. I use
bssid
on wpa_Supplicant to force device to get the defined cell ID but it does not, I test it on several different embedded boards and desktops, but I experienced the same problem each time. I would appreciate if you know any solution for the wpa_supplicant. – None – 2013-03-23T13:30:34.433In addition to stackoverflow, I would be happy to give the bounty on http://askubuntu.com/questions/256846/predefined-cell-id-assignment-for-an-ad-hoc-wlan if I could get a remedy for my problem. Most of all, I would appreciate a lot for the help.
– None – 2013-03-23T13:32:53.647Sorry, I tried WPA + Ad-hoc using configuration like yours. But with no luck, all I got is an OPEN(no WEP/no WPA). Are you sure the WPA+Ad-hoc is feasible? – user209528 – 2013-03-23T15:32:27.993