|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module containing stubs for API generation of the 'network' module. |
|
8 """ |
|
9 |
|
10 def route(): |
|
11 pass |
|
12 |
|
13 class AbstractNIC(): |
|
14 def __init__(self, id=None, *args): |
|
15 pass |
|
16 |
|
17 def active(self, is_active=None): |
|
18 pass |
|
19 |
|
20 def connect(self, service_id=None, key=None, *args): |
|
21 pass |
|
22 |
|
23 def disconnect(self): |
|
24 pass |
|
25 |
|
26 def isconnected(self): |
|
27 pass |
|
28 |
|
29 def scan(self, *args): |
|
30 pass |
|
31 |
|
32 def status(self, param=None): |
|
33 pass |
|
34 |
|
35 def ifconfig(self, params=tuple()): |
|
36 pass |
|
37 |
|
38 def config(self, param): |
|
39 pass |
|
40 |
|
41 def config(self, **params): |
|
42 pass |
|
43 |
|
44 def phy_mode(mode=None): |
|
45 pass |
|
46 |
|
47 MODE_11B = 0 |
|
48 MODE_11G = 0 |
|
49 MODE_11N = 0 |
|
50 |
|
51 STA_IF = 0 |
|
52 AP_IF = 1 |
|
53 |
|
54 AUTH_OPEN = 0 |
|
55 AUTH_WEP = 1 |
|
56 AUTH_WPA2_PSK = 3 |
|
57 AUTH_WPA_PSK = 2 |
|
58 AUTH_WPA_WPA2_PSK = 4 |
|
59 |
|
60 STAT_IDLE = 0 |
|
61 STAT_CONNECTING = 0 |
|
62 STAT_WRONG_PASSWORD = 0 |
|
63 STAT_NO_AP_FOUND = 0 |
|
64 STAT_CONNECT_FAIL = 0 |
|
65 STAT_GOT_IP = 0 |
|
66 |
|
67 class WLAN(): |
|
68 def __init__(self, interface_id): |
|
69 pass |
|
70 |
|
71 def active(self, is_active=None): |
|
72 pass |
|
73 |
|
74 def connect(self, ssid=None, password=None, *, bssid=None): |
|
75 pass |
|
76 |
|
77 def disconnect(self): |
|
78 pass |
|
79 |
|
80 def scan(self): |
|
81 pass |
|
82 |
|
83 def status(self, param=None): |
|
84 pass |
|
85 |
|
86 def isconnected(self): |
|
87 pass |
|
88 |
|
89 def ifconfig(self, params=tuple()): |
|
90 pass |
|
91 |
|
92 def config(self, param): |
|
93 pass |
|
94 |
|
95 def config(self, **params): |
|
96 pass |