This patch will help to trace if hidden ssid is lost in firmware or driver.
SSID and mac address should be anonymized.
BUG=chrome-os-partner:17989
TEST=trigger a scan and grep for "inform bss" in dmesg/messages. Submit a
feedback report and verify if SSIDs and mac addresses are anonymized. Verified
with the feedback report
718249759.
Change-Id: I0df02a9f8eb1898f6f3af2438c614031bb44f329
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Ashok Nagarajan <asnagarajan@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/44124
Reviewed-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: mukesh agrawal <quiche@chromium.org>
chan = ieee80211_get_channel(priv->wdev->wiphy, freq);
if (chan && !(chan->flags & IEEE80211_CHAN_DISABLED)) {
+ DECLARE_SSID_BUF(ssid_buf);
+
+ wiphy_info(priv->wdev->wiphy,
+ "inform bss: %pM [SSID=%s]\n", bssid,
+ print_ssid(ssid_buf, ie_buf + 2,
+ *(ie_buf + 1)));
+
bss = cfg80211_inform_bss(priv->wdev->wiphy,
chan, bssid, timestamp,
cap_info_bitmap, beacon_period,
ssid_len = min_t(u8, ssid_len, IEEE80211_MAX_SSID_LEN);
while (ssid_len--) {
if (isprint(*s)) {
- *d++ = *s++;
+ if (*s != '[' && *s != ']')
+ *d++ = *s;
+ s++;
continue;
}