[PATCH 2/3] Do not send FEATURE_CAPS_EXCHANGE to old FW
Eugene Krasnikov
k.eugene.e at gmail.com
Tue Jul 16 12:34:35 EDT 2013
Only latest FW supports smd command FEATURE_CAPS_EXCHANGE.
Do not send this command for old FW version.
Signed-off-by: Eugene Krasnikov <k.eugene.e at gmail.com>
---
main.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/main.c b/main.c
index 89055cb..a9f2209 100644
--- a/main.c
+++ b/main.c
@@ -246,9 +246,13 @@ static int wcn36xx_start(struct ieee80211_hw *hw)
}
wcn36xx_pmc_init(wcn);
wcn36xx_debugfs_init(wcn);
- ret = wcn36xx_smd_feature_caps_exchange(wcn);
- if (ret) {
- wcn36xx_warn("Exchange feature caps failed");
+ if (!(wcn->fw_major == 1 &&
+ wcn->fw_minor == 2 &&
+ wcn->fw_version == 2 &&
+ wcn->fw_revision == 24)) {
+ ret = wcn36xx_smd_feature_caps_exchange(wcn);
+ if (ret)
+ wcn36xx_warn("Exchange feature caps failed");
}
return 0;
--
1.7.11.3
More information about the wcn36xx
mailing list