svn commit: r248539 - head/sys/net80211
Adrian Chadd
adrian at FreeBSD.org
Wed Mar 20 02:42:53 UTC 2013
Author: adrian
Date: Wed Mar 20 02:42:52 2013
New Revision: 248539
URL: http://svnweb.freebsd.org/changeset/base/248539
Log:
Add VNET wrappers around the rest of the ieee80211 rtsock messages.
I triggered the cac/radar messages when doing testing in DFS channels.
Modified:
head/sys/net80211/ieee80211_freebsd.c
Modified: head/sys/net80211/ieee80211_freebsd.c
==============================================================================
--- head/sys/net80211/ieee80211_freebsd.c Tue Mar 19 22:27:15 2013 (r248538)
+++ head/sys/net80211/ieee80211_freebsd.c Wed Mar 20 02:42:52 2013 (r248539)
@@ -702,7 +702,9 @@ ieee80211_notify_csa(struct ieee80211com
iev.iev_ieee = c->ic_ieee;
iev.iev_mode = mode;
iev.iev_count = count;
+ CURVNET_SET(ifp->if_vnet);
rt_ieee80211msg(ifp, RTM_IEEE80211_CSA, &iev, sizeof(iev));
+ CURVNET_RESTORE();
}
void
@@ -716,7 +718,9 @@ ieee80211_notify_radar(struct ieee80211c
iev.iev_flags = c->ic_flags;
iev.iev_freq = c->ic_freq;
iev.iev_ieee = c->ic_ieee;
+ CURVNET_SET(ifp->if_vnet);
rt_ieee80211msg(ifp, RTM_IEEE80211_RADAR, &iev, sizeof(iev));
+ CURVNET_RESTORE();
}
void
@@ -731,7 +735,9 @@ ieee80211_notify_cac(struct ieee80211com
iev.iev_freq = c->ic_freq;
iev.iev_ieee = c->ic_ieee;
iev.iev_type = type;
+ CURVNET_SET(ifp->if_vnet);
rt_ieee80211msg(ifp, RTM_IEEE80211_CAC, &iev, sizeof(iev));
+ CURVNET_RESTORE();
}
void
@@ -767,7 +773,9 @@ ieee80211_notify_country(struct ieee8021
IEEE80211_ADDR_COPY(iev.iev_addr, bssid);
iev.iev_cc[0] = cc[0];
iev.iev_cc[1] = cc[1];
+ CURVNET_SET(ifp->if_vnet);
rt_ieee80211msg(ifp, RTM_IEEE80211_COUNTRY, &iev, sizeof(iev));
+ CURVNET_RESTORE();
}
void
@@ -778,7 +786,9 @@ ieee80211_notify_radio(struct ieee80211c
memset(&iev, 0, sizeof(iev));
iev.iev_state = state;
+ CURVNET_SET(ifp->if_vnet);
rt_ieee80211msg(ifp, RTM_IEEE80211_RADIO, &iev, sizeof(iev));
+ CURVNET_RESTORE();
}
void
More information about the svn-src-head
mailing list