'Hostapd wifi router and bandwidth change

I have made a wireless router with hostapd.

All is working great except I have some disconnections and the wifi is not very stable.

I have the following messages in dmesg on the client side (Ubuntu) :

[sam. mars 5 18:12:06 2022] wlp2s0: AP 2c:fd:a1:cf:c5:28 changed bandwidth, new config is 5180.000 MHz, width 2 (5190.000/0 MHz)
[sam. mars 5 18:12:06 2022] wlp2s0: AP 2c:fd:a1:cf:c5:28 changed bandwidth in a way we can't support - disconnect
[sam. mars 5 18:12:06 2022] wlp2s0: failed to follow AP 2c:fd:a1:cf:c5:28 bandwidth change, disconnect
[sam. mars 5 18:12:08 2022] wlp2s0: authenticate with 2c:fd:a1:cf:c5:28
[sam. mars 5 18:12:08 2022] wlp2s0: send auth to 2c:fd:a1:cf:c5:28 (try 1/3)
[sam. mars 5 18:12:08 2022] wlp2s0: authenticated
[sam. mars 5 18:12:08 2022] wlp2s0: associate with 2c:fd:a1:cf:c5:28 (try 1/3)
[sam. mars 5 18:12:08 2022] wlp2s0: RX AssocResp from 2c:fd:a1:cf:c5:28 (capab=0x11 status=0 aid=1)
[sam. mars 5 18:12:08 2022] wlp2s0: associated
[sam. mars 5 18:12:08 2022] wlp2s0: Limiting TX power to 23 (23 - 0) dBm as advertised by 2c:fd:a1:cf:c5:28

How can I fix this error ? changed bandwidth in a way we can't support - disconnect

Can you help me please ?

Best regards, Olivier



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source