From 1e859ac6cf798ed0a373a4abd28e5e2103458ef0 Mon Sep 17 00:00:00 2001 From: fangdong7 Date: Sat, 18 Mar 2023 08:32:20 +0000 Subject: [PATCH] feat:add wlan logs Signed-off-by: fangdong7 --- linux-5.10/rk3568_patch/kernel.patch | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/linux-5.10/rk3568_patch/kernel.patch b/linux-5.10/rk3568_patch/kernel.patch index cd29c9e..6f54aad 100644 --- a/linux-5.10/rk3568_patch/kernel.patch +++ b/linux-5.10/rk3568_patch/kernel.patch @@ -1167860,7 +1167860,7 @@ new file mode 100755 index 000000000..10e2ebb2a --- /dev/null +++ b/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/wl_cfg80211.c -@@ -0,0 +1,25020 @@ +@@ -0,0 +1,25026 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Linux cfg80211 driver @@ -1169727,7 +1169727,7 @@ index 000000000..10e2ebb2a + return NULL; + } + -+ printk(KERN_INFO"wl_cfg80211_p2p_if_add type=%d, name=%s\n", wl_iftype, name); ++ printk(KERN_INFO"wl_cfg80211_p2p_if_add type=%d, name=%s, cfg->p2p->p2p_go_count =%d\n", wl_iftype, name, cfg->p2p->p2p_go_count); + +#if defined(WL_CFG80211_P2P_DEV_IF) + if (wl_iftype == WL_IF_TYPE_P2P_DISC) { @@ -1169804,6 +1169804,7 @@ index 000000000..10e2ebb2a + goto fail; + } + ++ WL_ERR(("wl_cfg80211_p2p_if_add wl_iftype (%d) \n", wl_iftype)); + if (wl_iftype == WL_IF_TYPE_P2P_GO) { + cfg->p2p->p2p_go_count++; + } @@ -1169995,9 +1169996,12 @@ index 000000000..10e2ebb2a + wl_clr_p2p_status(cfg, IF_ADDING); + + /* for GO */ ++ WL_ERR(("cfg->p2p->p2p_go_count111111111111 = %d\n", cfg->p2p->p2p_go_count)); + if (wl_get_mode_by_netdev(cfg, ndev) == WL_MODE_AP) { ++ WL_ERR(("WL_MODE_AP...........................\n")); + wl_add_remove_eventmsg(ndev, WLC_E_PROBREQ_MSG, false); + cfg->p2p->p2p_go_count--; ++ WL_ERR(("cfg->p2p->p2p_go_count222222222 = %d\n", cfg->p2p->p2p_go_count)); + /* disable interface before bsscfg free */ + err = wl_cfgp2p_ifdisable(cfg, wl_to_p2p_bss_macaddr(cfg, cfg_type)); + /* if fw doesn't support "ifdis", @@ -1170012,6 +1170016,7 @@ index 000000000..10e2ebb2a + } + } else { + /* GC case */ ++ WL_ERR(("wl_get_mode_by_netdev(cfg, ndev) = %d...........................\n", wl_get_mode_by_netdev(cfg, ndev))); + if (wl_get_drv_status(cfg, DISCONNECTING, ndev)) { + WL_ERR(("Wait for Link Down event for GC !\n")); + wait_for_completion_timeout @@ -1170035,6 +1170040,7 @@ index 000000000..10e2ebb2a + msecs_to_jiffies(MAX_WAIT_TIME)); + if (timeout > 0 && !wl_get_p2p_status(cfg, IF_DELETING) && + cfg->if_event_info.valid) { ++ WL_ERR(("cfg->p2p->p2p_go_count3333333 = %d\n", cfg->p2p->p2p_go_count)); + WL_ERR(("P2P IFDEL operation done\n")); + err = BCME_OK; + } else { -- Gitee