Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

predefined cell ID assignment for an ad-hoc wlan [closed]

I have a debian/ubuntu boards that I connect them 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 creates an ad-hoc wlan, however, the nodes often gets different cell ID so that they cannot communicate with each other. To prevent it I added bssid=F8:D1:11:52:0C:4E line, however, no node get this predefined cell ID when they get the cell ID.

My question is that how can I prevent nodes to get different cell IDs? why bssid line does not work in the ad-hoc mode?

P.S. I tried these settings on ubuntu and debian dist. that have 3.2 and 3.4 kernels. wpa_supplicant versions that I used were 0.7, 1.0, and 2.0 all did not work. For the chipset, I am using Atheros AR9271 chipset for the wifi module.

like image 975
johan Avatar asked Feb 12 '13 20:02

johan


People also ask

What is ad hoc mode in WIFI?

Ad-hoc mode refers to a wireless network structure where devices can communicate directly with each other. It is an additional feature that is specified in the 802.11 set of standards, which is referred to as an independent basic service set (IBSS). This type of wireless network is also called peer-to-peer mode.

What are the properties of ad hoc network?

Ad-hoc networks are decentralized, self-organizing networks capable of forming a communication network without relying on any fixed infrastructure. Each node in an ad-hoc network is equipped with a radio transmitter and receiver which allows it to communicate with other nodes over wireless channels.

What is adhoc network and why they are called Adhoc?

An ad hoc network is a network that is composed of individual devices communicating with each other directly. The term implies spontaneous or impromptu construction because these networks often bypass the gatekeeping hardware or central access point such as a router.


2 Answers

Use ap_scan=2 and remove the bssid= line from the configuration.

like image 200
David Paleino Avatar answered Sep 29 '22 09:09

David Paleino


the problem was that previous versions of wpa_supplicant does not support the bssid, installing wpa_Supplicant 2.0 solved the problem!

like image 23
johan Avatar answered Sep 29 '22 11:09

johan