an obtaining unit 410, configured to obtain access stratum context identifier information of the first terminal device, where the access stratum context identifier information is used to identify access stratum context information of the first terminal device that is related to the first terminal device on a first access network device; and
a sending unit 420, configured to send the access stratum context identifier information to a second access network device providing a network service to the first terminal device, so that the second access network device obtains the access stratum context information from the first access network device corresponding to the access stratum context identifier information.
Therefore, the device for wireless communication in this embodiment of this application helps reduce network overheads.
Optionally, in this embodiment of this application, a number or a bit stream that is in the access stratum context identifier information of the first terminal device and that is used to identify information about the first access network device is different from a number or a bit stream of an identifier of the first access network device.
A format of a UE AS Context ID of a terminal device is changed, so that the UE AS Context ID does not directly include an identifier of an access network device; and through an implicit indication of the terminal device, a network device can obtain the identifier of the access network device, to obtain access stratum context information of the terminal device from an access stratum device storing the access stratum context information of the terminal device, thereby protecting a network and security privacy of a user on an air interface.