def detect_deauth(fm): """Detect deauth attacks by monitoring the deauth frame (fm.subtype==12).""" sniff(prn=detect_deauth_callback)