Merge tag 'samsung-defconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene...
[firefly-linux-kernel-4.4.55.git] / net / wireless / lib80211.c
index a55c27b75ee5667a7046ad54855f8ddd90c57b05..459611577d3dfa29f72442dfe1dcdfe4f2c6a502 100644 (file)
@@ -46,38 +46,6 @@ static void lib80211_crypt_deinit_entries(struct lib80211_crypt_info *info,
 static void lib80211_crypt_quiescing(struct lib80211_crypt_info *info);
 static void lib80211_crypt_deinit_handler(unsigned long data);
 
-const char *print_ssid(char *buf, const char *ssid, u8 ssid_len)
-{
-       const char *s = ssid;
-       char *d = buf;
-
-       ssid_len = min_t(u8, ssid_len, IEEE80211_MAX_SSID_LEN);
-       while (ssid_len--) {
-               if (isprint(*s)) {
-                       *d++ = *s++;
-                       continue;
-               }
-
-               *d++ = '\\';
-               if (*s == '\0')
-                       *d++ = '0';
-               else if (*s == '\n')
-                       *d++ = 'n';
-               else if (*s == '\r')
-                       *d++ = 'r';
-               else if (*s == '\t')
-                       *d++ = 't';
-               else if (*s == '\\')
-                       *d++ = '\\';
-               else
-                       d += snprintf(d, 3, "%03o", *s);
-               s++;
-       }
-       *d = '\0';
-       return buf;
-}
-EXPORT_SYMBOL(print_ssid);
-
 int lib80211_crypt_info_init(struct lib80211_crypt_info *info, char *name,
                                spinlock_t *lock)
 {