Routines to set/get_wap have recently been added to softmac. The attached patch removes the unused set/get code from the softmac version of bcm43xx_wx.c and adds the SIOCTL links to the new softmac routines.

Larry
Index: bcm43xx_wx.c
===================================================================
--- bcm43xx_wx.c        (revision 1015)
+++ bcm43xx_wx.c        (working copy)
@@ -331,26 +331,6 @@
        return 0;
 }

-static int bcm43xx_wx_set_apmac(struct net_device *net_dev,
-                               struct iw_request_info *info,
-                               union iwreq_data *data,
-                               char *extra)
-{
-       wx_enter();
-       /*TODO*/
-       return 0;
-}
-
-static int bcm43xx_wx_get_apmac(struct net_device *net_dev,
-                               struct iw_request_info *info,
-                               union iwreq_data *data,
-                               char *extra)
-{
-       wx_enter();
-       /*TODO*/
-       return 0;
-}
-
 static int bcm43xx_wx_set_nick(struct net_device *net_dev,
                               struct iw_request_info *info,
                               union iwreq_data *data,
@@ -963,8 +943,8 @@
        /* Informative stuff */
        WX(SIOCGIWRANGE)        = bcm43xx_wx_get_rangeparams,
        /* Access Point manipulation */
-//TODO WX(SIOCSIWAP)           = bcm43xx_wx_set_apmac,
-//TODO WX(SIOCGIWAP)           = bcm43xx_wx_get_apmac,
+       WX(SIOCSIWAP)           = ieee80211softmac_wx_set_wap,
+       WX(SIOCGIWAP)           = ieee80211softmac_wx_get_wap,
        WX(SIOCSIWSCAN)         = ieee80211softmac_wx_trigger_scan,
        WX(SIOCGIWSCAN)         = ieee80211softmac_wx_get_scan_results,
        /* 802.11 specific support */

Reply via email to