Changle Logs

  • July 2020,  Verified works on Raspberry Pi4 

Features

  • Verified working on Raspbian Jessy, Stretch
  • Able to set up while wlan0 is connected to the network.
  • Easy to switch between station mode and access point mode.
  • Able to  share internet between eth0 and wlan0, can be configured to share with wlan1 or other interfaces

Introduction

  • This tutorial will guide you steps to set up the WiFi module of the raspberry pi to work as Station and Access Point mode, you can easily switch between station mode and AP mode. All in all setup:

Usage

Station mode with SSID name and password

  • Connect to a network with specific ssid name and password 
sudo sta mySSID  myPass

Station mode - use the last SSID name and password:

  • Connect to a network with saved SSID name and password
sudo sta

AP mode - with custom SSID and password

  • Create an wifi hotspot with specific SSID and password
sudo ap my_ssid 12345678

AP mode with custom SSID and without password

  • Create an wifi hotspot with specific SSID and no password
sudo ap SSID_FreeWifi

Checkout Video

You may want to read