Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net80211/ieee80211_regdomain.c
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | null_setregdomain(struct ieee80211com *ic, | ||||
return 0; /* accept anything */ | return 0; /* accept anything */ | ||||
} | } | ||||
void | void | ||||
ieee80211_regdomain_attach(struct ieee80211com *ic) | ieee80211_regdomain_attach(struct ieee80211com *ic) | ||||
{ | { | ||||
if (ic->ic_regdomain.regdomain == 0 && | if (ic->ic_regdomain.regdomain == 0 && | ||||
ic->ic_regdomain.country == CTRY_DEFAULT) { | ic->ic_regdomain.country == CTRY_DEFAULT) { | ||||
ic->ic_regdomain.country = CTRY_UNITED_STATES; /* XXX */ | |||||
ic->ic_regdomain.location = ' '; /* both */ | ic->ic_regdomain.location = ' '; /* both */ | ||||
ic->ic_regdomain.isocc[0] = 'U'; /* XXX */ | |||||
ic->ic_regdomain.isocc[1] = 'S'; /* XXX */ | |||||
/* NB: driver calls ieee80211_init_channels or similar */ | /* NB: driver calls ieee80211_init_channels or similar */ | ||||
} | } | ||||
ic->ic_getradiocaps = null_getradiocaps; | ic->ic_getradiocaps = null_getradiocaps; | ||||
ic->ic_setregdomain = null_setregdomain; | ic->ic_setregdomain = null_setregdomain; | ||||
} | } | ||||
void | void | ||||
ieee80211_regdomain_detach(struct ieee80211com *ic) | ieee80211_regdomain_detach(struct ieee80211com *ic) | ||||
▲ Show 20 Lines • Show All 369 Lines • Show Last 20 Lines |