OpenWRT 跨 AP WiFi 漫游切换太慢/拒绝切换,可能是什么原因?

1 天前
 DawnMoon

我有两台磊科 N60 Pro ,刷了 OpenWRT 25.12.6 作为纯 AP 用,都开启了 802.11r ,但主流的手机、平板跨 AP 漫游都很慢,几乎要等到其中一个 AP 完全没信号的时候,才会切换到另一个 AP。

求大佬解答可能原因。

详见上图

721 次点击
所在节点    问与答
4 条回复
datocp
1 天前
#!/bin/sh
iw dev $1 station dump >/tmp/mca_dump.out
grep -Eo ..\(\:..\){5} /tmp/mca_dump.out >/tmp/mac.lst

#for i in 88:cb:87:57:f0:a0 00:f1:40:10:01:be 5c:f8:a1:e4:fa:e1
#do echo $i>>/tmp/wmac.tmp;done
#>/tmp/wmac.tmp

#xcl=/tmp/wmac.tmp
#_f=/tmp/mac.lst
#if [ -e $xcl ] ; then
# while read kmac ; do
# sed -i -e "/${kmac}$/d" $_f
# done < $xcl;fi

#>/tmp/bmac.lst #

for i in $(cat /tmp/mac.lst); do signal=`grep -A9 "$i" /tmp/mca_dump.out | sed -n "/signal/p" |grep -o "[0-9]\+" | head -1`
if [ $signal -gt 80 ] ;then #设置信号强度小于多少则条件成立
#echo $i>>/tmp/bmac.lst #
#hostapd_cli disassociate $i interface $1
ubus call hostapd.$1 del_client '{"addr":"'"$i"'", "reason": 5, "deauth": True, "ban_time": 0}' &
echo "`(date +"%m/%d/%Y %T")` kickmac_$1_$i signal_$signal" >> /tmp/log1;
fi;done
datocp
1 天前
11r 真没啥研究,openwrt 真正测试过最快的是基于高通芯的 batman adv mesh.平时的经验习惯采购 MTK 的路由作为网关,采购高通芯片作为 AP。之前在 mtk7620/7621 时一直无视它家的 wifi,mtk7620 似乎直到 openwrt 21.02 才算正常了。

漫游的常见说法是终端发起的,据说苹果的手机-75dbm 时,它才觉得要切换。场景就是 A/B 两个 AP 两个信号的交集就是信号过渡,离 A 越来越远,离 B 越来越近,那么终端什么时候从 A 断开连接到 B 呢???不一定的,像 intel 无线网卡有根据信号 SNR 的切换机,但是 windows7 系统认为这是个浪费电的过程。只有在

2.连接到更适合的网络(连接可用)
^无线网卡将根据周围 AP 的信号强度变化,自动的连接到信号更好的 AP 接入点,实现漫游切换,由于不断的判断,会更消耗电池。

而在使用一些根据 BSSID 切换的软件连接后,怎么连都是连接到最初的那个 AP 上。

这是我自己在更早期版本的 ap,采用的方法
#!/bin/sh
iw dev $1 station dump >/tmp/mca_dump.out
grep -Eo ..\(\:..\){5} /tmp/mca_dump.out >/tmp/mac.lst

#for i in 88:cb:87:57:f0:a0 00:f1:40:10:01:be 5c:f8:a1:e4:fa:e1
#do echo $i>>/tmp/wmac.tmp;done
#>/tmp/wmac.tmp

#xcl=/tmp/wmac.tmp
#_f=/tmp/mac.lst
#if [ -e $xcl ] ; then
# while read kmac ; do
# sed -i -e "/${kmac}$/d" $_f
# done < $xcl;fi

#>/tmp/bmac.lst #

for i in $(cat /tmp/mac.lst); do signal=`grep -A9 "$i" /tmp/mca_dump.out | sed -n "/signal/p" |grep -o "[0-9]\+" | head -1`
if [ $signal -gt 80 ] ;then #设置信号强度小于多少则条件成立
#echo $i>>/tmp/bmac.lst #
#hostapd_cli disassociate $i interface $1
ubus call hostapd.$1 del_client '{"addr":"'"$i"'", "reason": 5, "deauth": True, "ban_time": 0}' &
echo "`(date +"%m/%d/%Y %T")` kickmac_$1_$i signal_$signal" >> /tmp/log1;
fi;done
bclerdx
19 小时 23 分钟前

RSSI 问题吧

emma3
5 小时 51 分钟前

我用 Ruckus 的 Unleashed 固件,调整 smart-roam 等级,取消低协商速率,k/v/r 全开。在摆位没有问题,信号重叠区间合适的情况下,没有任何丢包,最多就算一个 1xxms 的高 ping 值。虚拟 AC 的调度功不可没。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1259056

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX