summaryrefslogtreecommitdiffstats
blob: b347c1dce97b2912ce2da137e2d0988dc6161f09 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
/*
 * Copyright 2016 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.hardware.wifi.supplicant@1.0;

import ISupplicantNetwork;
import ISupplicantStaNetworkCallback;

/**
 * Interface exposed by the supplicant for each station mode network
 * configuration it controls.
 */
interface ISupplicantStaNetwork extends ISupplicantNetwork {
  /**
   * Size limits for some of the params used in this interface.
   */
  enum ParamSizeLimits : uint32_t {
    /** Max length of SSID param. */
    SSID_MAX_LEN_IN_BYTES = 32,

    /** Min length of PSK passphrase param. */
    PSK_PASSPHRASE_MIN_LEN_IN_BYTES = 8,

    /** Max length of PSK passphrase param. */
    PSK_PASSPHRASE_MAX_LEN_IN_BYTES = 63,

    /** Max number of WEP keys param. */
    WEP_KEYS_MAX_NUM = 4,

    /** Length of each WEP40 keys param. */
    WEP40_KEY_LEN_IN_BYTES = 5,
    /** Length of each WEP104 keys param. */
    WEP104_KEY_LEN_IN_BYTES = 13,
  };

  /** Possble mask of values for KeyMgmt param. */
  enum KeyMgmtMask : uint32_t {
    WPA_EAP = 1 << 0,
    WPA_PSK = 1 << 1,
    NONE = 1 << 2,
    IEEE8021X = 1 << 3,
    FT_EAP = 1 << 5,
    FT_PSK = 1 << 6,
    OSEN = 1 << 15
  };

  /** Possble mask of values for Proto param. */
  enum ProtoMask : uint32_t {
    WPA = 1 << 0,
    RSN = 1 << 1,
    /** Unused 1 << 2 */
    OSEN = 1 << 3
  };

  /** Possble mask of values for AuthAlg param. */
  enum AuthAlgMask : uint32_t {
    OPEN = 1 << 0,
    SHARED = 1 << 1,
    LEAP = 1 << 2
  };

  /** Possble mask of values for GroupCipher param. */
  enum GroupCipherMask : uint32_t {
    WEP40 = 1 << 1,
    WEP104 = 1 << 2,
    TKIP = 1 << 3,
    CCMP = 1 << 4,
    GTK_NOT_USED = 1 << 14
  };

  /** Possble mask of values for PairwiseCipher param. */
  enum PairwiseCipherMask : uint32_t {
    NONE = 1 << 0,
    TKIP = 1 << 3,
    CCMP = 1 << 4
  };

  /** Possble values for EapMethod param. */
  enum EapMethod : uint32_t {
    PEAP = 0,
    TLS = 1,
    TTLS = 2,
    PWD = 3,
    SIM = 4,
    AKA = 5,
    AKA_PRIME = 6,
    WFA_UNAUTH_TLS = 7
  };

  /** Possble values for Phase2Method param. */
  enum EapPhase2Method : uint32_t {
    NONE = 0,
    PAP = 1,
    MSPAP = 2,
    MSPAPV2 = 3,
    GTC = 4
  };

  /** Params of |sendNetworkEapSimGsmAuthResponse| request. (Refer RFC 4186) */
  struct NetworkResponseEapSimGsmAuthParams {
    uint8_t[8] kc;
    uint8_t[4] sres;
  };

  /** Params of |sendNetworkEapSimUmtsAuthResponse| request. (Refer RFC 4187) */
  struct NetworkResponseEapSimUmtsAuthParams {
    vec<uint8_t> res;
    uint8_t[16] ik;
    uint8_t[16] ck;
  };

  /**
   * Register for callbacks from this network.
   *
   * These callbacks are invoked for events that are specific to this network.
   * Registration of multiple callback objects is supported. These objects must
   * be automatically deleted when the corresponding client process is dead or
   * if this network is removed.
   *
   * @param callback An instance of the |ISupplicantStaNetworkCallback| HIDL
   *        interface object.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  registerCallback(ISupplicantStaNetworkCallback callback)
      generates (SupplicantStatus status);

  /**
   * Setters for the various network params.
   * These correspond to elements of |wpa_sssid| struct used internally by
   * the supplicant to represent each network.
   */
  /**
   * Set SSID for this network.
   *
   * @param ssid value to set.
   *        Max length of |ParamSizeLimits.SSID_MAX_LEN_IN_BYTES|.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setSsid(Ssid ssid) generates (SupplicantStatus status);

  /**
   * Set the network to only connect to an AP with provided BSSID.
   *
   * @param bssid value to set.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setBssid(Bssid bssid) generates (SupplicantStatus status);

  /**
   * Set whether to send probe requests for this network (hidden).
   *
   * @param enable true to set, false otherwise.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setScanSsid(bool enable) generates (SupplicantStatus status);

  /**
   * Set key management mask for the network.
   *
   * @param keyMgmtMask value to set.
   *        Combination of |KeyMgmtMask| values.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setKeyMgmt(bitfield<KeyMgmtMask> keyMgmtMask) generates (SupplicantStatus status);

  /**
   * Set proto mask for the network.
   *
   * @param protoMask value to set.
   *        Combination of |ProtoMask| values.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setProto(bitfield<ProtoMask> protoMask) generates (SupplicantStatus status);

  /**
   * Set auth alg mask for the network.
   *
   * @param authAlgMask value to set.
   *        Combination of |ProtoMask| values.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setAuthAlg(bitfield<AuthAlgMask> authAlgMask) generates (SupplicantStatus status);

  /**
   * Set group cipher mask for the network.
   *
   * @param groupCipherMask value to set.
   *        Combination of |ProtoMask| values.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setGroupCipher(bitfield<GroupCipherMask> groupCipherMask)
      generates (SupplicantStatus status);

  /**
   * Set pairwise cipher mask for the network.
   *
   * @param pairwiseCipherMask value to set.
   *        Combination of |ProtoMask| values.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setPairwiseCipher(bitfield<PairwiseCipherMask> pairwiseCipherMask)
      generates (SupplicantStatus status);

  /**
   * Set passphrase for WPA_PSK network.
   *
   * @param psk value to set.
   *        Length of value must be between
   *        |ParamSizeLimits.PSK_PASSPHRASE_MIN_LEN_IN_BYTES| and
   *        |ParamSizeLimits.PSK_PASSPHRASE_MAX_LEN_IN_BYTES|.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setPskPassphrase(string psk) generates (SupplicantStatus status);

  /**
   * Set WEP key for WEP network.
   *
   * @param keyIdx Index of wep key to set.
   *        Max of |ParamSizeLimits.WEP_KEYS_MAX_NUM|.
   * @param wepKey value to set.
   *        Length of each key must be either
   *        |ParamSizeLimits.WEP40_KEY_LEN_IN_BYTES| or
   *        |ParamSizeLimits.WEP104_KEY_LEN_IN_BYTES|.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setWepKey(uint32_t keyIdx, vec<uint8_t> wepKey)
      generates (SupplicantStatus status);

  /**
   * Set default Tx key index for WEP network.
   *
   * @param KeyIdx value to set.
   *        Max of |ParamSizeLimits.WEP_KEYS_MAX_NUM|.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setWepTxKeyIdx(uint32_t keyIdx)
      generates (SupplicantStatus status);

  /**
   * Set whether RequirePmf is enabled for this network.
   *
   * @param enable true to set, false otherwise.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setRequirePmf(bool enable) generates (SupplicantStatus status);

  /**
   * Set EAP Method for this network.
   *
   * @param method value to be set.
   *        Must be one of |EapMethod| values.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setEapMethod(EapMethod method)
      generates (SupplicantStatus status);

  /**
   * Set EAP Phase2 Method for this network.
   *
   * @param method value to set.
   *        Must be one of |EapPhase2Method| values.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setEapPhase2Method(EapPhase2Method method)
      generates (SupplicantStatus status);

  /**
   * Set EAP Identity for this network.
   *
   * @param identity value to set.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setEapIdentity(vec<uint8_t> identity)
      generates (SupplicantStatus status);

  /**
   * Set EAP Anonymous Identity for this network.
   *
   * @param identity value to set.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setEapAnonymousIdentity(vec<uint8_t> identity)
      generates (SupplicantStatus status);

  /**
   * Set EAP Password for this network.
   *
   * @param password value to set.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setEapPassword(vec<uint8_t> password)
      generates (SupplicantStatus status);

  /**
   * Set EAP CA certificate file path for this network.
   *
   * @param path value to set.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setEapCACert(string path) generates (SupplicantStatus status);

  /**
   * Set EAP CA certificate directory path for this network.
   *
   * @param path value to set.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setEapCAPath(string path) generates (SupplicantStatus status);

  /**
   * Set EAP Client certificate file path for this network.
   *
   * @param path value to set.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setEapClientCert(string path) generates (SupplicantStatus status);

  /**
   * Set EAP private key file path for this network.
   *
   * @param path value to set.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setEapPrivateKey(string path) generates (SupplicantStatus status);

  /**
   * Set EAP subject match for this network.
   *
   * @param match value to set.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setEapSubjectMatch(string match) generates (SupplicantStatus status);

  /**
   * Set EAP Alt subject match for this network.
   *
   * @param match value to set.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setEapAltSubjectMatch(string match)
      generates (SupplicantStatus status);

  /**
   * Enable EAP Open SSL Engine for this network.
   *
   * @param enable true to set, false otherwise.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setEapEngine(bool enable) generates (SupplicantStatus status);

  /**
   * Set EAP Open SSL Engine ID for this network.
   *
   * @param id value to set.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setEapEngineID(string id) generates (SupplicantStatus status);

  /**
   * Set EAP Domain suffix match for this network.
   *
   * @param match value to set.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setEapDomainSuffixMatch(string match)
      generates (SupplicantStatus status);
  /**
   * Get ID string set for this network.
   * Network identifier string for external scripts.
   *
   * @return idStr ID string value to set.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  setIdStr(string idStr) generates (SupplicantStatus status);

  /**
   * Getters for the various network params.
   */
  /**
   * Get SSID for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return ssid value set.
   */
  getSsid() generates (SupplicantStatus status, Ssid ssid);

  /**
   * Get the BSSID set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return bssid value set.
   */
  getBssid() generates (SupplicantStatus status, Bssid bssid);

  /**
   * Get whether Probe Requests are being sent for this network (hidden).
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return enabled true if set, false otherwise.
   */
  getScanSsid() generates (SupplicantStatus status, bool enabled);

  /**
   * Get the key mgmt mask set for the network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return keyMgmtMask Combination of |KeyMgmtMask| values.
   */
  getKeyMgmt()
      generates (SupplicantStatus status, bitfield<KeyMgmtMask> keyMgmtMask);

  /**
   * Get the proto mask set for the network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return protoMask Combination of |ProtoMask| values.
   */
  getProto() generates (SupplicantStatus status, bitfield<ProtoMask> protoMask);

  /**
   * Get the auth alg mask set for the network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return authAlgMask Combination of |AuthAlgMask| values.
   */
  getAuthAlg()
      generates (SupplicantStatus status, bitfield<AuthAlgMask> authAlgMask);

  /**
   * Get the group cipher mask set for the network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return groupCipherMask Combination of |GroupCipherMask| values.
   */
  getGroupCipher()
      generates (SupplicantStatus status,
                 bitfield<GroupCipherMask> groupCipherMask);

  /**
   * Get the pairwise cipher mask set for the network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return pairwiseCipherMask Combination of |PairwiseCipherMask| values.
   */
  getPairwiseCipher()
      generates (SupplicantStatus status,
                 bitfield<PairwiseCipherMask> pairwiseCipherMask);

  /**
   * Get passphrase for WPA_PSK network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return psk value set.
   */
  getPskPassphrase() generates (SupplicantStatus status, string psk);

  /**
   * Get WEP key for WEP network.
   *
   * @param keyIdx Index of wep key to be fetched.
   *        Max of |WEP_KEYS_MAX_NUM|.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return wepKey value set.
   */
  getWepKey(uint32_t keyIdx)
      generates (SupplicantStatus status, vec<uint8_t> wepKey);

  /**
   * Get default Tx key index for WEP network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return keyIdx value set.
   */
  getWepTxKeyIdx()
      generates (SupplicantStatus status, uint32_t keyIdx);

  /**
   * Get whether RequirePmf is enabled for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return enabled true if set, false otherwise.
   */
  getRequirePmf() generates (SupplicantStatus status, bool enabled);

  /**
   * Get EAP Method set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return method value set.
   *        Must be one of |EapMethod| values.
   */
  getEapMethod()
      generates (SupplicantStatus status, EapMethod method);

  /**
   * Get EAP Phase2 Method set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return method value set.
   *        Must be one of |EapPhase2Method| values.
   */
  getEapPhase2Method()
      generates (SupplicantStatus status, EapPhase2Method method);

  /**
   * Get EAP Identity set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return identity value set.
   */
  getEapIdentity()
      generates (SupplicantStatus status, vec<uint8_t> identity);

  /**
   * Get EAP Anonymous Identity set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return identity value set.
   */
  getEapAnonymousIdentity()
      generates (SupplicantStatus status, vec<uint8_t> identity);

  /**
   * Get EAP Password set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return password value set.
   */
  getEapPassword()
      generates (SupplicantStatus status, vec<uint8_t> password);

  /**
   * Get EAP CA certificate file path set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return path value set.
   */
  getEapCACert() generates (SupplicantStatus status, string path);

  /**
   * Get EAP CA certificate directory path set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return path value set.
   */
  getEapCAPath() generates (SupplicantStatus status, string path);

  /**
   * Get EAP Client certificate file path set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return path value set.
   */
  getEapClientCert() generates (SupplicantStatus status, string path);

  /**
   * Get EAP private key file path set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return path value set.
   */
  getEapPrivateKey() generates (SupplicantStatus status, string path);

  /**
   * Get EAP subject match set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return match value set.
   */
  getEapSubjectMatch() generates (SupplicantStatus status, string match);

  /**
   * Get EAP Alt subject match set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return match value set.
   */
  getEapAltSubjectMatch()
      generates (SupplicantStatus status, string match);

  /**
   * Get if EAP Open SSL Engine is enabled for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return enabled true if set, false otherwise.
   */
  getEapEngine() generates (SupplicantStatus status, bool enabled);

  /**
   * Get EAP Open SSL Engine ID set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return id value set.
   */
  getEapEngineID() generates (SupplicantStatus status, string id);

  /**
   * Get EAP Domain suffix match set for this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return match value set.
   */
  getEapDomainSuffixMatch()
      generates (SupplicantStatus status, string match);

  /**
   * Get ID string set for this network.
   * Network identifier string for external scripts.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_ARGS_INVALID|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   * @return idStr ID string set.
   */
  getIdStr() generates (SupplicantStatus status, string idStr);

  /**
   * Enable the network for connection purposes.
   *
   * This must trigger a connection to the network if:
   * a) |noConnect| is false, and
   * b) This is the only network configured, and
   * c) Is visible in the current scan results.
   *
   * @param noConnect Only enable the network, dont trigger a connect.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  enable(bool noConnect) generates (SupplicantStatus status);

  /**
   * Disable the network for connection purposes.
   *
   * This must trigger a disconnection from the network, if currently
   * connected to this one.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  disable() generates (SupplicantStatus status);

  /**
   * Initiate connection to this network.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  select() generates (SupplicantStatus status);

  /**
   * Used to send a response to the
   * |ISupplicantNetworkCallback.onNetworkEapSimGsmAuthRequest| request.
   *
   * @param params Params to be used for EAP GSM authentication.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  sendNetworkEapSimGsmAuthResponse(NetworkResponseEapSimGsmAuthParams params)
      generates (SupplicantStatus status);

  /**
   * Used to send a response to the
   * |ISupplicantNetworkCallback.onNetworkEapSimUmtsAuthRequest| request.
   *
   * @param params Params to be used for EAP UMTS authentication.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  sendNetworkEapSimUmtsAuthResponse(NetworkResponseEapSimUmtsAuthParams params)
      generates (SupplicantStatus status);

  /**
   * Used to send a response to the
   * |ISupplicantNetworkCallback.onNetworkEapIdentityRequest| request.
   *
   * @param identity Identity to be used for the network.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|,
   *         |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
   */
  sendNetworkEapIdentityResponse(vec<uint8_t> identity)
      generates (SupplicantStatus status);
};