require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&WPI_RX_RADIOTAP_PRESENT)) {
    sub WPI_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) | (1<<  &IEEE80211_RADIOTAP_ANTENNA));}
}
unless(defined(&WPI_TX_RADIOTAP_PRESENT)) {
    sub WPI_TX_RADIOTAP_PRESENT () {	((1<<  &IEEE80211_RADIOTAP_FLAGS) | (1<<  &IEEE80211_RADIOTAP_RATE) | (1<<  &IEEE80211_RADIOTAP_CHANNEL) | (1<<  &IEEE80211_RADIOTAP_HWQUEUE));}
}
unless(defined(&WPI_SAMPLES_COUNT)) {
    sub WPI_SAMPLES_COUNT () {	5;}
}
unless(defined(&WPI_FLAG_HAS_5GHZ)) {
    sub WPI_FLAG_HAS_5GHZ () {	(1<< 0);}
}
unless(defined(&WPI_FLAG_BUSY)) {
    sub WPI_FLAG_BUSY () {	(1<< 1);}
}
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;
