qcacmn: print SSID with QDF_SSID_FMT and QDF_SSID_REF
To protect user privacy, print SSID with QDF_SSID_FMT and QDF_SSID_REF, then SSID will be hide in logs if anonymization is enabled. Change-Id: Ifad0ccd76bd1184a9b1d20f3d7fa4455df924843 CRs-Fixed: 3291826
Этот коммит содержится в:

коммит произвёл
Madan Koyyalamudi

родитель
4aa7278f36
Коммит
093c816d05
@@ -548,8 +548,9 @@ ucfg_scan_config_hidden_ssid_for_bssid(struct wlan_objmgr_pdev *pdev,
|
||||
if (!scan_obj)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
||||
scm_debug("Configure bsssid:"QDF_MAC_ADDR_FMT" ssid:%.*s",
|
||||
QDF_MAC_ADDR_REF(bssid), ssid->length, ssid->ssid);
|
||||
scm_debug("Configure bsssid:" QDF_MAC_ADDR_FMT " ssid:" QDF_SSID_FMT,
|
||||
QDF_MAC_ADDR_REF(bssid),
|
||||
QDF_SSID_REF(ssid->length, ssid->ssid));
|
||||
qdf_mem_copy(scan_obj->pdev_info[pdev_id].conf_bssid,
|
||||
bssid, QDF_MAC_ADDR_SIZE);
|
||||
scan_obj->pdev_info[pdev_id].conf_ssid.length = ssid->length;
|
||||
|
@@ -2849,8 +2849,9 @@ static uint32_t util_gen_new_ie(uint8_t *ie, uint32_t ielen,
|
||||
/* new ssid */
|
||||
tmp_new = util_scan_find_ie(WLAN_ELEMID_SSID, sub_copy, subie_len);
|
||||
if (tmp_new) {
|
||||
scm_debug(" SSID %.*s", tmp_new[1],
|
||||
&tmp_new[PAYLOAD_START_POS]);
|
||||
scm_debug(" SSID " QDF_SSID_FMT,
|
||||
QDF_SSID_REF(tmp_new[1],
|
||||
&tmp_new[PAYLOAD_START_POS]));
|
||||
if ((pos + tmp_new[1] + MIN_IE_LEN) <=
|
||||
(new_ie + ielen)) {
|
||||
qdf_mem_copy(pos, tmp_new,
|
||||
|
Ссылка в новой задаче
Block a user