2 * lib80211 -- common bits for IEEE802.11 drivers
4 * Copyright(c) 2008 John W. Linville <linville@tuxdriver.com>
8 #include <linux/module.h>
9 #include <linux/ieee80211.h>
11 #include <net/lib80211.h>
13 #define DRV_NAME "lib80211"
15 #define DRV_DESCRIPTION "common routines for IEEE802.11 drivers"
17 MODULE_DESCRIPTION(DRV_DESCRIPTION);
18 MODULE_AUTHOR("John W. Linville <linville@tuxdriver.com>");
19 MODULE_LICENSE("GPL");
21 const char *escape_ssid(const char *ssid, u8 ssid_len)
23 static char escaped[IEEE80211_MAX_SSID_LEN * 2 + 1];
27 ssid_len = min_t(u8, ssid_len, IEEE80211_MAX_SSID_LEN);
40 EXPORT_SYMBOL(escape_ssid);
42 static int __init ieee80211_init(void)
44 printk(KERN_INFO DRV_NAME ": " DRV_DESCRIPTION "\n");
48 static void __exit ieee80211_exit(void)
52 module_init(ieee80211_init);
53 module_exit(ieee80211_exit);