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
roamGetEventBitmap(int argc, char *argv[])
{
	t_u8 hostevent;
	HostCmd_DS_CMD_ROAMAGENT_CONTROL roamcontrolcmd;
	if (getControl(&roamcontrolcmd) != MLAN_STATUS_SUCCESS) {
		return MLAN_STATUS_FAILURE;
	}
	hostevent = roamcontrolcmd.HostEvent;
	if (!(hostevent | 0)) {
		puts("\nHost events are disabled.\n");
		return MLAN_STATUS_SUCCESS;
	}
	printf("\nHost events enabled: ");
	if (hostevent & HOST_EVENT_NBOR_ENABLE)
		printf("neighbor ");
	if (hostevent & HOST_EVENT_ROAM_ENABLE)
		printf("roam ");
	if (hostevent & HOST_EVENT_STATE_ENABLE)
		printf("state");
	printf("\n");
	return MLAN_STATUS_SUCCESS;
}
static int roamGetEventBitmap ( int argc , char * argv [ ] ) { t_u8 hostevent ; HostCmd_DS_CMD_ROAMAGENT_CONTROL roamcontrolcmd ; if ( getControl ( & roamcontrolcmd ) != MLAN_STATUS_SUCCESS ) { return MLAN_STATUS_FAILURE ; } hostevent = roamcontrolcmd . HostEvent ; if ( ! ( hostevent | 0 ) ) { puts ( " \n \n " ) ; return MLAN_STATUS_SUCCESS ; } printf ( " \n " ) ; if ( hostevent & HOST_EVENT_NBOR_ENABLE ) printf ( " " ) ; if ( hostevent & HOST_EVENT_ROAM_ENABLE ) printf ( " " ) ; if ( hostevent & HOST_EVENT_STATE_ENABLE ) printf ( " " ) ; 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