simultaneous wifi AP and sta mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

simultaneous wifi AP and sta mode

2,181 Views
pt
Senior Contributor I

Hi Qiang_FSL weidong.sun YixingKong alejandrolozano tonyzheng JackLee1z raymondwang

Development board: MCIMX28EVK

Linux-kernel version:2.6.35

Wifi Driver:- Marvell SD8787

Successfully booting from sd card and logged in as root( freescale login: root).

root@freescale


1.insmod mlan.ko

2.insmod sd8xxx.ko [drv_mode=3] [fw_name=mrvl/sd8787_uapsta.bin]


Station mode is configured and I am able to ping google.com by using the following commands

ifconfig mlan0 up

iwlist mlan0 scan

iwconfig mlan0 essid DTS_WORKSPACE

ping 192.168.2.1

udhcpc -f -q -n -i mlan0 udhcpc

ping google.com

But not able to ping after applying the ap configuration commands

ifconfig uap0 192.168.2.25 up

iwpriv uap0 start

iwpriv uap0 bssstart

udhcpd /etc/udhcpd.conf

The above commands are used to configure it as ap.

Do I have to use any additional commands ? Is hostapd necessary?

Regards

Parvathy

0 Kudos
Reply
1 Reply

1,176 Views
raymondwang
Senior Contributor I

More details required to describe your issue. e.g. How about your route table? Moreover, you'd better to use hostapd to start uAP interface and

using iptables to forwarding packets from uAP to tethering interface.

0 Kudos
Reply