[7570][7872][7885][9610] wlbt: Prevent issue in hal
authorSrishti Piplani <srishti.p@samsung.com>
Wed, 27 Mar 2019 08:59:44 +0000 (14:29 +0530)
committerTarun Karela <t.karela@samsung.com>
Fri, 26 Apr 2019 12:26:08 +0000 (13:26 +0100)
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 <srishti.p@samsung.com>
wifi_logger.cpp
wifi_nan.cpp

index 4a3042232987e289fb2b0bff0322f2e6f05e7c14..4ab5d740a14aeb3dbf32e54a56f3bfc1456d1bdd 100755 (executable)
@@ -1124,7 +1124,7 @@ public:
                            it.get_type(), it.get_len());\r
                      }\r
                  }\r
-               [[fallthrough]];\r
+                 break;\r
             case GET_DRIVER_DUMP :\r
                  for (nl_iterator it(vendor_data); it.has_next(); it.next()) {\r
                      if (it.get_type() == ENHANCE_LOGGER_ATTRIBUTE_DRIVER_DUMP_LEN) {\r
@@ -1173,8 +1173,8 @@ public:
                            it.get_type(), it.get_len());\r
                      }\r
                  }\r
-                [[fallthrough]];\r
-           case GET_FW_VER:\r
+                 break;\r
+            case GET_FW_VER:\r
             case GET_DRV_VER:\r
             case GET_RING_DATA:\r
             case GET_RING_STATUS:\r
index 69105496e83eb2ceb45ce1a155728d6f76b0db66..3b608ec570030f7d0d4f2e073303af7f5d5ce1bc 100755 (executable)
@@ -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;