Print this page
fixup .text where possible
7127  remove -Wno-missing-braces from Makefile.uts


  50 { WIFI_STAT_TX_FAILED,          "tx_failed",            KSTAT_DATA_UINT32, 0 },
  51 { WIFI_STAT_TX_RETRANS,         "tx_retrans",           KSTAT_DATA_UINT32, 0 },
  52 { WIFI_STAT_TX_RERETRANS,       "tx_reretrans",         KSTAT_DATA_UINT32, 0 },
  53 { WIFI_STAT_RTS_SUCCESS,        "rts_success",          KSTAT_DATA_UINT32, 0 },
  54 { WIFI_STAT_RTS_FAILURE,        "rts_failure",          KSTAT_DATA_UINT32, 0 },
  55 { WIFI_STAT_ACK_FAILURE,        "ack_failure",          KSTAT_DATA_UINT32, 0 },
  56 { WIFI_STAT_RX_FRAGS,           "rx_frags",             KSTAT_DATA_UINT32, 0 },
  57 { WIFI_STAT_MCAST_RX,           "mcast_rx",             KSTAT_DATA_UINT32, 0 },
  58 { WIFI_STAT_FCS_ERRORS,         "fcs_errors",           KSTAT_DATA_UINT32, 0 },
  59 { WIFI_STAT_WEP_ERRORS,         "wep_errors",           KSTAT_DATA_UINT32, 0 },
  60 { WIFI_STAT_RX_DUPS,            "rx_dups",              KSTAT_DATA_UINT32, 0 }
  61 };
  62 
  63 static struct modlmisc mac_wifi_modlmisc = {
  64         &mod_miscops,
  65         "WiFi MAC plugin 1.4"
  66 };
  67 
  68 static struct modlinkage mac_wifi_modlinkage = {
  69         MODREV_1,
  70         &mac_wifi_modlmisc,
  71         NULL
  72 };
  73 
  74 static mactype_ops_t mac_wifi_type_ops;
  75 
  76 int
  77 _init(void)
  78 {
  79         mactype_register_t *mtrp = mactype_alloc(MACTYPE_VERSION);
  80         int err;
  81 
  82         /*
  83          * If `mtrp' is NULL, then this plugin is not compatible with
  84          * the system's MAC Type plugin framework.
  85          */
  86         if (mtrp == NULL)
  87                 return (ENOTSUP);
  88 
  89         mtrp->mtr_ops                = &mac_wifi_type_ops;
  90         mtrp->mtr_ident              = MAC_PLUGIN_IDENT_WIFI;
  91         mtrp->mtr_mactype    = DL_ETHER;




  50 { WIFI_STAT_TX_FAILED,          "tx_failed",            KSTAT_DATA_UINT32, 0 },
  51 { WIFI_STAT_TX_RETRANS,         "tx_retrans",           KSTAT_DATA_UINT32, 0 },
  52 { WIFI_STAT_TX_RERETRANS,       "tx_reretrans",         KSTAT_DATA_UINT32, 0 },
  53 { WIFI_STAT_RTS_SUCCESS,        "rts_success",          KSTAT_DATA_UINT32, 0 },
  54 { WIFI_STAT_RTS_FAILURE,        "rts_failure",          KSTAT_DATA_UINT32, 0 },
  55 { WIFI_STAT_ACK_FAILURE,        "ack_failure",          KSTAT_DATA_UINT32, 0 },
  56 { WIFI_STAT_RX_FRAGS,           "rx_frags",             KSTAT_DATA_UINT32, 0 },
  57 { WIFI_STAT_MCAST_RX,           "mcast_rx",             KSTAT_DATA_UINT32, 0 },
  58 { WIFI_STAT_FCS_ERRORS,         "fcs_errors",           KSTAT_DATA_UINT32, 0 },
  59 { WIFI_STAT_WEP_ERRORS,         "wep_errors",           KSTAT_DATA_UINT32, 0 },
  60 { WIFI_STAT_RX_DUPS,            "rx_dups",              KSTAT_DATA_UINT32, 0 }
  61 };
  62 
  63 static struct modlmisc mac_wifi_modlmisc = {
  64         &mod_miscops,
  65         "WiFi MAC plugin 1.4"
  66 };
  67 
  68 static struct modlinkage mac_wifi_modlinkage = {
  69         MODREV_1,
  70         {   &mac_wifi_modlmisc,
  71             NULL }
  72 };
  73 
  74 static mactype_ops_t mac_wifi_type_ops;
  75 
  76 int
  77 _init(void)
  78 {
  79         mactype_register_t *mtrp = mactype_alloc(MACTYPE_VERSION);
  80         int err;
  81 
  82         /*
  83          * If `mtrp' is NULL, then this plugin is not compatible with
  84          * the system's MAC Type plugin framework.
  85          */
  86         if (mtrp == NULL)
  87                 return (ENOTSUP);
  88 
  89         mtrp->mtr_ops                = &mac_wifi_type_ops;
  90         mtrp->mtr_ident              = MAC_PLUGIN_IDENT_WIFI;
  91         mtrp->mtr_mactype    = DL_ETHER;