OSDN Git Service

Wifi: Corrected NanSRFState enum type
authorAmarnath Hullur Subramanyam <amarnath@codeaurora.org>
Tue, 23 Aug 2016 22:53:48 +0000 (15:53 -0700)
committerAmarnath Hullur Subramanyam <amarnath@codeaurora.org>
Tue, 23 Aug 2016 23:10:11 +0000 (16:10 -0700)
The NanSRFState enum was incorrectly specifying NAN_DO_NOT_USE_SRF
as 1 which was not insync with the wifi firmware expected value
causing the case of active subscribe and solicited publish to fail.
This commit updates the enum type appropriately.

Bug: 30898004
Change-Id: I89f092964daeeb962b57ea474131bb58984a4d43

include/hardware_legacy/wifi_nan.h

index 65edbbb..7a0f974 100644 (file)
@@ -248,8 +248,8 @@ typedef enum {
 
 /* NAN SRF State in Subscribe */
 typedef enum {
-    NAN_USE_SRF = 0,
-    NAN_DO_NOT_USE_SRF
+    NAN_DO_NOT_USE_SRF = 0,
+    NAN_USE_SRF
 } NanSRFState;
 
 /* NAN Include SSI in MatchInd */