# Raspberry pi 4 access point

**URL:** <https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728>\
**Category:** Installing and Using OpenWrt\
**Created:** [December 18, 2019, 8:05am UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728 "2019-12-18T08:05:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![geekaume](https://forum.openwrt.org/letter_avatar/geekaume/32/6_449c533f586939b6e5f246632a46421f.png) [@geekaume](https://forum.openwrt.org/u/geekaume)\
**Post date:** [December 18, 2019, 8:05am UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/1 "2019-12-18T08:05:19Z")

</div>

Hi all !  
I'm very new to OpenWRT and Raspberry, so if I look dumb, please forgive me.

So, like the title say, i'm trying to install OpenWRT on a raspi 4 to have a wi-fi access point. I installed the snapshot found here : [https://openwrt.org/toh/raspberry\_pi\_foundation/raspberry\_pi](https://openwrt.org/toh/raspberry_pi_foundation/raspberry_pi)  
I have enabled the wlan0 by setting the country code (I had to use raspbian, like said on the documentation) and editing the `/etc/config/wireless` file to set `option disable '0'`. Then, I restarted the network and now I have this error showing every few seconds :  
`ieee80211 phy0: brcmf_cfg80211_start_ap: Set Channel failed: chspec=57386, -52`  
This is my `/etc/config/wireless` :

```
config wifi-device 'radio0'
        option type 'mac80211'
        option channel '36'
        option hwmode '11a'
        option path 'platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
        option htmode 'VHT80'
        option disabled '0'
        option country 'FR'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'none'

```

Plus, I have another question (but maybe I have to do a second post ?) : I have enabled my eth0 to use dhcp and I can access Internet from my pi. I can ping it from another machine in my network but I can't access the web GUI page to activate the access point mode (even though I see `option mode 'ap'` in my `/etc/config/wireless`), set the SSID, ...  
Did I miss something to enable it ?

Thank you very much

---

<div class="post-metadata">

**Author:** ![trendy](https://forum.openwrt.org/user_avatar/forum.openwrt.org/trendy/32/8800_2.png) [@trendy](https://forum.openwrt.org/u/trendy)\
**Post date:** [December 18, 2019, 8:49am UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/2 "2019-12-18T08:49:28Z")

</div>

What does `iw list` say?

For the luci, you need to [install it manually](https://openwrt.org/docs/guide-quick-start/ssh_connect_to_the_internet_and_install_luci). Snapshot versions don't include it.

---

<div class="post-metadata">

**Author:** ![tmomas](https://forum.openwrt.org/letter_avatar/tmomas/32/6_449c533f586939b6e5f246632a46421f.png) [@tmomas](https://forum.openwrt.org/u/tmomas)\
**Post date:** [December 18, 2019, 8:53am UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/3 "2019-12-18T08:53:01Z")

</div>

> [@geekaume](#):
>
> I can't access the web GUI page

> **[I can not connect via webbrowser](https://openwrt.org/faq/can_not_connect_via_webbrowser)**
>
> I can not connect via webbrowser Issue: After installation of snapshot image, I can not access my device via webbrowser at http://192.168.1.1 Root cause: Development snapshots do not contain LuCI. Solutions: \* Use a stable release (if...

---

<div class="post-metadata">

**Author:** ![geekaume](https://forum.openwrt.org/letter_avatar/geekaume/32/6_449c533f586939b6e5f246632a46421f.png) [@geekaume](https://forum.openwrt.org/u/geekaume)\
**Post date:** [December 18, 2019, 8:59am UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/4 "2019-12-18T08:59:10Z")

</div>

> What does `iw list` says?  
> It says this :

```plaintext
Wiphy phy0
        max # scan SSIDs: 10
        max scan IEs length: 2048 bytes
        max # sched scan SSIDs: 16
        max # match sets: 16
        max # scan plans: 1
        max scan plan interval: 508
        max scan plan iterations: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports T-DLS.
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * P2P-client
                 * P2P-GO
                 * P2P-device
        Band 1:
                Capabilities: 0x1022
                        HT20/HT40
                        Static SM Power Save
                        RX HT20 SGI
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 16 usec (0x07)
                HT TX/RX MCS rate indexes supported: 0-7
                Frequencies:
                        * 2412 MHz [1] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (20.0 dBm)
                        * 2472 MHz [13] (20.0 dBm)
                        * 2484 MHz [14] (disabled)
        Band 2:
                Capabilities: 0x1062
                        HT20/HT40
                        Static SM Power Save
                        RX HT20 SGI
                        RX HT40 SGI
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 16 usec (0x07)
                HT TX/RX MCS rate indexes supported: 0-7
                VHT Capabilities (0x00001020):
                        Max MPDU length: 3895
                        Supported Channel Width: neither 160 nor 80+80
                        short GI (80 MHz)
                        SU Beamformee
                VHT RX MCS set:
                        1 streams: MCS 0-9
                        2 streams: not supported
                        3 streams: not supported
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT RX highest supported: 0 Mbps
                VHT TX MCS set:
                        1 streams: MCS 0-9
                        2 streams: not supported
                        3 streams: not supported
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT TX highest supported: 0 Mbps
                Frequencies:
                        * 5170 MHz [34] (20.0 dBm)
                        * 5180 MHz [36] (20.0 dBm)
                        * 5190 MHz [38] (20.0 dBm)
                        * 5200 MHz [40] (20.0 dBm)
                        * 5210 MHz [42] (20.0 dBm)
                        * 5220 MHz [44] (20.0 dBm)
                        * 5230 MHz [46] (20.0 dBm)
                        * 5240 MHz [48] (20.0 dBm)
                        * 5260 MHz [52] (20.0 dBm) (radar detection)
                        * 5280 MHz [56] (20.0 dBm) (radar detection)
                        * 5300 MHz [60] (20.0 dBm) (radar detection)
                        * 5320 MHz [64] (20.0 dBm) (radar detection)
                        * 5500 MHz [100] (20.0 dBm) (radar detection)
                        * 5520 MHz [104] (20.0 dBm) (radar detection)
                        * 5540 MHz [108] (20.0 dBm) (radar detection)
                        * 5560 MHz [112] (20.0 dBm) (radar detection)
                        * 5580 MHz [116] (20.0 dBm) (radar detection)
                        * 5600 MHz [120] (20.0 dBm) (radar detection)
                        * 5620 MHz [124] (20.0 dBm) (radar detection)
                        * 5640 MHz [128] (20.0 dBm) (radar detection)
                        * 5660 MHz [132] (20.0 dBm) (radar detection)
                        * 5680 MHz [136] (20.0 dBm) (radar detection)
                        * 5700 MHz [140] (20.0 dBm) (radar detection)
                        * 5720 MHz [144] (disabled)
                        * 5745 MHz [149] (13.0 dBm)
                        * 5765 MHz [153] (13.0 dBm)
                        * 5785 MHz [157] (13.0 dBm)
                        * 5805 MHz [161] (13.0 dBm)
                        * 5825 MHz [165] (13.0 dBm)
        valid interface combinations:
                 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
                   total <= 3, #channels <= 2
                 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
                   total <= 4, #channels <= 1
        Supported extended features:
                * [DFS_OFFLOAD]: DFS offload

```

Thank you trendy and tmomas for your answers on LuCI 🙂

---

<div class="post-metadata">

**Author:** ![trendy](https://forum.openwrt.org/user_avatar/forum.openwrt.org/trendy/32/8800_2.png) [@trendy](https://forum.openwrt.org/u/trendy)\
**Post date:** [December 18, 2019, 10:14am UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/5 "2019-12-18T10:14:45Z")

</div>

Try to delete and recreate the wireless config file:  
`rm /etc/config/wireless; wifi config; sed -i '/disabled/ s/1/0/g' /etc/config/wireless; wifi up`

---

<div class="post-metadata">

**Author:** ![geekaume](https://forum.openwrt.org/letter_avatar/geekaume/32/6_449c533f586939b6e5f246632a46421f.png) [@geekaume](https://forum.openwrt.org/u/geekaume)\
**Post date:** [December 18, 2019, 10:32am UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/6 "2019-12-18T10:32:51Z")

</div>

OK, if I do this, I do not have the error message again.  
But there is no wifi network from my pi. I also tried to connect my pi to an existing wifi network from LuCI but the scan does not show any network (but there is at least one : my phone and my computer are connected to it 😉 ).

---

<div class="post-metadata">

**Author:** ![trendy](https://forum.openwrt.org/user_avatar/forum.openwrt.org/trendy/32/8800_2.png) [@trendy](https://forum.openwrt.org/u/trendy)\
**Post date:** [December 18, 2019, 10:38am UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/7 "2019-12-18T10:38:57Z")

</div>

What does `wifi status` report?

---

<div class="post-metadata">

**Author:** ![geekaume](https://forum.openwrt.org/letter_avatar/geekaume/32/6_449c533f586939b6e5f246632a46421f.png) [@geekaume](https://forum.openwrt.org/u/geekaume)\
**Post date:** [December 18, 2019, 10:43am UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/8 "2019-12-18T10:43:37Z")

</div>

This replies this :

```
{
        "radio0": {
                "up": true,
                "pending": false,
                "autostart": true,
                "disabled": false,
                "retry_setup_failed": false,
                "config": {
                        "channel": "36",
                        "hwmode": "11a",
                        "path": "platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1",
                        "htmode": "VHT80",
                        "disabled": false
                },
                "interfaces": [
                        {
                                "section": "default_radio0",
                                "ifname": "wlan0",
                                "config": {
                                        "mode": "ap",
                                        "ssid": "OpenWrt",
                                        "encryption": "none",
                                        "network": [
                                                "lan"
                                        ],
                                        "mode": "ap"
                                }
                        }
                ]
        }
}

```

---

<div class="post-metadata">

**Author:** ![geekaume](https://forum.openwrt.org/letter_avatar/geekaume/32/6_449c533f586939b6e5f246632a46421f.png) [@geekaume](https://forum.openwrt.org/u/geekaume)\
**Post date:** [December 18, 2019, 8:56pm UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/9 "2019-12-18T20:56:54Z")

</div>

I keeped on searching but found nothing yet.  
Any clue, someone ?

Thank you very much by advance

---

<div class="post-metadata">

**Author:** ![trendy](https://forum.openwrt.org/user_avatar/forum.openwrt.org/trendy/32/8800_2.png) [@trendy](https://forum.openwrt.org/u/trendy)\
**Post date:** [December 18, 2019, 9:59pm UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/10 "2019-12-18T21:59:25Z")

</div>

I am out of ideas ☹

---

<div class="post-metadata">

**Author:** ![mk24](https://forum.openwrt.org/letter_avatar/mk24/32/6_449c533f586939b6e5f246632a46421f.png) [@mk24](https://forum.openwrt.org/u/mk24)\
**Post date:** [December 18, 2019, 10:02pm UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/11 "2019-12-18T22:02:45Z")

</div>

What does `iw dev` show?

If the AP is fully set up you'll see lines for SSID and channel.

I don't think the Pi hardware can do AP and STA at the same time. Configure only one interface the AP on the radio.

---

<div class="post-metadata">

**Author:** ![Coddigtion](https://forum.openwrt.org/letter_avatar/coddigtion/32/6_449c533f586939b6e5f246632a46421f.png) [@Coddigtion](https://forum.openwrt.org/u/Coddigtion)\
**Post date:** [December 19, 2019, 4:26am UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/12 "2019-12-19T04:26:12Z")

</div>

I have tried this with multiple USB devices and the Pi hardware and can not get the AP mode to load and start at all with OpenWRT

---

<div class="post-metadata">

**Author:** ![geekaume](https://forum.openwrt.org/letter_avatar/geekaume/32/6_449c533f586939b6e5f246632a46421f.png) [@geekaume](https://forum.openwrt.org/u/geekaume)\
**Post date:** [December 19, 2019, 5:54am UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/13 "2019-12-19T05:54:07Z")

</div>

> [@trendy](#):
>
> I am out of ideas ☹

No problem, you've already helped me very much, thanks 😉

> [@mk24](#):
>
> What does `iw dev` show?
> 
> I don't think the Pi hardware can do AP and STA at the same time. Configure only one interface the AP on the radio.

I don't want AP and STA at the same time, I just want AP...  
`iw dev` says this :

```plaintext
root@OpenWrt:/# iw dev
phy#0
        Interface wlan0
                ifindex 3
                wdev 0x1
                addr dc:a6:32:3b:1a:db
                type AP
                channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
                txpower 31.00 dBm

```

@Coddigtion : I don't understand your message, I'm sorry

---

<div class="post-metadata">

**Author:** ![Coddigtion](https://forum.openwrt.org/letter_avatar/coddigtion/32/6_449c533f586939b6e5f246632a46421f.png) [@Coddigtion](https://forum.openwrt.org/u/Coddigtion)\
**Post date:** [December 19, 2019, 5:57am UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/14 "2019-12-19T05:57:51Z")

</div>

I have a PI 4 and no matter the configuration or the adapter I can not get it to have an AP mode.

---

<div class="post-metadata">

**Author:** ![trendy](https://forum.openwrt.org/user_avatar/forum.openwrt.org/trendy/32/8800_2.png) [@trendy](https://forum.openwrt.org/u/trendy)\
**Post date:** [December 19, 2019, 8:04am UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/15 "2019-12-19T08:04:43Z")

</div>

> [@geekaume](#):
>
> channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz

I was under the impression that the adapter is 5GHz only. Weird that the wifi config didn't detect the 2,4GHz radio.

> [@geekaume](#):
>
> txpower 31.00 dBm

This also looks too much for 2,4GHz. For 5GHz it's okayish, although it conflicts with what **iw list** says.

---

<div class="post-metadata">

**Author:** ![geekaume](https://forum.openwrt.org/letter_avatar/geekaume/32/6_449c533f586939b6e5f246632a46421f.png) [@geekaume](https://forum.openwrt.org/u/geekaume)\
**Post date:** [December 19, 2019, 8:17am UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/16 "2019-12-19T08:17:19Z")

</div>

> [@Coddigtion](#):
>
> I have a PI 4 and no matter the configuration or the adapter I can not get it to have an AP mode.

Maybe we have to wait a stable release ?

@trendy : I'm not good enough in network to understand all what you said, I totally trust you on this ^^

---

<div class="post-metadata">

**Author:** ![jeff1](https://forum.openwrt.org/user_avatar/forum.openwrt.org/jeff1/32/11720_2.png) [@jeff1](https://forum.openwrt.org/u/jeff1)\
**Post date:** [December 19, 2019, 9:26am UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/17 "2019-12-19T09:26:50Z")

</div>

I use this settings on the PI 4, on 5GHz:

```
config wifi-device 'radio0'
	option type 'mac80211'
	option channel '36'
	option hwmode '11a'
	option path 'platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
	option legacy_rates '0'
	option country 'US'
	option htmode 'VHT20'

```

on 2,4GHz :

```
config wifi-device 'radio0'
	option type 'mac80211'
	option path 'platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
	option legacy_rates '0'
	option country 'US'
	option hwmode '11g'
	option channel '7'

```

or

```
config wifi-device 'radio0'
	option type 'mac80211'
	option path 'platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
	option legacy_rates '0'
	option country 'US'
	option hwmode '11g'
	option channel '7'
	option htmode 'HT20'
	option short_gi_40 '0'

```

---

<div class="post-metadata">

**Author:** ![geekaume](https://forum.openwrt.org/letter_avatar/geekaume/32/6_449c533f586939b6e5f246632a46421f.png) [@geekaume](https://forum.openwrt.org/u/geekaume)\
**Post date:** [December 19, 2019, 9:33am UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/18 "2019-12-19T09:33:02Z")

</div>

> [@jeff1](#):
>
> ```plaintext
> config wifi-device 'radio0'
> option type 'mac80211'
> option path 'platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
> option legacy_rates '0'
> option country 'US'
> option hwmode '11g'
> option channel '7'
> option htmode 'HT20'
> option short_gi_40 '0'
> 
> ```

This works ! 😍

thank you very much !

---

<div class="post-metadata">

**Author:** ![Borromini](https://forum.openwrt.org/letter_avatar/borromini/32/6_449c533f586939b6e5f246632a46421f.png) [@Borromini](https://forum.openwrt.org/u/Borromini)\
**Post date:** [December 19, 2019, 10:02am UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/19 "2019-12-19T10:02:37Z")

</div>

Weird that 11a (5 GHz) does not work but 11g (2,4 GHz does)... Maybe the available drivers don't support 5 GHz? A lot of Broadcom stuff has footnotes like that.

What wireless hardware is this exactly? I'm not familiar with the RPi4. Out of curiosity.

---

<div class="post-metadata">

**Author:** ![geekaume](https://forum.openwrt.org/letter_avatar/geekaume/32/6_449c533f586939b6e5f246632a46421f.png) [@geekaume](https://forum.openwrt.org/u/geekaume)\
**Post date:** [December 19, 2019, 10:48am UTC](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728/20 "2019-12-19T10:48:25Z")

</div>

I first thinked : "maybe it worked in 5 GHz but I think I don't have a device that supports wifi 5 GHz, so I didn't saw it worked".  
But then I searched on the Internet the compatibility for my phone (OnePlus 6) and it seems that it is compatible with 5GHz wifi.

I didn't even tried jeff1's configuration for 5GHz, so maybe I had a problem in my conf...

[Next page](https://forum.openwrt.org/t/raspberry-pi-4-access-point/50728.md?page=2)
