@@ -49,7 +49,7 @@ The WLAN constructor is special in the sense that if no arguments besides the `i
4949
5050## Methods
5151
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) )
5353
5454Set or get the WiFi network processor configuration.
5555
@@ -69,6 +69,7 @@ Arguments are:
6969* ` bandwidth ` is the Bandwidth to use, either 20MHz or 40 MHz , use ` HT20 ` or ` HT40 `
7070* ` max_tx_pwr ` is the maximum WiFi Tx power allowed. see ` WLAN.max_tx_power() ` for more details
7171* ` 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
7273
7374For example, you can do:
7475
@@ -261,9 +262,9 @@ Gets or set s Country configuration parameters for wifi.
261262
262263Returns a tuple with (bssid, ssid, primary channel, rssi, Authorization method, wifi standard used) of the connected AP in case of STA mode.
263264
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)\] )
265266
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 .
267268
268269### wlan.send\_ raw(Buffer, interface=STA, use\_ sys\_ seq=True)
269270
0 commit comments