require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&RUN_MAX_RXSZ)) {
    sub RUN_MAX_RXSZ () {	4096;}
}
if(0) {
}
unless(defined(&RUN_MAX_TXSZ)) {
    sub RUN_MAX_TXSZ () {	($sizeof{'struct rt2870_txd'} + $sizeof{'struct rt2860_rxwi'} +  &MCLBYTES + 11);}
}
unless(defined(&RUN_TX_TIMEOUT)) {
    sub RUN_TX_TIMEOUT () {	5000;}
}
unless(defined(&RUN_RX_RING_COUNT)) {
    sub RUN_RX_RING_COUNT () {	1;}
}
unless(defined(&RUN_TX_RING_COUNT)) {
    sub RUN_TX_RING_COUNT () {	8;}
}
unless(defined(&RT2870_WCID_MAX)) {
    sub RT2870_WCID_MAX () {	253;}
}
unless(defined(&RUN_AID2WCID)) {
    sub RUN_AID2WCID {
	my($aid) = @_;
	eval q((($aid) & 0xff));
    }
}
unless(defined(&RUN_RX_RADIOTAP_PRESENT)) {
    sub RUN_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(&RUN_TX_RADIOTAP_PRESENT)) {
    sub RUN_TX_RADIOTAP_PRESENT () {	(1<<  &IEEE80211_RADIOTAP_FLAGS | 1<<  &IEEE80211_RADIOTAP_RATE | 1<<  &IEEE80211_RADIOTAP_CHANNEL | 1<<  &IEEE80211_RADIOTAP_HWQUEUE);}
}
unless(defined(&RUN_HOST_CMD_RING_COUNT)) {
    sub RUN_HOST_CMD_RING_COUNT () {	32;}
}
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;
