A dimming method, comprising: (i) determining whether a length of a Media Access Control, MAC, Service Data Unit, MSDU, is less than or equal to a difference in value between a maximum data length and a sum of a physical layer cost length and an MAC layer cost length, the physical layer cost length referring to a sum of a length of a Synchronization Header, SHR, field and a length of a Physical-layer Header, PHR, field, and the MAC layer cost length referring to a sum of a length of an MAC-layer Header, MHR, field and a length of an MAC-layer tail field, wherein the maximum data length is a product of a period T and a data rate of a link, the period T being a reciprocal of a Critical Flicker Frequency, CFF, and the CFF being a minimum repetition frequency which does not cause a flicker feeling; (ii.1) when the length of the MSDU is determined to be more than said difference, dividing the MSDU into multiple sub-MSDUs with an equal length until the length of each obtained sub-MSDU is determined to be less than or equal to said difference; (ii.2) when the length of the MSDU is determined to be less than or equal to said difference, determining whether an actual luminance value of a light source is equal to a target luminance value; (iii.1) when the actual luminance value of the light source is equal to said target luminance value, encapsulating each MSDU into a respective MAC Protocol Data Units, MPDU, determining each MPDU as the Physical-layer Service Data Unit, PSDU, in a Physical-layer Protocol Data Unit, PPDU, and transmitting the PPDU; (iii.2) when the actual luminance value of the light source is not equal to said target luminance value, encapsulating each MSDUs into a respective MPDU, generating, according to said target luminance value, a Compensatory Frame, CF, for each MPDU, and aggregating each MPDU and a CF corresponding to the each MPDU into a PSDU in a PPDU; (iii.3) when the length of the aggregated MPDU is less than a difference value between the maximum data length and the physical layer cost length, transmitting the PPDU; (iii.4) when the length of the aggregated MPDU is not less than a difference between the maximum data length and the physical layer cost length: - dividing the MSDU into multiple sub-MSDUs of equal length until the length of the sub-MSDUs is less than or equal to the difference in value between the maximum data length and the sum of the physical layer and MAC layer cost lengths; - generating the corresponding CF's to generate respective aggregated MPDUs until the length of the aggregated MPDU is less than the difference mentioned in step (iii.3); and - transmitting the PPDU. (i) determining whether a length of a Media Access Control, MAC, Service Data Unit, MSDU, is less than or equal to a difference in value between a maximum data length and a sum of a physical layer cost length and an MAC layer cost length, the physical layer cost length referring to a sum of a length of a Synchronization Header, SHR, field and a length of a Physical-layer Header, PHR, field, and the MAC layer cost length referring to a sum of a length of an MAC-layer Header, MHR, field and a length of an MAC-layer tail field, wherein the maximum data length is a product of a period T and a data rate of a link, the period T being a reciprocal of a Critical Flicker Frequency, CFF, and the CFF being a minimum repetition frequency which does not cause a flicker feeling; (ii.1) when the length of the MSDU is determined to be more than said difference, dividing the MSDU into multiple sub-MSDUs with an equal length until the length of each obtained sub-MSDU is determined to be less than or equal to said difference; (ii.2) when the length of the MSDU is determined to be less than or equal to said difference, determining whether an actual luminance value of a light source is equal to a target luminance value; (iii.1) when the actual luminance value of the light source is equal to said target luminance value, encapsulating each MSDU into a respective MAC Protocol Data Units, MPDU, determining each MPDU as the Physical-layer Service Data Unit, PSDU, in a Physical-layer Protocol Data Unit, PPDU, and transmitting the PPDU; (iii.2) when the actual luminance value of the light source is not equal to said target luminance value, encapsulating each MSDUs into a respective MPDU, generating, according to said target luminance value, a Compensatory Frame, CF, for each MPDU, and aggregating each MPDU and a CF corresponding to the each MPDU into a PSDU in a PPDU; (iii.3) when the length of the aggregated MPDU is less than a difference value between the maximum data length and the physical layer cost length, transmitting the PPDU; (iii.4) when the length of the aggregated MPDU is not less than a difference between the maximum data length and the physical layer cost length: - dividing the MSDU into multiple sub-MSDUs of equal length until the length of the sub-MSDUs is less than or equal to the difference in value between the maximum data length and the sum of the physical layer and MAC layer cost lengths; - generating the corresponding CF's to generate respective aggregated MPDUs until the length of the aggregated MPDU is less than the difference mentioned in step (iii.3); and - transmitting the PPDU. - dividing the MSDU into multiple sub-MSDUs of equal length until the length of the sub-MSDUs is less than or equal to the difference in value between the maximum data length and the sum of the physical layer and MAC layer cost lengths; - generating the corresponding CF's to generate respective aggregated MPDUs until the length of the aggregated MPDU is less than the difference mentioned in step (iii.3); and - transmitting the PPDU.