software/drivers/sd8887/src/wlan/mapp/mlanutl/mlanroamagent.c
/**
 *  @brief          Issue getra backoff command
 *
 *  @param argc     number of arguments
 *  @param argv     A pointer to arguments array
 *  @param control  roma control indicator value
 *
 *  @return         MLAN_STATUS_SUCCESS--success, otherwise--fail
 */
@brief          Issue getra backoff command
@param argc     number of arguments
@param argv     A pointer to arguments array
@param control  roma control indicator value


@brief Issue getra backoff command @param argc number of arguments @param argv A pointer to arguments array @param control roma control indicator value
static int
roamGetBackOff(int argc, char *argv[])
{
	HostCmd_DS_CMD_ROAMAGENT_BACKOFF backoffcmd;
	if (getBackOff(&backoffcmd) != MLAN_STATUS_SUCCESS) {
		return MLAN_STATUS_FAILURE;
	}
	puts("");
	printf("----------------------------------------------------\n");
	printf("           Scanning Backoff Parameters              \n");
	printf("----------------------------------------------------\n");
	printf(" Backoff period (max time in tracking) = %d ms\n",
	       backoffcmd.Period);
	printf(" # of discovery scans before backoff   = %d\n",
	       backoffcmd.Scans);
	puts("");
	if (backoffcmd.Scans) {
		printf(" - Discovery backoff mode is enabled.\n"
		       "   After %d discovery scans without a change in the number\n"
		       "   of neighbors, the RA will only track the existing\n"
		       "   neighbors until the backoff period expires.\n",
		       backoffcmd.Scans);
	} else {
		printf(" - Discovery backoff mode is disabled.\n"
		       "   The RA will only move to tracking mode if a minimum\n"
		       "   number of good neighbors have been found. See the\n"
		       "   getra neighbor command for the current min setting.\n");
	}
	puts("");
	return MLAN_STATUS_SUCCESS;
}
static int roamGetBackOff ( int argc , char * argv [ ] ) { HostCmd_DS_CMD_ROAMAGENT_BACKOFF backoffcmd ; if ( getBackOff ( & backoffcmd ) != MLAN_STATUS_SUCCESS ) { return MLAN_STATUS_FAILURE ; } puts ( " " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " , backoffcmd . Period ) ; printf ( " \n " , backoffcmd . Scans ) ; puts ( " " ) ; if ( backoffcmd . Scans ) { printf ( " \n " " \n " " \n " " \n " , backoffcmd . Scans ) ; } else { printf ( " \n " " \n " " \n " " \n " ) ; } puts ( " " ) ; return MLAN_STATUS_SUCCESS ; }
@brief          Issue getra backoff command
  @param argc     number of arguments
  @param argv     A pointer to arguments array
  @param control  roma control indicator value
@brief Issue getra backoff command @param argc number of arguments @param argv A pointer to arguments array @param control roma control indicator value