From e0198bfdd0eecea395b60ee6c66ae49eb7335fb6 Mon Sep 17 00:00:00 2001 From: zhihuaiwen <1570631036@qq.com> Date: Sun, 24 Nov 2024 20:08:47 +0800 Subject: [PATCH] update --- ...44\270\252mini\344\270\273\346\234\272.md" | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git "a/docs/interesting/\344\271\260\344\272\206\344\270\252mini\344\270\273\346\234\272.md" "b/docs/interesting/\344\271\260\344\272\206\344\270\252mini\344\270\273\346\234\272.md" index b3a1998c..eeb928d9 100644 --- "a/docs/interesting/\344\271\260\344\272\206\344\270\252mini\344\270\273\346\234\272.md" +++ "b/docs/interesting/\344\271\260\344\272\206\344\270\252mini\344\270\273\346\234\272.md" @@ -119,6 +119,26 @@ nmcli connection show nmcli device show wlp3s0 ``` +上面的其实在2024年其实有点问题,因为会默认连接2.4GHz的wifi,使用的时候很明显没有那么快,特别是在用命令行的时候会觉得明显卡顿,现在需要切换到5GHz的wifi。 +首先,使用 nmcli 获取可用 WiFi 网络及其 BSSID: +```shell +nmcli -f SSID,BSSID,CHAN dev wifi list +``` +示例输出: + +```text +SSID BSSID CHAN +MyNetwork XX:XX:XX:XX:XX:01 36 +MyNetwork XX:XX:XX:XX:XX:02 1 +``` + +在这里, XX:XX:XX:XX:XX:01 是 5GHz 网络的 BSSID。 + +使用 nmcli 连接到特定的 BSSID +```shell +nmcli dev wifi connect 'XX:XX:XX:XX:XX:01' password 'your_password' +``` + ## 三、VNC远程连接