@@ -49,7 +49,7 @@ The WLAN constructor is special in the sense that if no arguments besides the `i
49
49
50
50
## Methods
51
51
52
- #### wlan.init(mode, \* , ssid=None, auth=None, channel=1, antenna=None, power\_ save=False, hidden=False, bandwidth=HT40, max\_ tx\_ pwr=20, country=CN)
52
+ #### wlan.init(mode, \* , ssid=None, auth=None, channel=1, antenna=None, power\_ save=False, hidden=False, bandwidth=HT40, max\_ tx\_ pwr=20, country=CN, protocol=(1,1,1) )
53
53
54
54
Set or get the WiFi network processor configuration.
55
55
@@ -69,6 +69,7 @@ Arguments are:
69
69
* ` bandwidth ` is the Bandwidth to use, either 20MHz or 40 MHz , use ` HT20 ` or ` HT40 `
70
70
* ` max_tx_pwr ` is the maximum WiFi Tx power allowed. see ` WLAN.max_tx_power() ` for more details
71
71
* ` country ` tuple representing the country configuration parameters. see ` WLAN.country() ` for more details
72
+ * ` protocol ` tuple representing the protocol. see ` WLAN.wifi_protocol() ` for more details
72
73
73
74
For example, you can do:
74
75
@@ -261,9 +262,9 @@ Gets or set s Country configuration parameters for wifi.
261
262
262
263
Returns a tuple with (bssid, ssid, primary channel, rssi, Authorization method, wifi standard used) of the connected AP in case of STA mode.
263
264
264
- ### wlan.wifi\_ protocol(\[ (bool PHY11\_\ _ B, bool PHY11\_ G, bool PHY11\_ N)\] )
265
+ ### wlan.wifi\_ protocol(\[ (bool PHY11\_ B, bool PHY11\_ G, bool PHY11\_ N)\] )
265
266
266
- Sets or gets Wifi Protocol supported.
267
+ Sets or gets Wifi Protocol supported in ( ` PHY_11_B ` , ` PHY_11_G ` , ` PHY_11_N ` ) format. Currently 802.11b or 802.11bg or 802.11bgn mode is available .
267
268
268
269
### wlan.send\_ raw(Buffer, interface=STA, use\_ sys\_ seq=True)
269
270
0 commit comments