802.11k/v how to configure

I tried with the stock firmware, roaming works very well.
When standing next to my 2nd AP it immediately connected. (No 802.11r/k/v, checked the wifi name with app)

With openwrt, its not roaming..
I tried to disable "Disassociate on low acknoledge" still no luck..
What could be the reason?

You mentioned you checked the network name, so you have different SSID's?

Try using the same SSID but just different channels.

Im using the same SSID name & pass & security

Here:

How do you revert from OpenWRT to Stock firmware? Can you share the steps please?
And that script that I referred to earlier wasn't helping after observing for a long time. Its just a brute force and I removed it from startup. I guess at this point we have to tune 802.11r/k/v.
To check if 802.11r/k/v is applied, you can run software like WinFi or WiFi Explorer Pro and check 802.11 amendments

Is this command required? uci set wireless.default_radio0.ieee80211v='1'
I noticed my 802.11v is enabled even without that.
Update: Confirmed that it's no longer required from this commit

My partial radio config /etc/config/wireless

Things to note:

mobility_domain should be same across all APs. I have two SSIDs - one for 2.4 Ghz & another for 5 Ghz. Hence I use two different mobility domains for different radios.

alter option time_zone accordingly.

config wifi-iface 'default_radio1'
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option ssid 'Who5'
        option key 'removed'
        option ieee80211r '1'
        option mobility_domain 'b00f'
        option ft_over_ds '0'
        option ft_psk_generate_local '1'
        option bss_transition '1'
        option wnm_sleep_mode '1'
        option time_advertisement '2'
        option ieee80211k '1'
        option reassociation_deadline '20000'
        option time_zone 'GMT0'
        option encryption 'psk2+ccmp'

config wifi-iface 'default_radio2'
        option device 'radio2'
        option network 'lan'
        option mode 'ap'
        option ssid 'Who'
        option key 'removed'
        option ieee80211r '1'
        option mobility_domain 'beef'
        option ft_over_ds '0'
        option ft_psk_generate_local '1'
        option bss_transition '1'
        option wnm_sleep_mode '1'
        option time_advertisement '2'
        option ieee80211k '1'
        option encryption 'psk2+ccmp'
        option reassociation_deadline '20000'
        option time_zone 'GMT0'

I just used official tool from xiaomi: MiWifiRepairTool.x86

I enabled r/k/v , but I see only [FT] in my android app...
Why I dont see [K] and [V] ?

1 Like

Check using WiFi Explorer Pro 3 for Mac or WinFi For some folks, WinFi doesn't work. So YMMV. It should be listed in 802.11k/v/r Amendments

Could you elaborate the steps please?

Do you have app for Android?

There is youtube videos on xiaomi routers, its kind of trials and errors because the app is chinese.

Don't know any Android app that does that

I can tell you the roaming is now working very well for me with Dawn . Even without 802.11 r/k/v .

2 Likes

Can you share your Dawn config?

Sure..
Im still testing options.. but it working very well for me now..

Still testing:
min_number_to_kick
bandwidth_threshold
rssi_weight (can someone explain what exactly it does? Im not totally sure)

config local
  option loglevel '0'

config network
  option broadcast_ip '192.168.1.255'
  option broadcast_port '1025'
  option tcp_port '1026'
  option network_option '2'
  option shared_key 'Niiiiiiiiiiiiick'
  option iv 'Niiiiiiiiiiiiick'
  option use_symm_enc '0'
  option collision_domain '-1'
  option bandwidth '-1'

config hostapd
  option hostapd_dir '/var/run/hostapd'

config times
  option con_timeout '60'
  option update_client '10'
  option remove_client '15'
  option remove_probe '30'
  option remove_ap '460'
  option update_hostapd '10'
  option update_tcp_con '10'
  option update_chan_util '5'
  option update_beacon_reports '20'

config metric 'global'
  option min_probe_count '3'
  option bandwidth_threshold '0'
  option use_station_count '0'
  option max_station_diff '1'
  option eval_probe_req '0'
  option eval_auth_req '0'
  option eval_assoc_req '0'
  option kicking '3'
  option kicking_threshold '20'
  option deny_auth_reason '1'
  option deny_assoc_reason '17'
  option min_number_to_kick '1'
  option chan_util_avg_period '3'
  option set_hostapd_nr '0'
  option duration '0'
  option rrm_mode 'pat'

config metric '802_11g'
  option initial_score '80'
  option ht_support '5'
  option vht_support '5'
  option no_ht_support '0'
  option no_vht_support '0'
  option rssi '15'
  option rssi_val '-60'
  option low_rssi_val '-80'
  option low_rssi '-15'
  option chan_util '0'
  option chan_util_val '140'
  option max_chan_util '-15'
  option max_chan_util_val '170'
  option rssi_weight '2'
  option rssi_center '-70'

config metric '802_11a'
  option initial_score '100'
  option ht_support '5'
  option vht_support '5'
  option no_ht_support '0'
  option no_vht_support '0'
  option rssi '15'
  option rssi_val '-60'
  option low_rssi_val '-80'
  option low_rssi '-15'
  option chan_util '0'
  option chan_util_val '140'
  option max_chan_util '-15'
  option max_chan_util_val '170'
  option rssi_weight '0'
  option rssi_center '-70'

Be sure to reset both network & dawn initscripts after each config change, it's very important.

2 Likes

Mechanism 2 is "graduated". For each dB that the RSSI signal differs from the rssi_center value the increment rssi_weight is applied. This can provide a more refined score, but may require more effort to get the parameters optimised. To disable this mode set the increment value to zero.

I have it disabled too

I took the same file that you shared but altered a few values to be more aggressive.

        option rssi_val '-50'
        option low_rssi_val '-70'
        option rssi_center '-60'

My 2.4g wifi is very strong in my house, without changing rssi_weight to 1 or 2, It is not roaming.
5ghz is roaming perfectly fine...

Stil don't understand what this parameter actually does...

This is good... and bad...

Did you follow the advice to reduce power levels? That is really important if you want roaming to work properly.

I have dead zones without it, like my garden...
Roaming is working fine. Just have to know exactly what every parameter does

1 Like

This is where it makes sense to add an additional AP or two, and lower power levels.