add wlc commands for setting 802.11d and 802.11h mode, disable both by default (helps...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 20 Dec 2006 05:07:11 +0000 (05:07 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 20 Dec 2006 05:07:11 +0000 (05:07 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5874 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/broadcom-wl/files/lib/wifi/broadcom.sh
package/broadcom-wl/src/wlc/wlc.c

index d423288..71f81a7 100644 (file)
@@ -211,6 +211,8 @@ mssid $mssid
 apsta $apsta
 infra $infra
 ${wet:+wet 1}
+802.11d 0
+802.11h 0
 
 radio ${radio:-1}
 macfilter 0
index ea56c1a..382e83a 100644 (file)
@@ -900,6 +900,20 @@ static const struct wlc_call wlc_calls[] = {
                .desc = "WME ACK disable request",
        },
        {
+               .name = "802.11d",
+               .param = INT,
+               .handler = wlc_ioctl,
+               .data.num = ((WLC_GET_REGULATORY << 16) | WLC_SET_REGULATORY),
+               .desc = "Enable/disable 802.11d regulatory management",
+       },
+       {
+               .name = "802.11h",
+               .param = INT,
+               .handler = wlc_ioctl,
+               .data.num = ((WLC_GET_SPECT_MANAGMENT << 16) | WLC_SET_SPECT_MANAGMENT),
+               .desc = "Enable/disable 802.11h spectrum management",
+       },
+       {
                .name = "fragthresh",
                .param = INT,
                .handler = wlc_iovar,