Hi all,

I'm new to openwrt and have been working on modifying the wireless driver
for the last month.  We currently have FCC license for 5 GHz band which we
need to test.  The current wireless cards we have work well with ath5k
driver.  I have update regulatory.bin with the band which we plan to test
under US and default settings.  The problem is I need to modify the channel
listing. I have put debug coding into the ath5k and cfg80211 trying to find
where sband->n_channels is setup but no luck.  It seems sband->n_channels
is setup before initializing the hardware.  Does anyone know where I can
find where sband->n_channels is configured.

Code snippet from reg.c handle_band

struct wiphy *wiphy;
struct ieee80211_supported_band *sband;

sband = wiphy->bands[band]
for (i = 0; i < sband->n_channels; i++)
handle_channel(wiphy, initiator, band, i);


Chris
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to