All pastes #145225 Raw Edit

florian_

public c v1 · immutable
#145225 ·published 2006-08-22 21:29 UTC
rendered paste body
Index: target/linux/package/wlcompat/wlcompat.c===================================================================--- target/linux/package/wlcompat/wlcompat.c    (révision 4632)+++ target/linux/package/wlcompat/wlcompat.c    (copie de travail)@@ -37,6 +37,9 @@ static struct iw_statistics wstats; char buf[WLC_IOCTL_MAXLEN];+/* Association list declarations */+#define ASSOCLIST_BUFFERSIZE        8192+ /* The frequency of each channel in MHz */ const long channel_frequency[] = {        2412, 2417, 2422, 2427, 2432, 2437, 2442,@@ -759,6 +762,7 @@ #define WLCOMPAT_GET_TXANT                     SIOCIWFIRSTPRIV + 7 #define WLCOMPAT_SET_BSS_FORCE         SIOCIWFIRSTPRIV + 8 #define WLCOMPAT_GET_BSS_FORCE         SIOCIWFIRSTPRIV + 9+#define WLCOMPAT_GET_ASSOCLIST         SIOCIWFIRSTPRIV + 10 static int wlcompat_private_ioctl(struct net_device *dev,@@ -848,6 +852,12 @@                        *extra = (int) bss_force;                        break;                }+               case WLCOMPAT_GET_ASSOCLIST:+               {+                       if (wl_ioctl(dev, WLC_GET_ASSOCLIST, extra, sizeof(char)*ASSOCLIST_BUFFERSIZE) <0)+                               return -EINVAL;+                       break;+               }                default:                {                        return -EINVAL;@@ -909,6 +919,12 @@                IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1,                "get_bss_force"        },+       {+               WLCOMPAT_GET_ASSOCLIST,+               0,+               IW_PRIV_TYPE_ADDR | IW_PRIV_SIZE_FIXED | ASSOCLIST_BUFFERSIZE,+               "assoclist"+       }, }; static const iw_handler wlcompat_private[] =