How to set pico ultra w as AP

  • Hello, the method to enable a hotspot in Buildroot is as follows:
    1.Bring up wlan0 and set IP:

    Code: Select all

    ifconfig wlan0 up
    ifconfig wlan0 192.168.4.1
    
    2.Configure dnsmasq.conf to assign IPs to connected devices,you can open and create /etc/dnsmasq.conf using vi:

    Code: Select all

    interface=wlan0
    dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,24h
    
    3 Start dnsmasq:

    Code: Select all

    dnsmasq -C /etc/dnsmasq.conf
    
    4 Configure hostapd.conf, you can open and create /etc/hostapd.conf using vi:

    Code: Select all

    interface=wlan0
    driver=nl80211
    ssid=<replace with the desired WiFi name>
    hw_mode=g
    channel=6
    wmm_enabled=0
    macaddr_acl=0
    auth_algs=1
    ignore_broadcast_ssid=0
    wpa=2
    wpa_passphrase=<replace with the desired WiFi password>
    wpa_key_mgmt=WPA-PSK
    wpa_pairwise=TKIP
    rsn_pairwise=CCMP
    
    5 Start hostapd, after which you can connect to the hotspot:

    Code: Select all

    hostapd /etc/hostapd.conf &