require '_h2ph_pre.ph';

no warnings 'redefine';

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_RBUF_COUNT)) {
    sub WPI_RBUF_COUNT () {	( &WPI_RX_RING_COUNT + 16);}
}
unless(defined(&WPI_FLAG_FW_INITED)) {
    sub WPI_FLAG_FW_INITED () {	(1<< 0);}
}
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;
