mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
net80211: fix checks for (*iv_preamble_update)/(*iv_ht_protmode_update)
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.
All seem unused currently so no functional changes expected.
MFC after: 3 days
Fixes: f1481c8d3b
Reviewed by: cc
Differential Revision: https://reviews.freebsd.org/D43655
This commit is contained in:
parent
a27c1350e4
commit
48d689d6ca
|
@ -1047,7 +1047,7 @@ vap_update_preamble(void *arg, int npending)
|
|||
IEEE80211_UNLOCK(ic);
|
||||
|
||||
/* Driver notification */
|
||||
if (vap->iv_erp_protmode_update != NULL)
|
||||
if (vap->iv_preamble_update != NULL)
|
||||
vap->iv_preamble_update(vap);
|
||||
}
|
||||
|
||||
|
@ -1187,7 +1187,7 @@ vap_update_ht_protmode(void *arg, int npending)
|
|||
ic->ic_curhtprotmode);
|
||||
|
||||
/* Driver update */
|
||||
if (vap->iv_erp_protmode_update != NULL)
|
||||
if (vap->iv_ht_protmode_update != NULL)
|
||||
vap->iv_ht_protmode_update(vap);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue