summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAjay Davanageri <ajay.davanageri@broadcom.com>2022-02-14 13:17:42 +0530
committerPaul Chen <chenpaul@google.com>2022-03-10 02:10:59 +0000
commit876b5f70e2dca82c7f0019f993cd68f3aec02836 (patch)
tree80e2a68c2ba26c26a294116e2ca843fade7a19fd
parent964254ebe352704dd65fafe644bf1824a3841f6f (diff)
downloadwlan-876b5f70e2dca82c7f0019f993cd68f3aec02836.tar.gz
Fix for second enable failure to handle the instant mode channel.
Bug: 219106895 Test: Verified ACTS on oriole platform Signed-off-by: Ajay Davanageri <ajay.davanageri@broadcom.com> Change-Id: Ibd74ea10e51c0438f0f24cfad8eb7527fbd365f4 (cherry picked from commit b9d7856f62d9daf1c0326964e044efb4f7ee9c32) Merged-In: Ibd74ea10e51c0438f0f24cfad8eb7527fbd365f4
-rwxr-xr-xbcmdhd/wifi_hal/nan.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/bcmdhd/wifi_hal/nan.cpp b/bcmdhd/wifi_hal/nan.cpp
index 475c697..8fea66b 100755
--- a/bcmdhd/wifi_hal/nan.cpp
+++ b/bcmdhd/wifi_hal/nan.cpp
@@ -3254,13 +3254,15 @@ class NanMacControl : public WifiCommand
}
}
- if (mParams->config_instant_mode_channel) {
+ if (mParams->enable_instant_mode && mParams->config_instant_mode_channel
+ && mParams->instant_mode_channel) {
result = request.put_u32(NAN_ATTRIBUTE_INSTANT_COMM_CHAN,
mParams->instant_mode_channel);
if (result < 0) {
ALOGE("%s: Failing in config instant channel, result = %d\n", __func__, result);
return result;
}
+ ALOGI("%s: instant mode channel = %d\n", __func__, mParams->instant_mode_channel);
}
request.attr_end(data);
@@ -3868,7 +3870,6 @@ static int get_svc_hash(unsigned char *svc_name,
return WIFI_SUCCESS;
}
-#ifdef CONFIG_BRCM
static int dump_NanEnableRequest(NanEnableRequest* msg)
{
ALOGI("%s: Dump NanEnableRequest msg:\n", __func__);
@@ -3974,6 +3975,7 @@ static int dump_NanEnableRequest(NanEnableRequest* msg)
return WIFI_SUCCESS;
}
+#ifdef CONFIG_BRCM
static int dump_NanConfigRequestRequest(NanConfigRequest* msg)
{
ALOGI("%s: Dump NanConfigRequest msg:\n", __func__);