[PATCH wireless-next v2] wifi: mac80211: add missing fmt line break

From: Shiji Yang

Date: Mon Sep 28 2026 - 22:13:30 EST


It was noticed that dmesg sometimes cannot read the last log entry.
Queried using the regex pattern `(?<!\\n)"[,\)]`, then manually checked.

Signed-off-by: Shiji Yang <yangshiji66@xxxxxxxxxxx>
---

Changes in v2:
- Correct pattern in the commit message `[^\n]"[,)]` --> `(?<!\\n)"[,\)]`
- Add wireless-next label

V1: https://lore.kernel.org/linux-wireless/OSZPR01MB814085194DDA24DAC2759477BC8C2@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/

net/mac80211/fils_aead.c | 6 +++---
net/mac80211/key.c | 2 +-
net/mac80211/mesh.c | 6 +++---
net/mac80211/mesh_plink.c | 4 ++--
net/mac80211/mlme.c | 6 +++---
net/mac80211/rate.c | 2 +-
net/mac80211/vht.c | 2 +-
7 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/net/mac80211/fils_aead.c b/net/mac80211/fils_aead.c
index 293590976489..1686fed0b98b 100644
--- a/net/mac80211/fils_aead.c
+++ b/net/mac80211/fils_aead.c
@@ -271,7 +271,7 @@ int fils_decrypt_assoc_resp(struct ieee80211_sub_if_data *sdata,
ies, frame + *frame_len - ies);
if (!session || session->datalen != 1 + 8) {
mlme_dbg(sdata,
- "No (valid) FILS Session element in (Re)Association Response frame from %pM",
+ "No (valid) FILS Session element in (Re)Association Response frame from %pM\n",
mgmt->sa);
return -EINVAL;
}
@@ -301,7 +301,7 @@ int fils_decrypt_assoc_resp(struct ieee80211_sub_if_data *sdata,
crypt_len = frame + *frame_len - encr;
if (crypt_len < AES_BLOCK_SIZE) {
mlme_dbg(sdata,
- "Not enough room for AES-SIV data after FILS Session element in (Re)Association Response frame from %pM",
+ "Not enough room for AES-SIV data after FILS Session element in (Re)Association Response frame from %pM\n",
mgmt->sa);
return -EINVAL;
}
@@ -309,7 +309,7 @@ int fils_decrypt_assoc_resp(struct ieee80211_sub_if_data *sdata,
encr, crypt_len, 5, addr, len, encr);
if (res != 0) {
mlme_dbg(sdata,
- "AES-SIV decryption of (Re)Association Response frame from %pM failed",
+ "AES-SIV decryption of (Re)Association Response frame from %pM failed\n",
mgmt->sa);
return res;
}
diff --git a/net/mac80211/key.c b/net/mac80211/key.c
index f45e792abede..294336b1c1c9 100644
--- a/net/mac80211/key.c
+++ b/net/mac80211/key.c
@@ -337,7 +337,7 @@ static void ieee80211_pairwise_rekey(struct ieee80211_key *old,
}
if (!wiphy_ext_feature_isset(local->hw.wiphy,
NL80211_EXT_FEATURE_CAN_REPLACE_PTK0)) {
- pr_warn_ratelimited("Rekeying PTK for STA %pM but driver can't safely do that.",
+ pr_warn_ratelimited("Rekeying PTK for STA %pM but driver can't safely do that.\n",
sta->sta.addr);
/* Flushing the driver queues *may* help prevent
* the clear text leaks and freezes.
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c
index d4507e4e6ec1..c6047d0daf6c 100644
--- a/net/mac80211/mesh.c
+++ b/net/mac80211/mesh.c
@@ -1529,7 +1529,7 @@ int ieee80211_mesh_finish_csa(struct ieee80211_sub_if_data *sdata, u64 *changed)

*changed |= BSS_CHANGED_BEACON;

- mcsa_dbg(sdata, "complete switching to center freq %d MHz",
+ mcsa_dbg(sdata, "complete switching to center freq %d MHz\n",
sdata->vif.bss_conf.chanreq.oper.chan->center_freq);
return 0;
}
@@ -1633,14 +1633,14 @@ static void mesh_rx_csa_frame(struct ieee80211_sub_if_data *sdata,

if (!sdata->vif.bss_conf.csa_active &&
!ieee80211_mesh_process_chnswitch(sdata, elems, false)) {
- mcsa_dbg(sdata, "Failed to process CSA action frame");
+ mcsa_dbg(sdata, "Failed to process CSA action frame\n");
goto free;
}

/* forward or re-broadcast the CSA frame */
if (fwd_csa) {
if (mesh_fwd_csa_frame(sdata, mgmt, len, elems) < 0)
- mcsa_dbg(sdata, "Failed to forward the CSA frame");
+ mcsa_dbg(sdata, "Failed to forward the CSA frame\n");
}
free:
kfree(elems);
diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c
index 268857467f29..77a54f28fc70 100644
--- a/net/mac80211/mesh_plink.c
+++ b/net/mac80211/mesh_plink.c
@@ -681,7 +681,7 @@ void mesh_plink_timer(struct timer_list *t)
*/
if (time_before(jiffies, sta->mesh->plink_timer.expires)) {
mpl_dbg(sta->sdata,
- "Ignoring timer for %pM in state %s (timer adjusted)",
+ "Ignoring timer for %pM in state %s (timer adjusted)\n",
sta->sta.addr, mplstates[sta->mesh->plink_state]);
spin_unlock_bh(&sta->mesh->plink_lock);
return;
@@ -691,7 +691,7 @@ void mesh_plink_timer(struct timer_list *t)
if (sta->mesh->plink_state == NL80211_PLINK_LISTEN ||
sta->mesh->plink_state == NL80211_PLINK_ESTAB) {
mpl_dbg(sta->sdata,
- "Ignoring timer for %pM in state %s (timer deleted)",
+ "Ignoring timer for %pM in state %s (timer deleted)\n",
sta->sta.addr, mplstates[sta->mesh->plink_state]);
spin_unlock_bh(&sta->mesh->plink_lock);
return;
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index f51167f0fc46..b323d302ef4f 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -6623,7 +6623,7 @@ ieee80211_determine_our_sta_mode(struct ieee80211_sub_if_data *sdata,
IEEE80211_VHT_CAP_EXT_NSS_BW_MASK))) {
conn->bw_limit = IEEE80211_CONN_BW_LIMIT_80;
mlme_link_id_dbg(sdata, link_id,
- "no VHT 160 MHz capability on 5 GHz, limiting to 80 MHz");
+ "no VHT 160 MHz capability on 5 GHz, limiting to 80 MHz\n");
}

if (req && req->flags & ASSOC_REQ_DISABLE_HE) {
@@ -8733,7 +8733,7 @@ ieee80211_parse_neg_ttlm(struct ieee80211_sub_if_data *sdata,
map = ieee80211_get_ttlm(map_size, pos);
if (!map) {
mlme_dbg(sdata,
- "No active links for TID %d", tid);
+ "No active links for TID %d\n", tid);
return -EINVAL;
}
pos += map_size;
@@ -11011,7 +11011,7 @@ ieee80211_process_ml_reconf_resp(struct ieee80211_sub_if_data *sdata,

if (len < 1 || len < 1 + *pos) {
sdata_info(sdata,
- "mlo: reconf: invalid group key data length");
+ "mlo: reconf: invalid group key data length\n");
goto disconnect;
}

diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c
index 64768abb0a5f..3b5820a0c593 100644
--- a/net/mac80211/rate.c
+++ b/net/mac80211/rate.c
@@ -318,7 +318,7 @@ void ieee80211_check_rate_mask(struct ieee80211_link_data *link)
return;

sdata_dbg(sdata,
- "no overlap between basic rates (0x%x) and user mask (0x%x on band %d) - clearing the latter",
+ "no overlap between basic rates (0x%x) and user mask (0x%x on band %d) - clearing the latter\n",
basic_rates, user_mask, band);
sdata->rc_rateidx_mask[band] = (1 << sband->n_bitrates) - 1;
}
diff --git a/net/mac80211/vht.c b/net/mac80211/vht.c
index 92a4e0450593..958d9ed52fef 100644
--- a/net/mac80211/vht.c
+++ b/net/mac80211/vht.c
@@ -365,7 +365,7 @@ u32 __ieee80211_vht_handle_opmode(struct ieee80211_sub_if_data *sdata,
}
} else {
sdata_dbg(sdata,
- "Ignore NSS change to invalid %d in VHT opmode notif from %pM",
+ "Ignore NSS change to invalid %d in VHT opmode notif from %pM\n",
nss, link_sta->pub->addr);
}
}
--
2.53.0