diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-21 20:06:49 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-21 20:06:49 +0000 |
commit | d2f4cca420ecfa2410a7c8149dd342ab3901848e (patch) | |
tree | e84b34dc116232a5ccf25e332e55d36069df63e5 | |
parent | 4643ae59db2603274065794288aa9d1588e8f032 (diff) |
add SIOCSIWAP to wlcompat
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@702 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/openwrt/wlcompat.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/package/openwrt/wlcompat.c b/package/openwrt/wlcompat.c index f96b987476..fdcb36cc99 100644 --- a/package/openwrt/wlcompat.c +++ b/package/openwrt/wlcompat.c @@ -302,6 +302,16 @@ static int wlcompat_ioctl(struct net_device *dev, } break; } + case SIOCSIWAP: + { + if (wrqu->ap_addr.sa_family != ARPHRD_ETHER) + return -EINVAL; + + if (wl_ioctl(dev,WLC_SET_BSSID,wrqu->ap_addr.sa_data,6) < 0) + return -EINVAL; + + break; + } case SIOCGIWAP: { wrqu->ap_addr.sa_family = ARPHRD_ETHER; @@ -513,7 +523,7 @@ static const iw_handler wlcompat_handler[] = { iw_handler_get_spy, /* SIOCGIWSPY */ iw_handler_set_thrspy, /* SIOCSIWTHRSPY */ iw_handler_get_thrspy, /* SIOCGIWTHRSPY */ - NULL, /* SIOCSIWAP */ + wlcompat_ioctl, /* SIOCSIWAP */ wlcompat_ioctl, /* SIOCGIWAP */ NULL, /* -- hole -- */ NULL, /* SIOCGIWAPLIST */ |