Page MenuHomeFreeBSD

net80211: fix checks for (*iv_preamble_update)/(*iv_ht_protmode_update)
ClosedPublic

Authored by bz on Jan 29 2024, 9:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 1, 9:27 AM
Unknown Object (File)
Sun, Mar 22, 1:52 PM
Unknown Object (File)
Mon, Mar 9, 7:15 PM
Unknown Object (File)
Feb 8 2026, 7:28 AM
Unknown Object (File)
Feb 8 2026, 4:00 AM
Unknown Object (File)
Feb 3 2026, 4:18 PM
Unknown Object (File)
Jan 31 2026, 2:11 AM
Unknown Object (File)
Dec 15 2025, 2:08 AM

Details

Summary

Both vap_update_preamble() and vap_update_ht_protmode() also check for
(*iv_erp_protmode_update)() rather than (*iv_preamble_update)()
or (*iv_ht_protmode_update)() before calling the later.
Use the appropriate NULL-function-pointer checks before calling it.

MFC after: 3 days

Test Plan

all three seem unused in the tree so no actual problem (yet)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable