HW_VAR_SET_OPMODE
rtw_hal_set_hwreg(padapter, HW_VAR_SET_OPMODE, (u8 *)(&type));
case HW_VAR_SET_OPMODE: