rtwn(4): fix build with 'options IEEE80211_SUPPORT_SUPERG'
This commit is contained in:
parent
a2a7409151
commit
1a58c70409
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=307577
@ -216,7 +216,7 @@ rtwn_report_intr(struct rtwn_usb_softc *uc, struct usb_xfer *xfer,
|
||||
* NB: this will executed only when 'report' bit is set.
|
||||
*/
|
||||
if (sc->sc_tx_n_active > 0 && --sc->sc_tx_n_active <= 1)
|
||||
rtwn_cmd_sleepable(uc, NULL, 0, rtwn_ff_flush_all);
|
||||
rtwn_cmd_sleepable(sc, NULL, 0, rtwn_ff_flush_all);
|
||||
#endif
|
||||
break;
|
||||
case RTWN_RX_OTHER:
|
||||
@ -327,7 +327,7 @@ rtwn_bulk_rx_callback(struct usb_xfer *xfer, usb_error_t error)
|
||||
*/
|
||||
#ifdef IEEE80211_SUPPORT_SUPERG
|
||||
if (!(sc->sc_flags & RTWN_FW_LOADED))
|
||||
rtwn_cmd_sleepable(uc, NULL, 0, rtwn_ff_flush_all);
|
||||
rtwn_cmd_sleepable(sc, NULL, 0, rtwn_ff_flush_all);
|
||||
#endif
|
||||
|
||||
/* Kick-start more transmit in case we stalled */
|
||||
|
@ -207,7 +207,7 @@ rtwn_bulk_tx_callback(struct usb_xfer *xfer, usb_error_t error)
|
||||
* XXX TODO: just make this a callout timer schedule so we can
|
||||
* flush the FF staging queue if we're approaching idle.
|
||||
*/
|
||||
rtwn_cmd_sleepable(uc, NULL, 0, rtwn_ff_flush_all);
|
||||
rtwn_cmd_sleepable(sc, NULL, 0, rtwn_ff_flush_all);
|
||||
}
|
||||
#endif
|
||||
/* Kick-start more transmit */
|
||||
|
Loading…
Reference in New Issue
Block a user