software/drivers/sd8887/src/wlan/mlan/mlan_11h.c
/**
 *  @brief Enable or Disable the 11h extensions in the firmware
 *
 *  @param priv         Private driver information structure
 *  @param pioctl_buf   A pointer to MLAN IOCTL Request buffer
 *  @param flag         Enable 11h if MTRUE, disable otherwise
 *
 *  @return      MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
 */
@brief Enable or Disable the 11h extensions in the firmware
@param priv         Private driver information structure
@param pioctl_buf   A pointer to MLAN IOCTL Request buffer
@param flag         Enable 11h if MTRUE, disable otherwise


@brief Enable or Disable the 11h extensions in the firmware @param priv Private driver information structure @param pioctl_buf A pointer to MLAN IOCTL Request buffer @param flag Enable 11h if MTRUE disable otherwise
mlan_status
wlan_11h_activate(mlan_private *priv, t_void *pioctl_buf, t_bool flag)
{
	t_u32 enable = flag & ENABLE_11H_MASK;
	mlan_status ret = MLAN_STATUS_SUCCESS;
	ENTER();
	enable |= wlan_11h_get_current_radar_detect_flags(priv->adapter);
	ret = wlan_prepare_cmd(priv,
			       HostCmd_CMD_802_11_SNMP_MIB,
			       HostCmd_ACT_GEN_SET,
			       Dot11H_i, (t_void *)pioctl_buf, &enable);
	if (ret)
		ret = MLAN_STATUS_FAILURE;
	else
		priv->intf_state_11h.is_11h_active = flag;
	PRINTM(MINFO, "11h: %s\n", flag ? "Activate" : "Deactivate");
	LEAVE();
	return ret;
}
mlan_status wlan_11h_activate ( mlan_private * priv , t_void * pioctl_buf , t_bool flag ) { t_u32 enable = flag & ENABLE_11H_MASK ; mlan_status ret = MLAN_STATUS_SUCCESS ; ENTER ( ) ; enable |= wlan_11h_get_current_radar_detect_flags ( priv -> adapter ) ; ret = wlan_prepare_cmd ( priv , HostCmd_CMD_802_11_SNMP_MIB , HostCmd_ACT_GEN_SET , Dot11H_i , ( t_void * ) pioctl_buf , & enable ) ; if ( ret ) ret = MLAN_STATUS_FAILURE ; else priv -> intf_state_11h . is_11h_active = flag ; PRINTM ( MINFO , " \n " , flag ? " " : " " ) ; LEAVE ( ) ; return ret ; }
@brief Enable or Disable the 11h extensions in the firmware
  @param priv         Private driver information structure
  @param pioctl_buf   A pointer to MLAN IOCTL Request buffer
  @param flag         Enable 11h if MTRUE, disable otherwise
@brief Enable or Disable the 11h extensions in the firmware @param priv Private driver information structure @param pioctl_buf A pointer to MLAN IOCTL Request buffer @param flag Enable 11h if MTRUE disable otherwise
/* add bits for master/slave radar detect into enable. */ /*
	 * Send cmd to FW to enable/disable 11h function in firmware
	 */ /* Set boolean flag in driver 11h state */