require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&IWN_RX_RADIOTAP_PRESENT)) {
    sub IWN_RX_RADIOTAP_PRESENT () {	((1<<  &IEEE80211_RADIOTAP_TSFT) | (1<<  &IEEE80211_RADIOTAP_FLAGS) | (1<<  &IEEE80211_RADIOTAP_RATE) | (1<<  &IEEE80211_RADIOTAP_CHANNEL) | (1<<  &IEEE80211_RADIOTAP_DBM_ANTSIGNAL) | (1<<  &IEEE80211_RADIOTAP_DBM_ANTNOISE));}
}
unless(defined(&IWN_TX_RADIOTAP_PRESENT)) {
    sub IWN_TX_RADIOTAP_PRESENT () {	((1<<  &IEEE80211_RADIOTAP_FLAGS) | (1<<  &IEEE80211_RADIOTAP_RATE) | (1<<  &IEEE80211_RADIOTAP_CHANNEL) | (1<<  &IEEE80211_RADIOTAP_HWQUEUE));}
}
unless(defined(&IWN_RBUF_COUNT)) {
    sub IWN_RBUF_COUNT () {	( &IWN_RX_RING_COUNT + 32);}
}
unless(defined(&IWN_CALIB_STATE_INIT)) {
    sub IWN_CALIB_STATE_INIT () {	0;}
}
unless(defined(&IWN_CALIB_STATE_ASSOC)) {
    sub IWN_CALIB_STATE_ASSOC () {	1;}
}
unless(defined(&IWN_CALIB_STATE_RUN)) {
    sub IWN_CALIB_STATE_RUN () {	2;}
}
unless(defined(&IWN_CCK_STATE_INIT)) {
    sub IWN_CCK_STATE_INIT () {	0;}
}
unless(defined(&IWN_CCK_STATE_LOFA)) {
    sub IWN_CCK_STATE_LOFA () {	1;}
}
unless(defined(&IWN_CCK_STATE_HIFA)) {
    sub IWN_CCK_STATE_HIFA () {	2;}
}
if((defined(&NBPFILTER) ? &NBPFILTER : 0) > 0) {
    eval 'sub sc_rxtap () { ($sc_rxtapu->{th});}' unless defined(&sc_rxtap);
    eval 'sub sc_txtap () { ($sc_txtapu->{th});}' unless defined(&sc_txtap);
}
1;
