summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_power.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2008-10-23 19:57:13 +0000
committerdes <des@FreeBSD.org>2008-10-23 19:57:13 +0000
commit2668f9825b6a67e6cde6f82c2a5ec2b8ff9c4e56 (patch)
tree2609af8ef76f3a981fc12a1baa30a22ecf79aabf /sys/net80211/ieee80211_power.c
parent859f75637c27578fee3a238da82d0eac47dc22f5 (diff)
downloadFreeBSD-src-2668f9825b6a67e6cde6f82c2a5ec2b8ff9c4e56.zip
FreeBSD-src-2668f9825b6a67e6cde6f82c2a5ec2b8ff9c4e56.tar.gz
Revert the removal of the MALLOC and FREE macros from the net80211 code.
Requested by: sam
Diffstat (limited to 'sys/net80211/ieee80211_power.c')
-rw-r--r--sys/net80211/ieee80211_power.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_power.c b/sys/net80211/ieee80211_power.c
index debbd42..2a7dda8 100644
--- a/sys/net80211/ieee80211_power.c
+++ b/sys/net80211/ieee80211_power.c
@@ -80,7 +80,7 @@ ieee80211_power_latevattach(struct ieee80211vap *vap)
*/
if (vap->iv_opmode == IEEE80211_M_HOSTAP) {
vap->iv_tim_len = howmany(vap->iv_max_aid,8) * sizeof(uint8_t);
- vap->iv_tim_bitmap = malloc(vap->iv_tim_len,
+ MALLOC(vap->iv_tim_bitmap, uint8_t *, vap->iv_tim_len,
M_80211_POWER, M_NOWAIT | M_ZERO);
if (vap->iv_tim_bitmap == NULL) {
printf("%s: no memory for TIM bitmap!\n", __func__);
@@ -94,7 +94,7 @@ void
ieee80211_power_vdetach(struct ieee80211vap *vap)
{
if (vap->iv_tim_bitmap != NULL) {
- free(vap->iv_tim_bitmap, M_80211_POWER);
+ FREE(vap->iv_tim_bitmap, M_80211_POWER);
vap->iv_tim_bitmap = NULL;
}
}
OpenPOWER on IntegriCloud