Bananapi m64 Access point

Hy, I am newby in bananapi and for a project i need to use Access point. So i have followed the instructions of : https://www.awasu.com/weblog/bpi-gateway/wifi-access-point/

And more precisely :

First, install the packages needed to compile:

sudo apt-get install gcc git make
sudo apt-get install libnl-3-dev libnl-genl-3-dev openssl libssl-dev pkg-config
Then, get the source for hostapd:

cd /tmp
git clone git://w1.fi/srv/git/hostap.git
Then, configure it:

cd hostap/hostapd
cp defconfig .config
Edit .config and make sure that CONFIG_DRIVER_NL80211=y and CONFIG_LIBNL32=y are active i.e. not commented out.

Then, compile and install it:

make
sudo cp hostapd /usr/sbin/

And after i have maked /etc/hostapd/hostapd.conf :

interface=wlan0
ssid=testPiAP
hw_mode=g
channel=11
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=badpassword
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

when i launch hostapd with the command :

sudo hostapd /etc/hostaps/hostapd.conf

i have

pi@bpi-iot-ros-ai:~$ sudo hostapd -B /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Using interface wlan0 with hwaddr 44:2c:05:ee:81:21 and ssid "testPiAP"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED

but i don’t see my network wifi with my Laptop,smartphone,Tablet with nothing. Help me please :slight_smile:

Have you already watched whether wlan0 is at all available?

ifconfig

Hy Thank you to answer. Yes I think it’s good: When I do a ifconfig I see the static ip address I have put and when I use nmtui i can scan wireless network.

pi@bpi-iot-ros-ai:~$ sudo ifconfig
[sudo] password for pi:
eth0      Link encap:Ethernet  HWaddr aa:c2:4f:16:ee:b8
          inet addr:192.168.1.48  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:272 errors:0 dropped:0 overruns:0 frame:0
          TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:23758 (23.2 KiB)  TX bytes:13132 (12.8 KiB)
          Interrupt:114

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:65536  Metric:1
          RX packets:25 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2728 (2.6 KiB)  TX bytes:2728 (2.6 KiB)

wlan0     Link encap:Ethernet  HWaddr 44:2c:05:ee:81:21
          inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::462c:5ff:feee:8121/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:2232 (2.1 KiB)

HI,

Were you able to create Access point (Hotspot) with bananapi onboard wifi module ?

Or are you using externel wifi module for Access point setup ?

In our case it is creating network but unable to discover it from mobile and desktop.

Please help me to resolve this issue.

Hello,what is your image?

I will release m64 new image next week,it will support ap mode,and you could discover it .

Hi,

Thanks a lot, please find our setup details below.

pi@bpi-iot-ros-ai:~$ uname -a Linux bpi-iot-ros-ai 3.10.105-BPI-M64-Kernel #1 SMP PREEMPT Thu Aug 10 15:21:12 CST 2017 aarch64 aarch64 aarch64 GNU/Linux

pi@bpi-iot-ros-ai:~$ cat /etc/issue Ubuntu 16.04.5 LTS \n \l

Edit: we are using below image.

2018-01-08-ubuntu-16.04-mate-desktop-demo-aarch64-bpi-m64-sd-emmc.img.zip

Regards, Kiran.

Hello @Jackzeng,

Any updates on releasing new m64 image to support AP mode using onboard wifi module ?

Thanks, Kiran.

Hello, Please see here in FAQ: