Page MenuHomeFreeBSD

net80211: split scan_task() (#3) (into scan_start() and scan_curchan_task() functions)
ClosedPublic

Authored by avos on Jan 30 2016, 10:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 5, 6:23 AM
Unknown Object (File)
Thu, Mar 28, 2:30 PM
Unknown Object (File)
Jan 7 2024, 8:17 PM
Unknown Object (File)
Nov 10 2023, 5:26 AM
Unknown Object (File)
Nov 9 2023, 1:19 PM
Unknown Object (File)
Nov 8 2023, 5:24 AM
Unknown Object (File)
Nov 4 2023, 4:24 PM
Unknown Object (File)
Oct 27 2023, 7:12 AM
Subscribers

Details

Summary

(This part should fix the problem, described in https://lists.freebsd.org/pipermail/freebsd-wireless/2016-January/006420.html)

  • Rename ss_scan_task into ss_scan_start (better describes it's current purpose)
  • Utilize taskqueue_*_timeout() functions instead of current mechanism:
    • reschedule scan_curchan_task() via taskqueue_enqueue_timeout() for every 'maxdwell' msecs (will replace infinite loop + sleeping for 'maxdwell' period via cv_wait());
    • rerun the task immediately when an external event occurs (instead of waking it up via cv_signal())

Also, use mtx_sleep() to wait for null frame transmission (allows to drop conditional variable).

Test Plan

Tested with:

  • Intel 3945BG, STA mode;
  • RTL8188EU, STA mode.

Diff Detail

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

Event Timeline

avos retitled this revision from to net80211: split scan_task() (#3) (into scan_start() and scan_curchan_task() functions).
avos updated this object.
avos edited the test plan for this revision. (Show Details)
avos added a reviewer: adrian.
avos set the repository for this revision to rS FreeBSD src repository - subversion.
adrian edited edge metadata.
This revision is now accepted and ready to land.Feb 29 2016, 7:28 AM
This revision was automatically updated to reflect the committed changes.