forked from Wifx/gonetworkmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnm80211apsec_string.go
63 lines (57 loc) · 1.76 KB
/
nm80211apsec_string.go
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
// Code generated by "stringer -type=Nm80211APSec"; DO NOT EDIT.
package gonetworkmanager
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[Nm80211APSecNone-0]
_ = x[Nm80211APSecPairWEP40-1]
_ = x[Nm80211APSecPairWEP104-2]
_ = x[Nm80211APSecPairTKIP-4]
_ = x[Nm80211APSecPairCCMP-8]
_ = x[Nm80211APSecGroupWEP40-16]
_ = x[Nm80211APSecGroupWEP104-32]
_ = x[Nm80211APSecGroupTKIP-64]
_ = x[Nm80211APSecGroupCCMP-128]
_ = x[Nm80211APSecKeyMgmtPSK-256]
_ = x[Nm80211APSecKeyMgmt8021X-512]
}
const (
_Nm80211APSec_name_0 = "Nm80211APSecNoneNm80211APSecPairWEP40Nm80211APSecPairWEP104"
_Nm80211APSec_name_1 = "Nm80211APSecPairTKIP"
_Nm80211APSec_name_2 = "Nm80211APSecPairCCMP"
_Nm80211APSec_name_3 = "Nm80211APSecGroupWEP40"
_Nm80211APSec_name_4 = "Nm80211APSecGroupWEP104"
_Nm80211APSec_name_5 = "Nm80211APSecGroupTKIP"
_Nm80211APSec_name_6 = "Nm80211APSecGroupCCMP"
_Nm80211APSec_name_7 = "Nm80211APSecKeyMgmtPSK"
_Nm80211APSec_name_8 = "Nm80211APSecKeyMgmt8021X"
)
var (
_Nm80211APSec_index_0 = [...]uint8{0, 16, 37, 59}
)
func (i Nm80211APSec) String() string {
switch {
case 0 <= i && i <= 2:
return _Nm80211APSec_name_0[_Nm80211APSec_index_0[i]:_Nm80211APSec_index_0[i+1]]
case i == 4:
return _Nm80211APSec_name_1
case i == 8:
return _Nm80211APSec_name_2
case i == 16:
return _Nm80211APSec_name_3
case i == 32:
return _Nm80211APSec_name_4
case i == 64:
return _Nm80211APSec_name_5
case i == 128:
return _Nm80211APSec_name_6
case i == 256:
return _Nm80211APSec_name_7
case i == 512:
return _Nm80211APSec_name_8
default:
return "Nm80211APSec(" + strconv.FormatInt(int64(i), 10) + ")"
}
}