Page MenuHomeFreeBSD

rtwn: do not start vap when initialization fails
ClosedPublic

Authored by avos on Jan 24 2016, 7:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 23 2023, 8:39 AM
Unknown Object (File)
Dec 10 2023, 11:10 PM
Unknown Object (File)
Sep 21 2023, 3:10 PM
Unknown Object (File)
Jun 19 2023, 3:15 PM
Unknown Object (File)
May 15 2023, 5:50 AM
Unknown Object (File)
Apr 26 2023, 3:39 PM
Unknown Object (File)
Jan 6 2023, 4:36 PM
Unknown Object (File)
Apr 17 2017, 6:32 PM
Subscribers

Details

Summary
  • Start vap(s) (via ieee80211_start_all()) only when initialization succeeds; stop the first vap otherwise (via ieee80211_stop());
  • Do not try to stop a device multiple times (move (sc->sc_flags & RTWN_RUNNING) check to urtwn_stop_locked()).
Test Plan

untested, compilable

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

avos retitled this revision from to rtwn: do not start vap when initialization fails.
avos updated this object.
avos edited the test plan for this revision. (Show Details)
avos added reviewers: adrian, kevlo.
avos set the repository for this revision to rS FreeBSD src repository - subversion.

please find someone to test these and then I'll OK them

kevlo edited edge metadata.

Works for me. Tested on amd64 with RTL8188CE.

This revision is now accepted and ready to land.Jan 26 2016, 3:14 AM
adrian edited edge metadata.

two testers, positive reviews, good!

This revision was automatically updated to reflect the committed changes.
head/sys/dev/rtwn/if_rtwn.c
3371

An erroneous RTWN_UNLOCK(sc) was removed from here (left from previous version)