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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242881
@ -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 New Issue
Block a user