mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Don't call av_set_tim() if it's NULL.
This happens during a scan in STA mode; any queued data frames will be power save queued but as there's no TIM in STA mode, it panics. This was introduced by me when I disabled my driver-aware power save handling support.
This commit is contained in:
parent
3345c65be0
commit
04cdca73d9
1 changed files with 2 additions and 0 deletions
|
|
@ -1236,6 +1236,8 @@ ath_tx_setds(struct ath_softc *sc, struct ath_buf *bf)
|
|||
struct ath_desc *ds = bf->bf_desc;
|
||||
struct ath_hal *ah = sc->sc_ah;
|
||||
|
||||
bzero(bf->bf_desc, sc->sc_tx_desclen * bf->bf_nseg);
|
||||
|
||||
ath_hal_setuptxdesc(ah, ds
|
||||
, bf->bf_state.bfs_pktlen /* packet length */
|
||||
, bf->bf_state.bfs_hdrlen /* header length */
|
||||
|
|
|
|||
Loading…
Reference in a new issue