minor fix for the get_capability method
git-svn-id: svn://127.0.0.1/Perl/Net::Wireless::802_11::WPA::CLI/trunk@536 0c1c3402-1be1-de11-8092-0022686faf23
This commit is contained in:
parent
8e7c589e6c
commit
286a1b8375
|
@ -362,6 +362,13 @@ sub get_capability{
|
|||
return undef;
|
||||
}
|
||||
|
||||
if(!defined( $request )){
|
||||
$self->{error}=4;
|
||||
$self->{errorString}='No request specified';
|
||||
$self->warn;
|
||||
return undef;
|
||||
}
|
||||
|
||||
#return if the netword ID is not numeric.
|
||||
if(!defined( $self->{capabilities}{$request} )){
|
||||
$self->{error}=4;
|
||||
|
|
Loading…
Reference in New Issue