diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2015-05-25 19:18:16 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2015-05-25 19:18:16 +0000 |
commit | b9b533891f5f8acf01ac15dafceafb03a611a80d (patch) | |
tree | 54f39f6faf7793d8e0ca3482eb053c1b73bd2cfe /sys/net80211/ieee80211_ratectl_none.c | |
parent | 59686fe93550b9811472226276fe09ccad55866f (diff) | |
download | src-b9b533891f5f8acf01ac15dafceafb03a611a80d.tar.gz src-b9b533891f5f8acf01ac15dafceafb03a611a80d.zip |
Convert malloc/free back to #define's, as part of OS portability work.
DragonflyBSD uses the FreeBSD wireless stack and drivers. Their malloc()
API is named differently, so they don't have userland/kernel symbol
clashes like we do (think libuinet.)
So, to make it easier for them and to port to other BSDs/other operating
systems, start hiding the malloc specific bits behind defines in
ieee80211_freebsd.h.
DragonflyBSD can now put these portability defines in their local
ieee80211_dragonflybsd.h.
This should be a great big no-op for everyone running wifi.
TODO:
* kill M_WAITOK - some platforms just don't want you to use it
* .. and/or handle it returning NULL rather than waiting forever.
* MALLOC_DEFINE() ?
* Migrate the well-known malloc names (eg M_TEMP) to net80211
namespace defines.
Notes
Notes:
svn path=/head/; revision=283538
Diffstat (limited to 'sys/net80211/ieee80211_ratectl_none.c')
-rw-r--r-- | sys/net80211/ieee80211_ratectl_none.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_ratectl_none.c b/sys/net80211/ieee80211_ratectl_none.c index a0056f3f5355..5a45a74ea7a3 100644 --- a/sys/net80211/ieee80211_ratectl_none.c +++ b/sys/net80211/ieee80211_ratectl_none.c @@ -56,7 +56,7 @@ none_init(struct ieee80211vap *vap) static void none_deinit(struct ieee80211vap *vap) { - free(vap->iv_rs, M_80211_RATECTL); + IEEE80211_FREE(vap->iv_rs, M_80211_RATECTL); } static void |