禁用 WLAN 作为内核启动选项?

禁用 WLAN 作为内核启动选项?

我有一个CubieTruck Plus (CubieBoard5)运行 Linaro。它有一个以太网端口和 wifi 卡。我想禁用不需要的服务并降低功耗,所以我想尽早停止与 wifi 和 wlan0 相关的所有内容。

主板/etc/network/interfaces未启用 wlan0 或 wifi。但是,当我dmesg在启动期间检查输出时,我看到卡已启用(见下文)。

我检查了内核启动参数,但没有看到任何与禁用 wifi 或 wlan0 相关的内容。有一个rfkill.default_state处理飞行模式的按钮,但此设备没有这样的按钮(可能无法按我的预期执行)。

如何禁用 WLAN 作为启动时选项或内核启动参数?


cubietruck:~$ dmesg | egrep -i '(wlan|wifi|802)'
[    0.162278] cfg80211: Calling CRDA to update world regulatory domain
[    5.128958] [rf_pm]: set ac10032k2 32k out[wifi_pm]: wifi gpio init is OK !!
[    6.789026] [wifi_pm]: set wl_reg_on 1 !
[    6.789260] =========== WLAN placed in POWER ON ========
[    6.913059] bcm_wlan_get_oob_irq enter.
[    6.940204] Broadcom Dongle Host Driver: register interface [wlan0] MAC: xx:xx:xx:xx:xx:xx
[    6.940389] [wifi_pm]: set wl_reg_on 0 !
[    6.940400] =========== WLAN placed in RESET ========
[   11.609474] wl_android_wifi_on in 1
[   11.609483] wl_android_wifi_on in 2: g_wifi_on=0
[   11.609492] [wifi_pm]: set wl_reg_on 1 !
[   11.609707] =========== WLAN going back to live  ========
[   11.715036] dhd_bus_devreset: == WLAN ON ==
[   12.140869] wl_android_wifi_on: Success
[   12.142367] wl_cfg80211_attach_post: p2p0 p2p_dev_addr=xx:xx:xx:xx:xx:xx
[   16.407047] CFG80211-ERROR) wl_notify_scan_status : scan is not ready 
[   21.372467] CFG80211-ERROR) wl_notify_scan_status : scan is not ready 
[   23.150025] wlan0: no IPv6 routers present

相关内容