From 45011ff7f77e540b1a48e91a990f059e4418795f Mon Sep 17 00:00:00 2001 From: Srishti Piplani Date: Wed, 27 Mar 2019 14:29:44 +0530 Subject: [PATCH] [7570][7872][7885][9610] wlbt: Prevent issue in hal Changes done to fix prevent issues in hal. Break statements were missing in wifi_logger.cpp and wifi_nan.cpp files. Change-Id: Ie047e074c9554b4a0dbcdd4177ea8da54e79ad9e SCSC-Bug-Id: SSB-51047 Signed-off-by: Srishti Piplani --- wifi_logger.cpp | 6 +++--- wifi_nan.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wifi_logger.cpp b/wifi_logger.cpp index 4a30422..4ab5d74 100755 --- a/wifi_logger.cpp +++ b/wifi_logger.cpp @@ -1124,7 +1124,7 @@ public: it.get_type(), it.get_len()); } } - [[fallthrough]]; + break; case GET_DRIVER_DUMP : for (nl_iterator it(vendor_data); it.has_next(); it.next()) { if (it.get_type() == ENHANCE_LOGGER_ATTRIBUTE_DRIVER_DUMP_LEN) { @@ -1173,8 +1173,8 @@ public: it.get_type(), it.get_len()); } } - [[fallthrough]]; - case GET_FW_VER: + break; + case GET_FW_VER: case GET_DRV_VER: case GET_RING_DATA: case GET_RING_STATUS: diff --git a/wifi_nan.cpp b/wifi_nan.cpp index 6910549..3b608ec 100755 --- a/wifi_nan.cpp +++ b/wifi_nan.cpp @@ -475,7 +475,7 @@ class NanCommand : public WifiCommand { break; } } - [[fallthrough]]; + break; case NAN_EVT_ATTR_MATCH_CLUSTER_ATTRIBUTE_LEN: ind.cluster_attribute_len = nl_itr.get_u8(); break; @@ -484,7 +484,7 @@ class NanCommand : public WifiCommand { break; } } - + if (this->callbackEventHandler.EventMatch) this->callbackEventHandler.EventMatch(&ind); return NL_OK; -- 2.20.1