An apparatus, comprising: a wireless station, STA, configured to operate as a master station (105; 205) in a wireless network and to transfer master station functionality to a client station when leaving said wireless network by: discovering said client station's Master/AP capability from an association request from the client station; selecting said client station to be a new master station (125; 210) based on predetermined parameters; characterized by: passing the basic service set, BSS, context from said master station to said new master station in a master station Role Request message before transitioning; notifying said new master station to activate its master station role via said master station Role Request message; and switching by said client station to the role of new master station upon receipt of an AP Role Activation message and starting to send Beacons with a BSSID that is the same as used in Beacons of said previous master station;. wherein said new master station issues a key update message to refresh the PTK and GTK/IGTK with all clients by using the same PSK that was used by said master station; wherein said BSS context information is DHCP information and Block ACK TSPEC. a wireless station, STA, configured to operate as a master station (105; 205) in a wireless network and to transfer master station functionality to a client station when leaving said wireless network by: discovering said client station's Master/AP capability from an association request from the client station; selecting said client station to be a new master station (125; 210) based on predetermined parameters; discovering said client station's Master/AP capability from an association request from the client station; selecting said client station to be a new master station (125; 210) based on predetermined parameters; characterized by: passing the basic service set, BSS, context from said master station to said new master station in a master station Role Request message before transitioning; notifying said new master station to activate its master station role via said master station Role Request message; and switching by said client station to the role of new master station upon receipt of an AP Role Activation message and starting to send Beacons with a BSSID that is the same as used in Beacons of said previous master station;. wherein said new master station issues a key update message to refresh the PTK and GTK/IGTK with all clients by using the same PSK that was used by said master station; wherein said BSS context information is DHCP information and Block ACK TSPEC. passing the basic service set, BSS, context from said master station to said new master station in a master station Role Request message before transitioning; notifying said new master station to activate its master station role via said master station Role Request message; and switching by said client station to the role of new master station upon receipt of an AP Role Activation message and starting to send Beacons with a BSSID that is the same as used in Beacons of said previous master station;. wherein said new master station issues a key update message to refresh the PTK and GTK/IGTK with all clients by using the same PSK that was used by said master station; wherein said BSS context information is DHCP information and Block ACK TSPEC.