Originally an idea posed by Sam Leffler of the FreeBSD Project, I decided to help this little ball get rolling. There are a large family of operations that are generally useful when using wifi hardware, this is an attempt to co-locate much of that work into a useful and well-organized library in hopes that it will stamp out some of the obnoxious wheel reinvention that happens.
Here is my latest lib80211 patch to FreeBSD 8-CURRENT:
The build has a new lib/lib80211 directory in the src tree.
The following functions were moved out of sbin/ifconfig/ieee80211.c and are now in lib80211:
| original name | new name |
|---|---|
| set80211 | lib80211_set80211 |
| get80211 | lib80211_get80211 |
| get80211val | lib80211_get80211val |
| get80211len | lib80211_get80211len |
| getssid | lib80211_getssid |
Additionally, I've moved regdomain.c into the new lib/lib80211 and have renamed regdomain.h to lib80211.h. The prototypes for the above functions are now specified in lib80211.h.