require '_h2ph_pre.ph';

no warnings 'redefine';

require 'dev/ic/if_wi_hostap.ph';
unless(defined(&wi_cmd)) {
    sub wi_cmd () {	 ($sc->{sc_funcs}->{f_cmd});}
}
unless(defined(&wi_read_record)) {
    sub wi_read_record () {	 ($sc->{sc_funcs}->{f_read_record});}
}
unless(defined(&wi_write_record)) {
    sub wi_write_record () {	 ($sc->{sc_funcs}->{f_write_record});}
}
unless(defined(&wi_alloc_nicmem)) {
    sub wi_alloc_nicmem () {	 ($sc->{sc_funcs}->{f_alloc_nicmem});}
}
unless(defined(&wi_read_data)) {
    sub wi_read_data () {	 ($sc->{sc_funcs}->{f_read_data});}
}
unless(defined(&wi_write_data)) {
    sub wi_write_data () {	 ($sc->{sc_funcs}->{f_write_data});}
}
unless(defined(&wi_get_fid)) {
    sub wi_get_fid () {	 ($sc->{sc_funcs}->{f_get_fid});}
}
unless(defined(&wi_init)) {
    sub wi_init () {	 ($sc->{sc_funcs}->{f_init});}
}
unless(defined(&WI_FLAGS_ATTACHED)) {
    sub WI_FLAGS_ATTACHED () {	0x1;}
}
unless(defined(&WI_FLAGS_INITIALIZED)) {
    sub WI_FLAGS_INITIALIZED () {	0x2;}
}
unless(defined(&WI_FLAGS_HAS_WEP)) {
    sub WI_FLAGS_HAS_WEP () {	0x4;}
}
unless(defined(&WI_FLAGS_HAS_IBSS)) {
    sub WI_FLAGS_HAS_IBSS () {	0x8;}
}
unless(defined(&WI_FLAGS_HAS_CREATE_IBSS)) {
    sub WI_FLAGS_HAS_CREATE_IBSS () {	0x10;}
}
unless(defined(&WI_FLAGS_HAS_MOR)) {
    sub WI_FLAGS_HAS_MOR () {	0x20;}
}
unless(defined(&WI_FLAGS_HAS_ROAMING)) {
    sub WI_FLAGS_HAS_ROAMING () {	0x40;}
}
unless(defined(&WI_FLAGS_HAS_DIVERSITY)) {
    sub WI_FLAGS_HAS_DIVERSITY () {	0x80;}
}
unless(defined(&WI_FLAGS_HAS_HOSTAP)) {
    sub WI_FLAGS_HAS_HOSTAP () {	0x100;}
}
unless(defined(&WI_FLAGS_BUS_PCMCIA)) {
    sub WI_FLAGS_BUS_PCMCIA () {	0x200;}
}
unless(defined(&WI_FLAGS_BUS_USB)) {
    sub WI_FLAGS_BUS_USB () {	0x400;}
}
unless(defined(&WI_FLAGS_HAS_ENH_SECURITY)) {
    sub WI_FLAGS_HAS_ENH_SECURITY () {	0x800;}
}
unless(defined(&WI_FLAGS_TXPOWER)) {
    sub WI_FLAGS_TXPOWER () {	0x1000;}
}
unless(defined(&WI_PRT_FMT)) {
    sub WI_PRT_FMT () {	"%s";}
}
unless(defined(&WI_PRT_ARG)) {
    sub WI_PRT_ARG {
	my($sc) = @_;
	eval q(($sc)-> ($sc_dev->{dv_xname}));
    }
}
1;
