require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&RT2860_TX_RING_COUNT)) {
    sub RT2860_TX_RING_COUNT () {	64;}
}
unless(defined(&RT2860_RX_RING_COUNT)) {
    sub RT2860_RX_RING_COUNT () {	128;}
}
unless(defined(&RT2860_TX_POOL_COUNT)) {
    sub RT2860_TX_POOL_COUNT () {	( &RT2860_TX_RING_COUNT * 2);}
}
unless(defined(&RT2860_MAX_SCATTER)) {
    sub RT2860_MAX_SCATTER () {	(( &RT2860_TX_RING_COUNT * 2) - 1);}
}
unless(defined(&RT2860_WCID_MAX)) {
    sub RT2860_WCID_MAX () {	254;}
}
unless(defined(&RT2860_AID2WCID)) {
    sub RT2860_AID2WCID {
	my($aid) = @_;
	eval q((($aid) & 0xff));
    }
}
unless(defined(&RT2860_RX_RADIOTAP_PRESENT)) {
    sub RT2860_RX_RADIOTAP_PRESENT () {	(1<<  &IEEE80211_RADIOTAP_FLAGS | 1<<  &IEEE80211_RADIOTAP_RATE | 1<<  &IEEE80211_RADIOTAP_CHANNEL | 1<<  &IEEE80211_RADIOTAP_DBM_ANTSIGNAL | 1<<  &IEEE80211_RADIOTAP_ANTENNA | 1<<  &IEEE80211_RADIOTAP_DB_ANTSIGNAL);}
}
unless(defined(&RT2860_TX_RADIOTAP_PRESENT)) {
    sub RT2860_TX_RADIOTAP_PRESENT () {	(1<<  &IEEE80211_RADIOTAP_FLAGS | 1<<  &IEEE80211_RADIOTAP_RATE | 1<<  &IEEE80211_RADIOTAP_CHANNEL | 1<<  &IEEE80211_RADIOTAP_HWQUEUE);}
}
unless(defined(&RT2860_ENABLED)) {
    sub RT2860_ENABLED () {	(1<< 0);}
}
unless(defined(&RT2860_FWLOADED)) {
    sub RT2860_FWLOADED () {	(1<< 1);}
}
unless(defined(&RT2860_ADVANCED_PS)) {
    sub RT2860_ADVANCED_PS () {	(1<< 2);}
}
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;
