Heres my initial thought, we can leave the script as it is and look for wlan, this should cover most intel / realtek drivers. Then, add a simple check so that if wlan is not found then look for iwlwifi as a secondary for broadcom drivers.
The following regex should be able to look for L1 Enabled; Disabling L0S
The output from comment #3 is from my system,
The output pasted below from Brendan shows
[85517.817496] iwlwifi 0000:02:00.0: L1 Enabled; Disabling L0S
[85517.824637] iwlwifi 0000:02:00.0: Radio type=0x1-0x2-0x0
Note: there is no "<" preceding the L1 Enabled.
Heres my initial thought, we can leave the script as it is and look for wlan, this should cover most intel / realtek drivers. Then, add a simple check so that if wlan is not found then look for iwlwifi as a secondary for broadcom drivers.
The following regex should be able to look for L1 Enabled; Disabling L0S
re.compile( "\[(.*) \] iwlwifi.* *L1 Disabled; Enabling L0S")