CPC H04L 43/12 (2013.01) [H04W 12/037 (2021.01); H04W 76/10 (2018.02)] | 17 Claims |
1. A network distribution method, applied to a first electronic device, the method comprising:
sending a second probe request that carries second device information of the first electronic device and an identifier indicating that the probe request is a network distribution request for performing soft-access point (SOFT AP) network distribution;
receiving a second probe response fed back by a second electronic device for the second probe request, wherein the second probe response is used to notify the first electronic device that the second electronic device receives the first probe request and allows the first electronic device to perform network distribution with the second electronic device;
after receiving the second probe response, sending a first probe request that carries first device information of the first electronic device;
in response to the first probe request, receiving a first probe response sent by the second electronic device, wherein the first probe response carries temporary networking data;
establishing a first connection to the second electronic device by using the temporary networking data;
receiving network distribution data of a master access point of the second electronic device from the second electronic device;
accessing the master access point of the second electronic device by using the network distribution data of the master access point; and
establishing a second connection to the second electronic device;
wherein the second probe request and the first probe request are sent by the first electronic device in an access point (AP) mode; and the method further comprises: in response to the first probe response, switching from the AP mode to station (STA) mode.
|