dmesg 日志消息含义

dmesg 日志消息含义

我需要了解运行 dmesg 时收到的以下消息的含义,以便调查为什么某个 AP 在与我的笔记本电脑连接时出现问题。

以下是我收到的可疑信息,我需要了解

Limiting TX power to 20 (20 - 0) dBm as advertised x
deauthenticating from x by local choice (reason=3)
deauthenticating from x by local choice (reason=2)

更新带有完整日志

[10421.804625] wlan1: authenticate with xx:xx:xx:xx:xx:xx
[10421.808067] wlan1: send auth to xx:xx:xx:xx:xx:xx (try 1/3)
[10421.832374] wlan1: send auth to xx:xx:xx:xx:xx:xx (try 2/3)
[10421.834345] wlan1: authenticated
[10421.836063] wlan1: associate with xx:xx:xx:xx:xx:xx (try 1/3)
[10421.873549] wlan1: associate with xx:xx:xx:xx:xx:xx (try 2/3)
[10421.878351] wlan1: RX AssocResp from xx:xx:xx:xx:xx:xx (capab=0x431 status=0 aid=3)
[10421.884235] wlan1: associated
[10421.884384] cfg80211: Calling CRDA for country: EG
[10421.890886] cfg80211: Regulatory domain changed to country: EG
[10421.890896] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[10421.890901] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[10421.890906] cfg80211:   (5170000 KHz - 5250000 KHz @ 20000 KHz), (N/A, 2000 mBm)
[10421.890910] cfg80211:   (5250000 KHz - 5330000 KHz @ 20000 KHz), (N/A, 2000 mBm)
[10505.540819] wlan1: deauthenticated from xx:xx:xx:xx:xx:xx (Reason: 3)
[10505.571989] cfg80211: Calling CRDA to update world regulatory domain
[10505.577928] cfg80211: World regulatory domain updated:
[10505.577933] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[10505.577936] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[10505.577938] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[10505.577940] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[10505.577943] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[10505.577945] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[10508.712246] wlan1: authenticate with xx:xx:xx:xx:xx:xx
[10508.715881] wlan1: send auth to xx:xx:xx:xx:xx:xx (try 1/3)
[10508.740321] wlan1: send auth to xx:xx:xx:xx:xx:xx (try 2/3)
[10508.742317] wlan1: authenticated
[10508.743270] wlan1: associate with xx:xx:xx:xx:xx:xx (try 1/3)
[10508.783452] wlan1: associate with xx:xx:xx:xx:xx:xx (try 2/3)
[10508.787617] wlan1: RX AssocResp from xx:xx:xx:xx:xx:xx (capab=0x431 status=0 aid=3)
[10508.793260] wlan1: associated
[10508.793434] cfg80211: Calling CRDA for country: EG
[10508.800528] cfg80211: Regulatory domain changed to country: EG
[10508.800537] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[10508.800542] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[10508.800547] cfg80211:   (5170000 KHz - 5250000 KHz @ 20000 KHz), (N/A, 2000 mBm)
[10508.800551] cfg80211:   (5250000 KHz - 5330000 KHz @ 20000 KHz), (N/A, 2000 mBm)

答案1

内核消息“将 TX 功率限制为 %d (%d - %d) dBm,正如 ... 所宣传的那样”来自 net/mac80211/mlme.c 中的 ieee80211_handle_pwr_constr()。限制 TX 功率的决定的评论如下:

“如果我们同时拥有 802.11h 和 Cisco DTPC,则通过选择所宣传的两个功率级别中最小的一个来应用这两个限制。”

DTPC 是一种动态机制,无线接入点可以指示无线客户端更改其无线电发射功率设置,使其最适合客户端与 AP 之间的操作距离。DTPC 的优势在于将客户端调整到 AP 功率水平,同时减少无线客户端产生的同频干扰量。

“通过本地选择从...取消身份验证”消息也来自同一源代码,来自 ieee80211_mgd_deauth()。

原因代码 2:WLAN_REASON_PREV_AUTH_NOT_VALID

原因代码 3:WLAN_REASON_DEAUTH_LEAVING

我不太清楚这对你来说意味着什么。看来客户端的电源已被 DTPC 切断,然后取消了身份验证,也许这就是你与 AP 的关联无法可靠运行的原因。

也许禁用接入点的 DTPC 可能会有帮助。

相关内容