[Listener] Check autocalibration_nb_packets
Display a warning if the number of autocalibration packets to send is null.
This commit is contained in:
parent
55886734d5
commit
c1f4c4e77e
|
@ -481,15 +481,24 @@ void check_configuration()
|
||||||
SET_WIFI_IFACE(GET_RTAP_IFACE()) ;
|
SET_WIFI_IFACE(GET_RTAP_IFACE()) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GET_AUTOCALIBRATION() && GET_AUTOCALIBRATION_IP()[0] == '\0')
|
#ifdef USE_PTHREAD
|
||||||
|
if (GET_AUTOCALIBRATION())
|
||||||
{
|
{
|
||||||
if (GET_VERBOSE())
|
if (GET_AUTOCALIBRATION_IP()[0] == '\0')
|
||||||
fprintf(stderr, "No autocalibration IP specified, we will use"
|
{
|
||||||
" the aggregation IP as the destination of"
|
if (GET_VERBOSE())
|
||||||
" autocalibration requests.\n") ;
|
fprintf(stderr, "No autocalibration IP specified, we will"
|
||||||
SET_AUTOCALIBRATION_IP(GET_AGGREGATION_IP()) ;
|
" use the aggregation IP as the destination of"
|
||||||
|
" autocalibration requests.\n") ;
|
||||||
|
SET_AUTOCALIBRATION_IP(GET_AGGREGATION_IP()) ;
|
||||||
|
}
|
||||||
|
if (GET_AUTOCALIBRATION_NBPKT() < 1)
|
||||||
|
fprintf(stderr, "Warning! autocalibration_nb_packets is null,"
|
||||||
|
" no autocalibration request will be sent!\n") ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // USE_PTHREAD
|
||||||
|
|
||||||
// Port numbers //
|
// Port numbers //
|
||||||
if (GET_AGGREGATION_PORT() < 1 || GET_AGGREGATION_PORT() > 65535)
|
if (GET_AGGREGATION_PORT() < 1 || GET_AGGREGATION_PORT() > 65535)
|
||||||
{
|
{
|
||||||
|
@ -505,6 +514,7 @@ void check_configuration()
|
||||||
" failing back to the default value.\n") ;
|
" failing back to the default value.\n") ;
|
||||||
SET_LISTENING_PORT(LOC_REQUEST_DEFAULT_PORT) ;
|
SET_LISTENING_PORT(LOC_REQUEST_DEFAULT_PORT) ;
|
||||||
}
|
}
|
||||||
|
#ifdef USE_PTHREAD
|
||||||
if (GET_AUTOCALIBRATION_REQUEST_PORT() < 1 ||
|
if (GET_AUTOCALIBRATION_REQUEST_PORT() < 1 ||
|
||||||
GET_AUTOCALIBRATION_REQUEST_PORT() > 65535)
|
GET_AUTOCALIBRATION_REQUEST_PORT() > 65535)
|
||||||
{
|
{
|
||||||
|
@ -521,6 +531,7 @@ void check_configuration()
|
||||||
" failing back to the default value.\n") ;
|
" failing back to the default value.\n") ;
|
||||||
SET_AUTOCALIBRATION_PORT(DEFAULT_AUTOCALIBRATION_PORT) ;
|
SET_AUTOCALIBRATION_PORT(DEFAULT_AUTOCALIBRATION_PORT) ;
|
||||||
}
|
}
|
||||||
|
#endif // USE_PTHREAD
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue