freebsd11_wlan: Disable sysinits.

These are currently no-ops; but soon enough they won't be...
This commit is contained in:
Augustin Cavalier
2019-01-03 21:20:33 -05:00
parent 92d70a24ca
commit 88c3c4fa49
6 changed files with 104 additions and 92 deletions
@@ -261,7 +261,9 @@ ic_printf(struct ieee80211com *ic, const char * fmt, ...)
static LIST_HEAD(, ieee80211com) ic_head = LIST_HEAD_INITIALIZER(ic_head); static LIST_HEAD(, ieee80211com) ic_head = LIST_HEAD_INITIALIZER(ic_head);
struct mtx ic_list_mtx; struct mtx ic_list_mtx;
#if 0
MTX_SYSINIT(ic_list, &ic_list_mtx, "ieee80211com list", MTX_DEF); MTX_SYSINIT(ic_list, &ic_list_mtx, "ieee80211com list", MTX_DEF);
#endif
static int static int
sysctl_ieee80211coms(SYSCTL_HANDLER_ARGS) sysctl_ieee80211coms(SYSCTL_HANDLER_ARGS)
@@ -203,7 +203,9 @@ ieee80211_ht_init(void)
ieee80211_send_action_register(IEEE80211_ACTION_CAT_HT, ieee80211_send_action_register(IEEE80211_ACTION_CAT_HT,
IEEE80211_ACTION_HT_TXCHWIDTH, ht_send_action_ht_txchwidth); IEEE80211_ACTION_HT_TXCHWIDTH, ht_send_action_ht_txchwidth);
} }
#if 0
SYSINIT(wlan_ht, SI_SUB_DRIVERS, SI_ORDER_FIRST, ieee80211_ht_init, NULL); SYSINIT(wlan_ht, SI_SUB_DRIVERS, SI_ORDER_FIRST, ieee80211_ht_init, NULL);
#endif
static int ieee80211_ampdu_enable(struct ieee80211_node *ni, static int ieee80211_ampdu_enable(struct ieee80211_node *ni,
struct ieee80211_tx_ampdu *tap); struct ieee80211_tx_ampdu *tap);
@@ -245,7 +245,9 @@ ieee80211_hwmp_init(void)
*/ */
ieee80211_mesh_register_proto_path(&mesh_proto_hwmp); ieee80211_mesh_register_proto_path(&mesh_proto_hwmp);
} }
#if 0
SYSINIT(wlan_hwmp, SI_SUB_DRIVERS, SI_ORDER_SECOND, ieee80211_hwmp_init, NULL); SYSINIT(wlan_hwmp, SI_SUB_DRIVERS, SI_ORDER_SECOND, ieee80211_hwmp_init, NULL);
#endif
static void static void
hwmp_vattach(struct ieee80211vap *vap) hwmp_vattach(struct ieee80211vap *vap)
@@ -600,7 +600,9 @@ ieee80211_mesh_init(void)
ieee80211_mesh_register_proto_metric(&mesh_metric_airtime); ieee80211_mesh_register_proto_metric(&mesh_metric_airtime);
} }
#if 0
SYSINIT(wlan_mesh, SI_SUB_DRIVERS, SI_ORDER_FIRST, ieee80211_mesh_init, NULL); SYSINIT(wlan_mesh, SI_SUB_DRIVERS, SI_ORDER_FIRST, ieee80211_mesh_init, NULL);
#endif
void void
ieee80211_mesh_attach(struct ieee80211com *ic) ieee80211_mesh_attach(struct ieee80211com *ic)
@@ -367,7 +367,9 @@ ieee80211_phy_init(void)
ieee80211_setup_ratetable(ratetables[i]); ieee80211_setup_ratetable(ratetables[i]);
} }
#if 0
SYSINIT(wlan_phy, SI_SUB_DRIVERS, SI_ORDER_FIRST, ieee80211_phy_init, NULL); SYSINIT(wlan_phy, SI_SUB_DRIVERS, SI_ORDER_FIRST, ieee80211_phy_init, NULL);
#endif
const struct ieee80211_rate_table * const struct ieee80211_rate_table *
ieee80211_get_ratetable(struct ieee80211_channel *c) ieee80211_get_ratetable(struct ieee80211_channel *c)
@@ -454,7 +454,9 @@ ieee80211_auth_setup(void)
ieee80211_authenticator_register(IEEE80211_AUTH_SHARED, &auth_internal); ieee80211_authenticator_register(IEEE80211_AUTH_SHARED, &auth_internal);
ieee80211_authenticator_register(IEEE80211_AUTH_AUTO, &auth_internal); ieee80211_authenticator_register(IEEE80211_AUTH_AUTO, &auth_internal);
} }
#if 0
SYSINIT(wlan_auth, SI_SUB_DRIVERS, SI_ORDER_FIRST, ieee80211_auth_setup, NULL); SYSINIT(wlan_auth, SI_SUB_DRIVERS, SI_ORDER_FIRST, ieee80211_auth_setup, NULL);
#endif
const struct ieee80211_authenticator * const struct ieee80211_authenticator *
ieee80211_authenticator_get(int auth) ieee80211_authenticator_get(int auth)