Bananian

Bananapi m64 and Access Point

0 59
Edited by domoticity at Oct 02, 2017 04:45

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 :




  1. First, install the packages needed to compile:

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

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

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

  11. Then, compile and install it:

  12. make
  13. sudo cp hostapd /usr/sbin/
Copy the Code
And after i have maked /etc/hostapd/hostapd.conf :


  1. interface=wlan0
  2. ssid=testPiAP
  3. hw_mode=g
  4. channel=11
  5. macaddr_acl=0
  6. auth_algs=1
  7. ignore_broadcast_ssid=0
  8. wpa=2
  9. wpa_passphrase=badpassword
  10. wpa_key_mgmt=WPA-PSK
  11. wpa_pairwise=TKIP
  12. rsn_pairwise=CCMP
Copy the Code
When i launch ostapd with tis command :

  1. sudo hostapd /etc/hostaps/hostapd.conf
Copy the Code
I have :
  1. pi@bpi-iot-ros-ai:~$ sudo hostapd -B /etc/hostapd/hostapd.conf
  2. Configuration file: /etc/hostapd/hostapd.conf
  3. Using interface wlan0 with hwaddr 44:2c:05:ee:81:21 and ssid "testPiAP"
  4. wlan0: interface state UNINITIALIZED->ENABLED
  5. wlan0: AP-ENABLED
Copy the Code
but i don't see my network wifi with my Laptop,smartphone,Tablet with nothing. Help me please

Here my ifconfig, i think shows that's my Wifi connection works :
  1. pi@bpi-iot-ros-ai:~$ sudo ifconfig
  2. [sudo] password for pi:
  3. eth0      Link encap:Ethernet  HWaddr aa:c2:4f:16:ee:b8
  4.           inet addr:192.168.1.48  Bcast:192.168.1.255  Mask:255.255.255.0
  5.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  6.           RX packets:272 errors:0 dropped:0 overruns:0 frame:0
  7.           TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
  8.           collisions:0 txqueuelen:1000
  9.           RX bytes:23758 (23.2 KiB)  TX bytes:13132 (12.8 KiB)
  10.           Interrupt:114

  11. lo        Link encap:Local Loopback
  12.           inet addr:127.0.0.1  Mask:255.0.0.0
  13.           inet6 addr: ::1/128 Scope:Host
  14.           UP LOOPBACK RUNNING  MTU:65536  Metric:1
  15.           RX packets:25 errors:0 dropped:0 overruns:0 frame:0
  16.           TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
  17.           collisions:0 txqueuelen:0
  18.           RX bytes:2728 (2.6 KiB)  TX bytes:2728 (2.6 KiB)

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

I turn around since 2 weeks


You have to log in before you can reply Login | Sign Up

Points Rules