fix(wifi/hotspot): retry with different frequency on AP mode timeout#24
Conversation
When creating a WiFi hotspot with auto channel selection (channel=0),the supplicant may time out on certain frequencies due to driver issues or regulatory restrictions. Instead of failing immediately, retry with a different frequency up to 4 times before giving up. The failed frequency is recorded and skipped in subsequent attempts,so each retry tries a genuinely different channel. 修复WiFi热点在自动选信道时因驱动或法规限制导致超时的问题。 当热点创建超时时不立即失败,而是依次尝试不同频率,最多重试4次。 每次超时的频率会被记录并在后续重试中跳过,确保每次都尝试真正不同的信道。 PMS: BUG-353699
|
TAG Bot TAG: 1.44.2-7deepin9 |
|
Hi @ut003640. Thanks for your PR. I'm waiting for a deepin-community member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: caixr23 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/forcemerge |
|
/integrate |
|
AutoIntegrationPr Bot |
|
/integrate |
|
/integrate |
|
/integrate |
|
/integrate |
e87d1f8 to
2fa5fe0
Compare
|
/integrate |
📌 新增接口分析是的,存在新增接口! 但需要澄清:这个PR 本身没有新增接口,而是暴露了一个之前存在但未完全集成的接口。 🔍 新增接口详情公开 API 函数int nm_setting_connection_get_autoconnect_reset_retries(NMSettingConnection *setting)文件: 说明:
版本标记: 📊 接口暴露的改动1️⃣ 库符号导出 (
|
| 方面 | 说明 |
|---|---|
| 热点重试逻辑 | 在 nm-device-wifi.c 中实现,是内部设备管理逻辑 |
| 公开接口 | nm_setting_connection_get_autoconnect_reset_retries() 用于读取连接配置 |
| 关系 | 热点重试逻辑利用连接的 autoconnect-reset-retries 属性来控制重试行为 |
@BLumia 这种算是新增接口么? |
|
/integrate |
|
/integrate |
|
/integrate |
|
/integrate |
1 similar comment
|
/integrate |
|
/integrate |
|
/integrate |
… property Fix test_connection_diff_a_only assertion failure (29 != 28) and metadata XML inconsistency caused by adding autoconnect-reset-retries to NMSettingConnection. Closes deepin-community#2
|
/integrate |
1 similar comment
|
/integrate |
When creating a WiFi hotspot with auto channel selection (channel=0),the supplicant may time out on certain frequencies due to driver issues or regulatory restrictions. Instead of failing immediately, retry with a different frequency up to 4 times before giving up.
The failed frequency is recorded and skipped in subsequent attempts,so each retry tries a genuinely different channel.
修复WiFi热点在自动选信道时因驱动或法规限制导致超时的问题。
当热点创建超时时不立即失败,而是依次尝试不同频率,最多重试4次。
每次超时的频率会被记录并在后续重试中跳过,确保每次都尝试真正不同的信道。
PMS: BUG-353699