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:
Zane C. B-H 2011-08-19 10:49:23 +00:00
parent 8e7c589e6c
commit 286a1b8375
1 changed files with 7 additions and 0 deletions

View File

@ -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;