require '_h2ph_pre.ph';

no warnings qw(redefine misc);

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_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;}
}
unless(defined(&IEEE80211_NO_HT)) {
}
unless(defined(&IWN_FLAG_HAS_5GHZ)) {
    sub IWN_FLAG_HAS_5GHZ () {	(1<< 0);}
}
unless(defined(&IWN_FLAG_HAS_OTPROM)) {
    sub IWN_FLAG_HAS_OTPROM () {	(1<< 1);}
}
unless(defined(&IWN_FLAG_CALIB_DONE)) {
    sub IWN_FLAG_CALIB_DONE () {	(1<< 2);}
}
unless(defined(&IWN_FLAG_USE_ICT)) {
    sub IWN_FLAG_USE_ICT () {	(1<< 3);}
}
unless(defined(&IWN_FLAG_INTERNAL_PA)) {
    sub IWN_FLAG_INTERNAL_PA () {	(1<< 4);}
}
if((defined(&NBPFILTER) ? &NBPFILTER : undef) > 0) {
    eval 'sub sc_rxtap () { ($sc_rxtapu->{th});}' unless defined(&sc_rxtap);
    eval 'sub sc_txtap () { ($sc_txtapu->{th});}' unless defined(&sc_txtap);
}
1;
