diff options
-rw-r--r-- | drivers/net/wireless/marvell/mwifiex/debugfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/debugfs.c b/drivers/net/wireless/marvell/mwifiex/debugfs.c index b9284b533294..ae2b69db5994 100644 --- a/drivers/net/wireless/marvell/mwifiex/debugfs.c +++ b/drivers/net/wireless/marvell/mwifiex/debugfs.c | |||
@@ -114,7 +114,8 @@ mwifiex_info_read(struct file *file, char __user *ubuf, | |||
114 | if (GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_STA) { | 114 | if (GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_STA) { |
115 | p += sprintf(p, "multicast_count=\"%d\"\n", | 115 | p += sprintf(p, "multicast_count=\"%d\"\n", |
116 | netdev_mc_count(netdev)); | 116 | netdev_mc_count(netdev)); |
117 | p += sprintf(p, "essid=\"%s\"\n", info.ssid.ssid); | 117 | p += sprintf(p, "essid=\"%.*s\"\n", info.ssid.ssid_len, |
118 | info.ssid.ssid); | ||
118 | p += sprintf(p, "bssid=\"%pM\"\n", info.bssid); | 119 | p += sprintf(p, "bssid=\"%pM\"\n", info.bssid); |
119 | p += sprintf(p, "channel=\"%d\"\n", (int) info.bss_chan); | 120 | p += sprintf(p, "channel=\"%d\"\n", (int) info.bss_chan); |
120 | p += sprintf(p, "country_code = \"%s\"\n", info.country_code); | 121 | p += sprintf(p, "country_code = \"%s\"\n", info.country_code); |