diff options
| author | CNSS_WLAN Service <cnssbldsw@qualcomm.com> | 2017-09-13 17:41:11 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-09-13 17:41:11 -0700 |
| commit | 75e63362e35e4581621e80fc2a8737a2a019340c (patch) | |
| tree | 69c8cc912c44225d934a212afa0e46ba02915649 | |
| parent | 9343072bf70ab2befdbabfa765c7e61f296ab14f (diff) | |
| parent | 52bde3897a1af76c0af7f39586a757bc2c53351d (diff) | |
Merge "qcacmn: Add target type for adrastea chip" into wlan-cmn.driver.lnx.1.0
| -rw-r--r-- | hif/inc/hif.h | 3 | ||||
| -rw-r--r-- | hif/src/hif_main.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/hif/inc/hif.h b/hif/inc/hif.h index 6c513e3e05b2..86c16bd3ffc1 100644 --- a/hif/inc/hif.h +++ b/hif/inc/hif.h @@ -92,9 +92,10 @@ typedef void *hif_handle_t; #define TARGET_TYPE_AR6320V3 16 /* For Tufello1.0 target_reg_tbl ID*/ #define TARGET_TYPE_QCA9377V1 17 +#endif /* CONFIG_WIN */ + /* For Adrastea target */ #define TARGET_TYPE_ADRASTEA 19 -#endif #ifdef IPA_OFFLOAD #define DMA_COHERENT_MASK_IPA_VER_3_AND_ABOVE 37 diff --git a/hif/src/hif_main.c b/hif/src/hif_main.c index a667c27cd18e..aa3d05883cbc 100644 --- a/hif/src/hif_main.c +++ b/hif/src/hif_main.c @@ -723,6 +723,11 @@ int hif_get_device_type(uint32_t device_id, ret = -ENODEV; break; } + + if (*target_type == TARGET_TYPE_UNKNOWN) { + HIF_ERROR("%s: Unsupported target_type!", __func__); + ret = -ENODEV; + } end: return ret; } |
