Page MenuHomeFreeBSD

wpi, iwn: implement ic_getradiocaps method
ClosedPublic

Authored by avos on Jan 11 2016, 11:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 10, 3:51 PM
Unknown Object (File)
Thu, Dec 5, 8:31 PM
Unknown Object (File)
Nov 13 2024, 1:18 PM
Unknown Object (File)
Oct 2 2024, 8:14 AM
Unknown Object (File)
Oct 2 2024, 8:06 AM
Unknown Object (File)
Sep 23 2024, 10:24 PM
Unknown Object (File)
Sep 14 2024, 4:35 AM
Unknown Object (File)
Sep 12 2024, 6:44 AM
Subscribers

Details

Summary

This will allow to restore channel list after switching interface to more restrictive regdomain.

An example:

  1. ifconfig wlan0 down
  2. ifconfig wlan0 list chan

Channel 1 : 2412 MHz 11g Channel 8 : 2447 MHz 11g
Channel 2 : 2417 MHz 11g Channel 9 : 2452 MHz 11g
Channel 3 : 2422 MHz 11g Channel 10 : 2457 MHz 11g
Channel 4 : 2427 MHz 11g Channel 11 : 2462 MHz 11g
Channel 5 : 2432 MHz 11g Channel 12 : 2467* MHz 11g
Channel 6 : 2437 MHz 11g Channel 13 : 2472* MHz 11g
Channel 7 : 2442 MHz 11g

  1. ifconfig wlan0 regdomain FCC country US
  2. ifconfig wlan0 list chan

Channel 1 : 2412 MHz 11g Channel 7 : 2442 MHz 11g
Channel 2 : 2417 MHz 11g Channel 8 : 2447 MHz 11g
Channel 3 : 2422 MHz 11g Channel 9 : 2452 MHz 11g
Channel 4 : 2427 MHz 11g Channel 10 : 2457 MHz 11g
Channel 5 : 2432 MHz 11g Channel 11 : 2462 MHz 11g
Channel 6 : 2437 MHz 11g

  1. ifconfig wlan0 regdomain NONE country UA
  2. ifconfig wlan0 list chan

Channel 1 : 2412 MHz 11g Channel 7 : 2442 MHz 11g
Channel 2 : 2417 MHz 11g Channel 8 : 2447 MHz 11g
Channel 3 : 2422 MHz 11g Channel 9 : 2452 MHz 11g
Channel 4 : 2427 MHz 11g Channel 10 : 2457 MHz 11g
Channel 5 : 2432 MHz 11g Channel 11 : 2462 MHz 11g
Channel 6 : 2437 MHz 11g <<< 12 and 13 channels are missing

Test Plan

Tested with Intel 3945BG only.

Diff Detail

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

Event Timeline

avos retitled this revision from to wpi, iwn: implement ic_getradiocaps method.
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.

looks good to me!

This revision is now accepted and ready to land.Jan 11 2016, 11:02 PM
This revision was automatically updated to reflect the committed changes.