The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use Test::More;
BEGIN { plan tests => 3 };
use Net::Lorcon qw(:all);

my @cards = Net::Lorcon::getcardlist();

ok(@cards > 1 && grep { /madwifi/ } @cards, "Cards listed");

# Assumes it's safe to call init (which it is with current Lorcon)
my $tx = Net::Lorcon->new("eth1", "madwifi");

ok($tx->isa("Net::Lorcon"), "object isa Net::Lorcon");

ok($tx->getcapabilities & TX80211_CAP_TRANSMIT, "can transmit");