A user equipment in a wireless communication system which communicates with an electronic device in the wireless communication system via a primary cell and a plurality of secondary cells, the user equipment comprising: one or more processing circuits configured to perform the following operations: determining, for each of the plurality of secondary cells, whether a beam failure has happened in the secondary cell; and setting a single media access control-control element MAC CE to notify the electronic device when it is determined that the beam failure has happened in at least two of the plurality of secondary cells, wherein the MAC CE comprises at least index information of all component carriers in which the beam failure has happened; wherein the processing circuit is further configured to perform the following operations: for each secondary cell in which the beam failure has happened, selecting a new beam based on a candidate reference signal set q1 for beam failure recovery, wherein the MAC CE further comprises identification information of the selected new beam, the identification information corresponding to the index information; wherein when at least two pieces of identification information are the same, the processing circuit is further configured to perform the following operations: dividing a plurality pieces of index information corresponding to the same identification information into a group; and setting the MAC CE such that the plurality pieces of index information in the group correspond to a single piece of identification information. determining, for each of the plurality of secondary cells, whether a beam failure has happened in the secondary cell; and setting a single media access control-control element MAC CE to notify the electronic device when it is determined that the beam failure has happened in at least two of the plurality of secondary cells, wherein the MAC CE comprises at least index information of all component carriers in which the beam failure has happened; wherein the processing circuit is further configured to perform the following operations: for each secondary cell in which the beam failure has happened, selecting a new beam based on a candidate reference signal set q1 for beam failure recovery, wherein the MAC CE further comprises identification information of the selected new beam, the identification information corresponding to the index information; for each secondary cell in which the beam failure has happened, selecting a new beam based on a candidate reference signal set q1 for beam failure recovery, wherein the MAC CE further comprises identification information of the selected new beam, the identification information corresponding to the index information; wherein when at least two pieces of identification information are the same, the processing circuit is further configured to perform the following operations: dividing a plurality pieces of index information corresponding to the same identification information into a group; and setting the MAC CE such that the plurality pieces of index information in the group correspond to a single piece of identification information. dividing a plurality pieces of index information corresponding to the same identification information into a group; and setting the MAC CE such that the plurality pieces of index information in the group correspond to a single piece of identification information. <EOS>