This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] WL1807MOD:在 WiFi 模块中设置漫游阈值参数

Guru**** 2414260 points
Other Parts Discussed in Thread: WL1807MOD

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/1430659/wl1807mod-setting-the-roaming-threshold-parameters-in-wifi-module

器件型号:WL1807MOD

工具与软件:

我们在 一个运行 Yocto Linux 的项目中使用了 WL1807MOD WIFI 模块。 该模块配置为并发模式(AP + STA)。

  当我们将处于 STA 模式的 WFI 连接到为2.4和5GHz 频段具有相同 SSID 的网状网络或路由器时、触发 AP 交换机的默认 RSSI 限制将是多少、以及连接的 AP 与触发开关的其他 AP 之间的 RSSI 差异是多少。

   下面的文档提到了一种更改 RSSI 开关限值的机制(在4.15节中)。 请提供一些步骤或方法来更改这些限制、
  https://www.ti.com/lit/ug/swru423a/swru423a.pdf?ts = 1730115718621&ref_url=https%253A%252F%252Fwww.google.com%252F 

还有一种方法可以禁用这些漫游功能。 我们使用 NetworkManager 来配置网络。

除 RSSI 以外、还有任何其他参数会触发 AP 开关。

下面还显示了连接到具有相同 SSID (2.4GHz 和5GHz 频段)的路由器时的观察结果

当我们连接到 SSID 时、它将连接到信号强度良好的2.4 GHz。 AP 漫游将切换到信号强度较低的5GHz。 再过一段时间后、它将切换到2.4GHz、这将继续。

[ 2964.277306] wlan0: disconnect from AP 9c:c9:eb:1a:d2:31 for new auth to a2:c9:eb:1a:d2:2f
[ 2964.401454] wlan0: authenticate with a2:c9:eb:1a:d2:2f
[ 2964.433908] wlan0: send auth to a2:c9:eb:1a:d2:2f (try 1/3)
[ 2964.586359] wlan0: authenticated
[ 2964.654489] wlan0: associate with a2:c9:eb:1a:d2:2f (try 1/3)
[ 2964.694907] wlan0: RX ReassocResp from a2:c9:eb:1a:d2:2f (capab=0x1431 status=0 aid=1)
[ 2964.728574] wlan0: associated
[ 2964.928352] wlcore: Association completed.
[ 3057.574863] wlan0: disassociated from a2:c9:eb:1a:d2:2f (Reason: 1=UNSPECIFIED)
[ 3058.817391] wlan0: authenticate with 9c:c9:eb:1a:d2:31
[ 3058.883672] wlan0: send auth to 9c:c9:eb:1a:d2:31 (try 1/3)
[ 3058.933228] wlan0: authenticated
[ 3058.964537] wlan0: associate with 9c:c9:eb:1a:d2:31 (try 1/3)
[ 3059.006467] wlan0: RX AssocResp from 9c:c9:eb:1a:d2:31 (capab=0x1511 status=0 aid=1)
[ 3059.037915] wlan0: associated
[ 3059.163584] wlcore: Association completed.
[ 3102.097032] wlan0: disconnect from AP 9c:c9:eb:1a:d2:31 for new auth to a2:c9:eb:1a:d2:2f
[ 3102.238292] wlan0: authenticate with a2:c9:eb:1a:d2:2f
[ 3102.271768] wlan0: send auth to a2:c9:eb:1a:d2:2f (try 1/3)
[ 3102.420688] wlan0: authenticated
[ 3102.474507] wlan0: associate with a2:c9:eb:1a:d2:2f (try 1/3)
[ 3102.517152] wlan0: RX ReassocResp from a2:c9:eb:1a:d2:2f (capab=0x1431 status=0 aid=1)
[ 3102.550627] wlan0: associated
[ 3102.744725] wlcore: Association completed.






  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    据我所知、您可以通过 wlconf 工具控制用于计算平均 RSSI 的权重。 您可以在 wl18xx_conf 结构(特别是 Roam_trigger 结构)下看到默认值。 阈值本身也有他们自己的固件命令(通过 ACx_RSSI_SNR_TRIGGER)、但我以前未更改它们。 我认为该命令是在初始化时发送的、因此我们可以打印该命令期间的值。 该结构应包含该阈值以及该阈值的启用/禁用状态(因此您可以在理论上禁用该阈值)。

    Shlomi

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Shlomi、您好!  

        感谢您的回复、当我在 wpa_supplicant 中禁用 bgscan 配置时、我们看不到 AP 漫游、具体取决于 RSSI。 但我们观察到的是  

    1.当路由器中的2.4GHz 和5GHz 频段的 SSID 相同时。

    2.当 WL1807MOD WIFI 模块以 STA 模式连接到路由器时、即使2.4GHz 的信号强度良好、该模块也会连接到5GHz。

    3.即使我们连接到2.4GHz 时,模块也会切换到5GHz AP。

    如何禁用此功能、优先使用5GHz 频段而不是2.4GHz 频段。

    我们希望 仅根据信号强度切换 AP 或漫游 AP。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    借助此功能、5GHz 优先于2.4GHz。

    如何测量 RSSI? 使用 iw? 使用扫描结果?

    当您取消身份验证时、您是否确定是因为漫游而不是其他原因? 您可以在驱动程序中打开一些日志以查看更多信息。

    此致、

    Shlomi

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Shlami:

      是的、我使用 iw 命令读取 RSSI、下面是 iw 事件日志的部分内容  

    wlan0: del station a2:c9:eb:1a:d2:2f
    wlan0 (phy #0): disassoc a2:c9:eb:1a:d2:2f -> 90:48:46:33:dc:3d reason 1: Unspecified
    wlan0 (phy #0): disconnected (by AP) reason: 1: Unspecified
    phy #0: regulatory domain change: set to world roaming by the wireless core upon initialization request
    phy #0: beacon hint:
    phy0 5180 MHz [36]:
            o Initiating radiation enabled
    phy #0: beacon hint:
    phy0 5220 MHz [44]:
            o Initiating radiation enabled
    phy #0: beacon hint:
    phy0 5745 MHz [149]:
            o Initiating radiation enabled
    ap0 (phy #0): scan finished: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484 5180 5190 5200 5210 5220 5230 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5745 5765 5785 5805 5825, ""
    wlan0 (phy #0): scan started
    wlan0 (phy #0): scan finished: 5180, ""
    wlan0: new station 9c:c9:eb:1a:d2:31
    wlan0 (phy #0): auth 9c:c9:eb:1a:d2:31 -> 90:48:46:33:dc:3d status: 0: Successful
    wlan0 (phy #0): assoc 9c:c9:eb:1a:d2:31 -> 90:48:46:33:dc:3d status: 0: Successful
    wlan0 (phy #0): connected to 9c:c9:eb:1a:d2:31
    wlan0 (phy #0): ctrl. port TX status (cookie 3): acked
    wlan0 (phy #0): ctrl. port TX status (cookie 4): acked
    ap0 (phy #0): scan started
    wlan0 (phy #0): CQM event: RSSI (-71 dBm) went below threshold
    ap0 (phy #0): scan finished: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484 5180 5190 5200 5210 5220 5230 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5745 5765 5785 5805 5825, ""
    wlan0 (phy #0): scan started
    wlan0 (phy #0): scan finished: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484 5180 5190 5200 5210 5220 5230 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5745 5765 5785 5805 5825, "ORBI11"
    wlan0: del station 9c:c9:eb:1a:d2:31
    wlan0 (phy #0): deauth 90:48:46:33:dc:3d -> 9c:c9:eb:1a:d2:31 reason 1: Unspecified
    wlan0 (phy #0): disconnected (local request) reason: 1: Unspecified
    wlan0: new station a2:c9:eb:1a:d2:2f
    phy #0: regulatory domain change: set to world roaming by the wireless core upon initialization request
    wlan0 (phy #0): auth a2:c9:eb:1a:d2:2f -> 90:48:46:33:dc:3d status: 0: Successful
    wlan0 (phy #0): assoc a2:c9:eb:1a:d2:2f -> 90:48:46:33:dc:3d status: 0: Successful
    wlan0 (phy #0): connected to a2:c9:eb:1a:d2:2f
    wlan0 (phy #0): ctrl. port TX status (cookie 5): acked
    wlan0 (phy #0): ctrl. port TX status (cookie 6): acked
    ap0 (phy #0): scan started
    phy #0: beacon hint:
    phy0 5180 MHz [36]:
            o Initiating radiation enabled
    phy #0: beacon hint:
    phy0 5220 MHz [44]:
            o Initiating radiation enabled
    phy #0: beacon hint:
    phy0 5745 MHz [149]:
            o Initiating radiation enabled
    ap0 (phy #0): scan finished: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484 5180 5190 5200 5210 5220 5230 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5745 5765 5785 5805 5825, ""
    wlan0 (phy #0): scan started
    wlan0 (phy #0): scan finished: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484 5180 5190 5200 5210 5220 5230 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5745 5765 5785 5805 5825, "ORBI11"
    ap0 (phy #0): scan started
    ap0 (phy #0): scan finished: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484 5180 5190 5200 5210 5220 5230 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5745 5765 5785 5805 5825, ""
    wlan0 (phy #0): scan started
    wlan0 (phy #0): scan finished: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484 5180 5190 5200 5210 5220 5230 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5745 5765 5785 5805 5825, "ORBI11"
    ap0 (phy #0): scan started
    ap0 (phy #0): scan finished: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484 5180 5190 5200 5210 5220 5230 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5745 5765 5785 5805 5825, ""
    wlan0: del station a2:c9:eb:1a:d2:2f
    wlan0 (phy #0): disassoc a2:c9:eb:1a:d2:2f -> 90:48:46:33:dc:3d reason 1: Unspecified
    wlan0 (phy #0): disconnected (by AP) reason: 1: Unspecified
    phy #0: regulatory domain change: set to world roaming by the wireless core upon initialization request
    wlan0 (phy #0): scan started
    phy #0: beacon hint:
    phy0 5180 MHz [36]:
            o Initiating radiation enabled
    wlan0 (phy #0): scan finished: 5180, "ORBI11"
    wlan0: new station 9c:c9:eb:1a:d2:31
    wlan0 (phy #0): auth 9c:c9:eb:1a:d2:31 -> 90:48:46:33:dc:3d status: 0: Successful
    wlan0 (phy #0): assoc 9c:c9:eb:1a:d2:31 -> 90:48:46:33:dc:3d status: 0: Successful
    wlan0 (phy #0): connected to 9c:c9:eb:1a:d2:31
    wlan0 (phy #0): ctrl. port TX status (cookie 7): acked
    wlan0 (phy #0): ctrl. port TX status (cookie 8): acked
    wlan0 (phy #0): CQM event: RSSI (-72 dBm) went below threshold
    wlan0 (phy #0): scan started
    phy #0: beacon hint:
    phy0 5220 MHz [44]:
            o Initiating radiation enabled
    phy #0: beacon hint:
    phy0 5745 MHz [149]:
            o Initiating radiation enabled
    phy #0: beacon hint:
    phy0 5785 MHz [157]:
            o Initiating radiation enabled
    wlan0 (phy #0): scan finished: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484 5180 5190 5200 5210 5220 5230 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5745 5765 5785 5805 5825, "ORBI11"
    wlan0: del station 9c:c9:eb:1a:d2:31
    wlan0 (phy #0): deauth 90:48:46:33:dc:3d -> 9c:c9:eb:1a:d2:31 reason 1: Unspecified
    wlan0 (phy #0): disconnected (local request) reason: 1: Unspecified
    wlan0: new station a2:c9:eb:1a:d2:2f
    phy #0: regulatory domain change: set to world roaming by the wireless core upon initialization request
    wlan0 (phy #0): auth a2:c9:eb:1a:d2:2f -> 90:48:46:33:dc:3d status: 0: Successful
    wlan0 (phy #0): assoc a2:c9:eb:1a:d2:2f -> 90:48:46:33:dc:3d status: 0: Successful
    wlan0 (phy #0): connected to a2:c9:eb:1a:d2:2f
    wlan0 (phy #0): ctrl. port TX status (cookie 9): acked
    wlan0 (phy #0): ctrl. port TX status (cookie a): acked

    如果我们观察到上述事件日志、则表明由于信号强度、网络正在从5GHz 频段切换到2.4GHz 频段  

    wlan0 (phy #0):CQM 事件:RSSI (-73dBm)降至阈值以下

    但在一些扫描后、它将再次切换到5GHz 频带、而不会出现任何有效事件、它会显示未指定的事件  

    wlan0:del station A2:c9:eb:1a:d2:2f
    wlan0 (phy #0):disassoc A2:C9:EB:1a:D2:2f -> 90:48:46:33:dc:3D 原因1:未指定

    已附加驱动程序日志  

    e2e.ti.com/.../wlcore_5F00_logs.txt

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    CQM 事件通常与 wpa_supplicant.Cong 中的 bgscan 参数一起用于后台扫描。

    可能已定义阈值、从而越过 RSSI、然后设备漫游。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Shlomi、您好!  

       漫游是否仅发生在像 wpa_supplicant 这样的上层、如果我们在 wpa_supplicant 中禁用漫游、是否有任何 AP 漫游发生在驱动程序中?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Shlomi、您好!

          正是我想理解的是、WPA 请求程序负责启用漫游并设置阈值、或者默认情况下有一些驱动程序级别的漫游设置。  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    如果我们谈论的是我提到的 bgscan、它由 wpa_supplicant 配置文件启用、并基于转换为 CQM 事件的 RSSI 级别。

    RSSI 水平由驱动程序控制和设置。 我认为这里使用的是默认值。 驱动程序还需要启用获取这些事件(通过掩码)、但默认情况下应启用该功能。

    如果不打开驱动程序日志、就很难知道。

    为此、您可以读取 https://www.ti.com/lit/ug/swru575/swru575.pdf?ts = 1731929568395&ref_url=https%253A%252F%252Fwww.google.com%252F

    需要在内核中打开 Dynamic_debug。 我会首先屏蔽除 DEBUG_EVENT、 DEBUG_mac80211和 DEBUG_ACX 之外的所有事件 。

    您也可以在后台运行事件到上层:"iw event -t &"。

    Shlomi