diff options
author | Dewey Lee <dewey.lee@broadcom.corp-partner.google.com> | 2022-11-17 17:35:54 +0900 |
---|---|---|
committer | Roger Liao <rogerliao@google.com> | 2022-12-13 10:54:38 +0800 |
commit | ed4d6a1a636e24cc1a20343e12609abdae88f6b4 (patch) | |
tree | ee517977cb3c1cdbd857fa24ee8c6cb75f6e47cf | |
parent | 02bfc6f5301269069efbf1451d6f1fa263f318b4 (diff) | |
download | bcm4389-ed4d6a1a636e24cc1a20343e12609abdae88f6b4.tar.gz |
bcmdhd: Added a debug log to check the case that cfg80211_inform_bss_frame function returns NULL.
Observation:
While updating the bss frame to cfg80211, the cfg80211_inform_bss_frame function returned NULL, so the connection failed.
Analysis:
The cfg80211_inform_bss_frame error means that the cfg80211 cache didn't get updated.
In order to check why kernel returns NULL, from the debug logs, we need to check the bss_fram info in the issue case.
Bug: 256738495
Test: verified with Pixel device
Signed-off-by: Dewey Lee <dewey.lee@broadcom.corp-partner.google.com>
Change-Id: I4de28fcf1b122f0267f7f1696fbed05a5cc98c61
-rw-r--r-- | wl_cfgscan.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/wl_cfgscan.c b/wl_cfgscan.c index 7560952..f5fd713 100644 --- a/wl_cfgscan.c +++ b/wl_cfgscan.c @@ -435,6 +435,14 @@ s32 wl_inform_single_bss(struct bcm_cfg80211 *cfg, wl_bss_info_v109_t *bi, bool if (unlikely(!cbss)) { WL_ERR(("cfg80211_inform_bss_frame error bssid " MACDBG " channel %d \n", MAC2STRDBG((u8*)(&bi->BSSID)), notif_bss_info->channel)); + WL_ERR(("SSID : \"%s\", rssi %d, fc : 0x04%x, " + "capability : 0x04%x, beacon_int : 0x04%x, " + "mgmt_type %d, frame_len %d, freq %d, " + "band %d, center_freq %d, freq_offset %d\n", + tmp_buf, notif_bss_info->rssi, mgmt->frame_control, + mgmt->u.probe_resp.capab_info, mgmt->u.probe_resp.beacon_int, + mgmt_type, notif_bss_info->frame_len, freq, + channel->band, channel->center_freq, channel->freq_offset)); err = -EINVAL; goto out_err; } |