vnt_set_deep_sleep(priv);
+ vnt_mac_reg_bits_on(priv, MAC_REG_GPIOCTL1, GPIO3_INTMD);
+
return ret;
}
{
int ret = true;
- if (priv->bHWRadioOff == true)
- return false;
-
vnt_exit_deep_sleep(priv);
vnt_mac_reg_bits_on(priv, MAC_REG_HOSTCR, HOSTCR_RXON);
break;
}
+ vnt_mac_reg_bits_off(priv, MAC_REG_GPIOCTL1, GPIO3_INTMD);
+
return ret;
}
vnt_set_short_slot_time(priv);
priv->byRadioCtl = priv->abyEEPROM[EEP_OFS_RADIOCTL];
- priv->bHWRadioOff = false;
if ((priv->byRadioCtl & EEP_RADIOCTL_ENABLE) != 0) {
status = vnt_control_in(priv, MESSAGE_TYPE_READ,
if (status != STATUS_SUCCESS)
return false;
- if ((tmp & GPIO3_DATA) == 0) {
- priv->bHWRadioOff = true;
+ if ((tmp & GPIO3_DATA) == 0)
vnt_mac_reg_bits_on(priv, MAC_REG_GPIOCTL1,
GPIO3_INTMD);
- } else {
+ else
vnt_mac_reg_bits_off(priv, MAC_REG_GPIOCTL1,
GPIO3_INTMD);
- priv->bHWRadioOff = false;
- }
-
}
vnt_mac_set_led(priv, LEDSTS_TMLEN, 0x38);
vnt_mac_reg_bits_on(priv, MAC_REG_GPIOCTL0, 0x01);
- if (priv->bHWRadioOff == true) {
- vnt_radio_power_off(priv);
- } else {
- vnt_radio_power_on(priv);
- }
+ vnt_radio_power_on(priv);
dev_dbg(&priv->usb->dev, "<----INIbInitAdapter Exit\n");