adhoc network problem

wafaafadwa

New member
May 28, 2013
1
0
0
Hello all,
I have android 4.2.2 ,Nexus 4
I would like to setup adhoc network .
Firstly I rooted the device,
secondly I tried to create adhoc network in android phone :
I create ad hoc network in an android smartphone with this:
-------------------
shell@android:/ # ip link set dev wlan0 down
shell@android:/ # iwconfig wlan0 mode ad-hoc
shell@android:/ # iwconfig wlan0 channel 6
shell@android:/ # iwconfig wlan0 essid 'Test1'
shell@android:/ # ip link set dev wlan0 up
shell@android:/ # ifconfig wlan0 192.168.65.129
---------------
when I typed iwconfig wlan0:
the result is:

result1:
-----------------
Qcom:802.11n ESSID:"Test1"
Mode:Ad-Hoc Frequency:2.437 GHz Cell: 02:82:5F:C1:4B:C1
Bit Rate=0 kb/s Tx-Power=0 dBm
RTS thr=2347 B Fragment thr=8000 B
Encryption key:off
--------------

Secondly, in my laptop ,I could see "Test1",so I did connect to "Test1" and I configure static ip address 192.168.65.128.
in this case ,the smartphone create the ad hoc network and my laptop join it,then I can ping from my laptop to mobile and vice-versa.

However,in other case when :
my laptop create ad hoc network

and later in an android mobile ,I tried to join it :

-----------------
shell@android:/ # iwconfig wlan0 mode ad-hoc
shell@android:/ # iwconfig wlan0 channel 6
shell@android:/ # iwconfig wlan0 essid 'Test1'
------------

But,when I type iwconfig wlan0 ,essid still off/any


result2:

Qcom:802.11n ESSID:off/any
Mode:Ad-Hoc Frequency:2.437 GHz Cell: Not-Associated
Bit Rate:0 kb/s Tx-Power=0 dBm
RTS thr=2347 B Fragment thr=8000 B
Encryption key:off


it seems that android mobile can create ad hoc network but can not join existing one.

so the same result I found when I try to setup adhoc network between two android mobiles:

in both android mobiles I typed :
--------------
shell@android:/ # ip link set dev wlan0 down
shell@android:/ # iwconfig wlan0 mode ad-hoc
shell@android:/ # iwconfig wlan0 channel 6
shell@android:/ # iwconfig wlan0 essid 'Test1'
shell@android:/ # ip link set dev wlan0 up
-------------------
for the first one I configure
shell@android:/ # ifconfig wlan0 192.168.65.129
the second one:
shell@android:/ # ifconfig wlan0 192.168.65.127

so the result of iwconfig wlan0:
in the first one: like result1
in the second android smartphone :like result2
and of course ,I can't ping from one to other.


in brief,it seems that in android smartphone I can create adhoc network but I can't join existing one.
can anybody tell me what it's wrong here,and if there is any possible solution,
I tried many methods to setup ad hoc network in android ,and only this method that it seems work,but it still something wrong that prevent android phone to join existing ad hoc network.
 

Members online

Forum statistics

Threads
955,196
Messages
6,964,087
Members
3,163,224
Latest member
Virat188