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/ctype.h>
10 #include <linux/ieee80211.h>
12 #include <net/lib80211.h>
14 #define DRV_NAME "lib80211"
16 #define DRV_DESCRIPTION "common routines for IEEE802.11 drivers"
18 MODULE_DESCRIPTION(DRV_DESCRIPTION);
19 MODULE_AUTHOR("John W. Linville <linville@tuxdriver.com>");
20 MODULE_LICENSE("GPL");
22 const char *print_ssid(char *buf, const char *ssid, u8 ssid_len)
27 ssid_len = min_t(u8, ssid_len, IEEE80211_MAX_SSID_LEN);
46 d += snprintf(d, 3, "%03o", *s);
52 EXPORT_SYMBOL(print_ssid);
54 static int __init ieee80211_init(void)
56 printk(KERN_INFO DRV_NAME ": " DRV_DESCRIPTION "\n");
60 static void __exit ieee80211_exit(void)
64 module_init(ieee80211_init);
65 module_exit(ieee80211_exit);