Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db0c15dd authored by Vinit Deshpande's avatar Vinit Deshpande
Browse files

Read/Write numBssidsPerScan in ParcelableScanResults

Setting the value has no effect because it was lost in marshalling
across binder interface.

Bug: 16826305
Change-Id: I5b308441608e0b7fc159fc249a16aec3728bac82
parent 54f08941
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ public class WifiScanner {
     */
    public static class ChannelSpec {
        /**
         * channel frequency in KHz; for example channel 1 is specified as 2412
         * channel frequency in MHz; for example channel 1 is specified as 2412
         */
        public int frequency;
        /**
@@ -158,6 +158,7 @@ public class WifiScanner {
            dest.writeInt(band);
            dest.writeInt(periodInMs);
            dest.writeInt(reportEvents);
            dest.writeInt(numBssidsPerScan);

            if (channels != null) {
                dest.writeInt(channels.length);
@@ -181,6 +182,7 @@ public class WifiScanner {
                        settings.band = in.readInt();
                        settings.periodInMs = in.readInt();
                        settings.reportEvents = in.readInt();
                        settings.numBssidsPerScan = in.readInt();
                        int num_channels = in.readInt();
                        settings.channels = new ChannelSpec[num_channels];
                        for (int i = 0; i < num_channels; i++) {