software/drivers/sd8887/src/wlan/mapp/mlanutl/mlanroamagent.c
/**
 *  @brief          Issue getra 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 command
@param argc     number of arguments
@param argv     A pointer to arguments array
@param control  roma control indicator value


@brief Issue getra command @param argc number of arguments @param argv A pointer to arguments array @param control roma control indicator value
static int
roamGetControl(int argc, char *argv[])
{
	t_u8 control;
	HostCmd_DS_CMD_ROAMAGENT_CONTROL roamcontrolcmd;
	if (getControl(&roamcontrolcmd) != MLAN_STATUS_SUCCESS) {
		return MLAN_STATUS_FAILURE;
	}
	control = roamcontrolcmd.Control;
	printf("\nGlobal roaming agent state: ");
	if (control & ROAM_CONTROL_ENABLE) {
		printf("enabled, ");
		if (control & ROAM_CONTROL_SUSPEND)
			printf("suspend.\n");
		else
			printf("resume.\n");
	} else
		printf("disabled.\n");
	printf("Crossband: ");
	if (control & CROSSBAND_ENABLE)
		printf("enabled.\n");
	else
		printf("disabled.\n");
	return MLAN_STATUS_SUCCESS;
}
static int roamGetControl ( int argc , char * argv [ ] ) { t_u8 control ; HostCmd_DS_CMD_ROAMAGENT_CONTROL roamcontrolcmd ; if ( getControl ( & roamcontrolcmd ) != MLAN_STATUS_SUCCESS ) { return MLAN_STATUS_FAILURE ; } control = roamcontrolcmd . Control ; printf ( " \n " ) ; if ( control & ROAM_CONTROL_ENABLE ) { printf ( " " ) ; if ( control & ROAM_CONTROL_SUSPEND ) printf ( " \n " ) ; else printf ( " \n " ) ; } else printf ( " \n " ) ; printf ( " " ) ; if ( control & CROSSBAND_ENABLE ) printf ( " \n " ) ; else printf ( " \n " ) ; return MLAN_STATUS_SUCCESS ; }
@brief          Issue getra command
  @param argc     number of arguments
  @param argv     A pointer to arguments array
  @param control  roma control indicator value
@brief Issue getra command @param argc number of arguments @param argv A pointer to arguments array @param control roma control indicator value