Assign ip address to virtual p2p interface

hardik patel hk5patel at gmail.com
Wed Apr 6 02:35:18 EDT 2011


Hi,

After p2p_connect command we are able to form the group successfully.

<3>P2P-GROUP-FORMATION-SUCCESS
<3>P2P-GROUP-STARTED p2p-wlan0-0 GO ssid="DIRECT-0m" freq=2412
passphrase="2vusOfd8" go_dev_addr=00:0a:f5:11:11:23

I want to give ip address to p2p-wlan0 interface. in ifconfig it is
showing interface properly.

# busybox ifconfig
busybox ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1057 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1057 errors:0 dropped:0 overruns:0 carrier:
          collisions:0 txqueuelen:0
          RX bytes:118384 (115.6 KiB)  TX bytes:118384 (115.6 Ki

mon.p2p-w Link encap:Ethernet  HWaddr 00:DE:AD:BE:DE:AD
          inet6 addr: fe80::2de:adff:febe:dead/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

p2p-wlan0 Link encap:Ethernet  HWaddr 00:0A:F5:89:89:EF
          inet6 addr: fe80::20a:f5ff:fe89:89ef/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:269 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:26296 (25.6 KiB)  TX bytes:2624 (2.5 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:0A:F5:11:11:23
          inet addr:192.168.1.99  Bcast:192.168.1.255  Mask:255.
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

# busybox ifconfig p2p-wlan0 192.168.1.101
busybox ifconfig p2p-wlan0 192.168.1.101
error: SIOCSIFADDR (No such device)

How to assign IP address here. we have enable p2p Concurrency at go side.

-- 
Regards,
Hardik

"If you are doing what you have always been doing then expect what you
have always been getting."


More information about the HostAP mailing list