Can't enable 5GHz on D-Link DIR-2660 A1

I am using OpenWrt on D-Link DIR-2660 A1 for a couple of days. On the old firmware I was able to see both 2.4 GHz and 5GHz networks with the same SSID.

With OpenWrt I have two devices: radio0 and radio1.

On radio0 there is 2.4 GHz network and it works fine.

On radio1 there should be 5 GHz network but its status is 'Disabled' and I see no option to enable it.

How can I enable 5 GHz? I want it to have the same SSID as 2.4 network.

The same way you configured it, by using the 'Edit' button. Keep in mind the 5 GHz radio might be scanning for radar interference (DFS) and might take a minute or so to become available to your clients.

It doesn't work. It shows -- in place of dBm for a moment and then goes to Disabled.

Open a terminal and check logread for pointers.

Fri May 27 11:03:27 2022 kern.info kernel: [55750.299150] br-lan: port 6(wlan1) entered blocking state
Fri May 27 11:03:27 2022 kern.info kernel: [55750.309821] br-lan: port 6(wlan1) entered disabled state
Fri May 27 11:03:27 2022 kern.info kernel: [55750.321078] device wlan1 entered promiscuous mode
Fri May 27 11:03:27 2022 daemon.notice hostapd: wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
Fri May 27 11:03:27 2022 daemon.notice hostapd: wlan1: interface state COUNTRY_UPDATE->HT_SCAN
Fri May 27 11:03:28 2022 daemon.err hostapd: Interface initialization failed
Fri May 27 11:03:28 2022 daemon.notice hostapd: wlan1: interface state HT_SCAN->DISABLED
Fri May 27 11:03:28 2022 daemon.notice hostapd: wlan1: AP-DISABLED
Fri May 27 11:03:28 2022 daemon.notice netifd: Wireless device 'radio1' is now up

Assign your country code on both the radios. ~ For starters.

Visual Example

1 Like

I have the country code selected on radio1. I didn't have that on radio0 so I added country code.

This is the log of "Restart" on radio1. I'm confused. First it says that initialization failed and the that the radio1 is up (it isn't - none of my devices can see the associated ssid).

Fri May 27 12:02:16 2022 daemon.notice hostapd: Remove interface 'wlan1'
Fri May 27 12:02:16 2022 daemon.notice hostapd: wlan1: interface state DISABLED->DISABLED
Fri May 27 12:02:16 2022 daemon.notice hostapd: wlan1: AP-DISABLED
Fri May 27 12:02:16 2022 daemon.notice hostapd: wlan1: CTRL-EVENT-TERMINATING
Fri May 27 12:02:16 2022 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan1 wasn't started
Fri May 27 12:02:16 2022 daemon.notice hostapd: nl80211: deinit ifname=wlan1 disabled_11b_rates=0
Fri May 27 12:02:16 2022 kern.info kernel: [59280.124757] device wlan1 left promiscuous mode
Fri May 27 12:02:16 2022 kern.info kernel: [59280.133915] br-lan: port 6(wlan1) entered disabled state
Fri May 27 12:02:17 2022 daemon.notice netifd: Wireless device 'radio1' is now down
Fri May 27 12:02:17 2022 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy1.conf (phy wlan1) --> new PHY
Fri May 27 12:02:17 2022 kern.info kernel: [59281.129553] br-lan: port 6(wlan1) entered blocking state
Fri May 27 12:02:17 2022 kern.info kernel: [59281.140190] br-lan: port 6(wlan1) entered disabled state
Fri May 27 12:02:17 2022 kern.info kernel: [59281.151692] device wlan1 entered promiscuous mode
Fri May 27 12:02:17 2022 daemon.notice hostapd: wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
Fri May 27 12:02:17 2022 daemon.notice hostapd: wlan1: interface state COUNTRY_UPDATE->HT_SCAN
Fri May 27 12:02:18 2022 daemon.err hostapd: Interface initialization failed
Fri May 27 12:02:18 2022 daemon.notice hostapd: wlan1: interface state HT_SCAN->DISABLED
Fri May 27 12:02:18 2022 daemon.notice hostapd: wlan1: AP-DISABLED
Fri May 27 12:02:19 2022 daemon.notice netifd: Wireless device 'radio1' is now up

Post the output of the following please:

redact passwords on wireless.
ubus call system board; uci export wireless

root@OpenWrt:~# ubus call system board; uci export wireless
{
        "kernel": "5.4.188",
        "hostname": "OpenWrt",
        "system": "MediaTek MT7621 ver:1 eco:3",
        "model": "D-Link DIR-2660 A1",
        "board_name": "dlink,dir-2660-a1",
        "release": {
                "distribution": "OpenWrt",
                "version": "21.02.3",
                "revision": "r16554-1d4dea6d4f",
                "target": "ramips/mt7621",
                "description": "OpenWrt 21.02.3 r16554-1d4dea6d4f"
        }
}
package wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option hwmode '11g'
        option path '1e140000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
        option cell_density '0'
        option htmode 'HT40'
        option channel '13'
        option country 'PL'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'aaa_optout_nomap'
        option encryption 'sae-mixed'
        option key ':)'
        option ieee80211w '1'

config wifi-device 'radio1'
        option type 'mac80211'
        option hwmode '11a'
        option path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0'
        option htmode 'VHT160'
        option cell_density '0'
        option channel '144'
        option country 'PL'

config wifi-iface 'default_radio1'
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option encryption 'sae-mixed'
        option key ':)'
        option ieee80211w '1'
        option ssid 'bbb_optout_nomap'

On Radio1
Try to put everything on AUTO except for country code, first and see what happens.

And then, i would recommend to set Channel 36, Band 80Mhz, dbm power to Auto. and AC mode.
do it from Luci, then save + save & apply.

Ok, I did what you said and then slowly reverted it to the original settings. Now they are the same, excep the channel is 124. Now it works. Thanks

I noticed that:
ch 124 / 80 MHz - fine
ch 124 / 160 MHz - fine
ch 144 / 80 MHz - fine
ch 144 / 160 MHz - doesn't work. Any idea why? Strange.

i think your configration was asking to do something not possible :sweat_smile: that's why it is better to set everything to "AUTO" and once it works you can touch the settings one by one, at least when it doesn't work you can can go back to the previous working setting.

About 160Mhz you can't do this from channel 144. Look at this table to help you choose the appropriate channels :

as you can see, for 160Mhz you have to choose a channel between 36 and 128

3 Likes

Ok, thanks. Now I understand this better.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.