memcpy(regdomain, &hal->ah_capabilities.cap_regdomain.reg_current, sizeof(ieee80211_regdomain_t));
regdomain = hal->ah_capabilities.cap_regdomain.reg_current;
ar5k_eeprom_regulation_domain(hal, write, regdomain)	struct ath_hal *hal;	HAL_BOOL write;	ieee80211_regdomain_t *regdomain;{	/* Read current value */	if (write != AH_TRUE) {		memcpy(regdomain,		    &hal->ah_capabilities.cap_regdomain.reg_current,		    sizeof(ieee80211_regdomain_t));		return (AH_TRUE);	}	/* Try to write a new value */	memcpy(&hal->ah_capabilities.cap_regdomain.reg_current, regdomain,	    sizeof(ieee80211_regdomain_t));	if (hal->ah_capabilities.cap_eeprom.ee_protect &	    AR5K_EEPROM_PROTECT_WR_128_191)		return (AH_FALSE);	hal->ah_capabilities.cap_eeprom.ee_regdomain =	    ar5k_regdomain_from_ieee(regdomain);	if (hal->ah_eeprom_write(hal, AR5K_EEPROM_REG_DOMAIN,		hal->ah_capabilities.cap_eeprom.ee_regdomain) != 0) 		return (AH_FALSE);	return (AH_TRUE);}