Changeset 13111

Show
Ignore:
Timestamp:
10/20/09 17:16:31 (1 month ago)
Author:
BrainSlayer
Message:

move to new lib

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/router/libutils/Makefile

    r13109 r13111  
    3636LDFLAGS += -L. 
    3737OBJS := utils.o shutils.o wl_basic.o linux_timer.o wl_linux.o gpio.o md5c.o crc.o 
    38 WOBJS := wl.o 
     38WOBJS := wl.o wl_macfuncs.o 
    3939 
    4040#defaults.o 
  • src/router/libutils/wl.c

    r13109 r13111  
    9999#include "wireless.h" 
    100100 
    101 int getsocket(void) 
    102 { 
    103         static int s = -1; 
    104  
    105         if (s < 0) { 
    106                 s = socket(AF_INET, SOCK_DGRAM, 0); 
    107                 if (s < 0) 
    108                         err(1, "socket(SOCK_DGRAM)"); 
    109         } 
    110         return s; 
    111 } 
    112101 
    113102u_int ieee80211_mhz2ieee(u_int freq) 
  • src/router/libutils/wl_basic.c

    r13109 r13111  
    99#include <bcmnvram.h> 
    1010#include <math.h> 
    11  
    1211 
    1312#ifdef HAVE_RT2880 
  • src/router/libutils/wl_linux.c

    r12674 r13111  
    3232#include <wlioctl.h> 
    3333#include <wlutils.h> 
     34 
     35 
     36int getsocket(void) 
     37{ 
     38        static int s = -1; 
     39 
     40        if (s < 0) { 
     41                s = socket(AF_INET, SOCK_DGRAM, 0); 
     42                if (s < 0) 
     43                        err(1, "socket(SOCK_DGRAM)"); 
     44        } 
     45        return s; 
     46} 
     47 
    3448 
    3549int wl_ioctl(char *name, int cmd, void *buf, int len)