A method for accessing an access point, AP, performed by a system comprising a first station, STA, device, an AP device and a second STA device, the method comprises: receiving, by the second STA device, a beacon broadcast frame carrying a second media access control, MAC, address of the second STA device broadcasted by the AP device, and connecting with the AP device only when the second STA device detects that the second MAC address is the same as a MAC address locally stored by the second STA device, wherein the AP device acquires the second MAC address through the first STA device, the first STA device has been connected to the AP device, and the first STA device is connected to the second STA device wherein after connecting, by the second STA device, with the AP device, the method further comprises: receiving, by the second STA device, a third pairwise master key, PMK, identifier, ID, transmitted by the AP device, wherein the third PMK ID is obtained by the AP device in a following manner: the AP device encrypts a second PMK ID and the second MAC address of the second STA device according to a preset rule to obtain the third PMK ID; and parsing, by the second STA device, the third PMK ID to obtain the second MAC address, wherein only when the second MAC address is the same as the MAC address locally stored by the second STA device, the second STA device performs data transmission with the AP device according to the second PMK ID. receiving, by the second STA device, a beacon broadcast frame carrying a second media access control, MAC, address of the second STA device broadcasted by the AP device, and connecting with the AP device only when the second STA device detects that the second MAC address is the same as a MAC address locally stored by the second STA device, wherein the AP device acquires the second MAC address through the first STA device, the first STA device has been connected to the AP device, and the first STA device is connected to the second STA device wherein after connecting, by the second STA device, with the AP device, the method further comprises: receiving, by the second STA device, a third pairwise master key, PMK, identifier, ID, transmitted by the AP device, wherein the third PMK ID is obtained by the AP device in a following manner: the AP device encrypts a second PMK ID and the second MAC address of the second STA device according to a preset rule to obtain the third PMK ID; and parsing, by the second STA device, the third PMK ID to obtain the second MAC address, wherein only when the second MAC address is the same as the MAC address locally stored by the second STA device, the second STA device performs data transmission with the AP device according to the second PMK ID. receiving, by the second STA device, a third pairwise master key, PMK, identifier, ID, transmitted by the AP device, wherein the third PMK ID is obtained by the AP device in a following manner: the AP device encrypts a second PMK ID and the second MAC address of the second STA device according to a preset rule to obtain the third PMK ID; and parsing, by the second STA device, the third PMK ID to obtain the second MAC address, wherein only when the second MAC address is the same as the MAC address locally stored by the second STA device, the second STA device performs data transmission with the AP device according to the second PMK ID. <EOS>