1. 31 May, 2013 2 commits
  2. 30 May, 2013 4 commits
  3. 29 May, 2013 4 commits
  4. 25 May, 2013 3 commits
  5. 24 May, 2013 4 commits
  6. 23 May, 2013 3 commits
  7. 03 Apr, 2013 2 commits
  8. 21 Jan, 2013 1 commit
    • Luis R. Rodriguez's avatar
      crda: fix compile warning on pcc for reglib for string.h · 6a7fd50c
      Luis R. Rodriguez authored
      This fixes these compile warnings:
      
      make -j5 -l4 UDEV_RULE_DIR=/lib/udev/rules.d
      REG_BIN=/usr/lib64/crda/regulatory.bin USE_OPENSSL=1
      CC=x86_64-pc-linux-gnu-gcc all_noverify V=1
      x86_64-pc-linux-gnu-gcc -c  -Os -pipe -march=native
      -frecord-gcc-switches -ggdb -Wall -g -DUSE_OPENSSL
      -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `pkg-config --cflags
      openssl` -DCONFIG_LIBNL30 `pkg-config --cflags libnl-3.0` -o crda.o crda.c
      x86_64-pc-linux-gnu-gcc -c  -Os -pipe -march=native
      -frecord-gcc-switches -ggdb -Wall -g -DUSE_OPENSSL
      -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `pkg-config --cflags
      openssl` -DCONFIG_LIBNL30 `pkg-config --cflags libnl-3.0` -o intersect.o
      intersect.c
      ./utils/key2pub.py --ssl pubkeys/linville.key.pub.pem keys-ssl.c
      x86_64-pc-linux-gnu-gcc -c  -Os -pipe -march=native
      -frecord-gcc-switches -ggdb -Wall -g -DUSE_OPENSSL
      -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `pkg-config --cflags
      openssl` -DCONFIG_LIBNL30 `pkg-config --cflags libnl-3.0` -o
      print-regdom.o print-regdom.c
      x86_64-pc-linux-gnu-gcc -c  -Os -pipe -march=native
      -frecord-gcc-switches -ggdb -Wall -g -DUSE_OPENSSL
      -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `pkg-config --cflags
      openssl` -DCONFIG_LIBNL30 `pkg-config --cflags libnl-3.0` -o regdbdump.o
      regdbdump.c
      x86_64-pc-linux-gnu-gcc -c  -Os -pipe -march=native
      -frecord-gcc-switches -ggdb -Wall -g -DUSE_OPENSSL
      -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `pkg-config --cflags
      openssl` -DCONFIG_LIBNL30 `pkg-config --cflags libnl-3.0` -o reglib.o
      reglib.c
      reglib.c: In function ‘country2rd’:
      reglib.c:213:2: warning: implicit declaration of function ‘memset’
      [-Wimplicit-function-declaration]
      reglib.c:213:2: warning: incompatible implicit declaration of built-in
      function ‘memset’ [enabled by default]
      reglib.c: In function ‘reglib_get_rd_alpha2’:
      reglib.c:344:3: warning: implicit declaration of function ‘memcmp’
      [-Wimplicit-function-declaration]
      x86_64-pc-linux-gnu-gcc -Os -pipe -march=native -frecord-gcc-switches
      -ggdb -Wall -g -DUSE_OPENSSL
      -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `pkg-config --cflags
      openssl` -DCONFIG_LIBNL30 `pkg-config --cflags libnl-3.0` -Wl,-O1
      -Wl,--as-needed -Wl,--hash-style=gnu -o crda reglib.o crda.o `pkg-config
      --libs openssl` -lnl-genl-3 -lnl-3   `pkg-config --libs libnl-3.0`
      x86_64-pc-linux-gnu-gcc -Os -pipe -march=native -frecord-gcc-switches
      -ggdb -Wall -g -DUSE_OPENSSL
      -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `pkg-config --cflags
      openssl` -DCONFIG_LIBNL30 `pkg-config --cflags libnl-3.0` -Wl,-O1
      -Wl,--as-needed -Wl,--hash-style=gnu -o intersect reglib.o intersect.o
      print-regdom.o `pkg-config --libs openssl`
      x86_64-pc-linux-gnu-gcc -Os -pipe -march=native -frecord-gcc-switches
      -ggdb -Wall -g -DUSE_OPENSSL
      -DPUBKEY_DIR=\"/etc/wireless-regdb/pubkeys\" `pkg-config --cflags
      openssl` -DCONFIG_LIBNL30 `pkg-config --cflags libnl-3.0` -Wl,-O1
      -Wl,--as-needed -Wl,--hash-style=gnu -o regdbdump reglib.o regdbdump.o
      print-regdom.o `pkg-config --libs openssl`
      Reported-by: 's avatarRichard Farina <sidhayn@gmail.com>
      Signed-off-by: 's avatarLuis R. Rodriguez <mcgrof@do-not-panic.com>
      6a7fd50c
  9. 19 Jan, 2012 8 commits
  10. 18 Jan, 2012 4 commits
  11. 15 Nov, 2011 1 commit
  12. 10 Oct, 2011 2 commits
    • Luis R. Rodriguez's avatar
      crda: add support to send DFS master region · 8cbde045
      Luis R. Rodriguez authored
      wireless-regdb now has support for a DFS master region
      for each country. We must read this from the file and
      send it as an NL80211_ATTR_DFS_REGION attribute.
      
      We add a "creqs" value for the country structure but only
      use the first two bits as that is all we need right now.
      Signed-off-by: 's avatarLuis R. Rodriguez <mcgrof@qca.qualcomm.com>
      8cbde045
    • Luis R. Rodriguez's avatar
      crda: fix null string assumption for alpha2 · e40afba1
      Luis R. Rodriguez authored
      The wireless-regdb only accounts for two bytes for
      the country code but CRDA defined the alpha2 to be
      as a string of length 2, and so does the nl80211 attribute
      policy:
      
              [NL80211_ATTR_REG_ALPHA2] = { .type = NLA_STRING, .len = 2 },
      
      The meaning of a string is it'll be null terminated, so if you
      do not add the null termination a country without the null termination
      will not match up with the nl80211 attribute policy.
      
      This has no impact for us unless we want to use the next available
      pad byte on the wireless-regdb. This fixes CRDA by using a local copy
      of the regdb's alpha2 that is properly null terminated and sending it.
      
      The implications of this change is that new wirelesss-regdb's that
      make use of the next pad byte for a country will get that country
      ignored for regulatory hints sent to the kernel. At this point we
      don't yet know what the next byte will be used for though so this
      has no impact. The second pad byte is being used for DFS and that
      is not impacted by this nor is this change required for it.
      
      Distributions should upgrade though in case we ever do decide to use
      this last precious country byte. I've tested that this indeed fixes
      the bogus issue I saw when instead of using the second pad byte we
      use the first pad byte. Thanks to Johannes for spotting the issue.
      Signed-off-by: 's avatarJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: 's avatarLuis R. Rodriguez <mcgrof@qca.qualcomm.com>
      e40afba1
  13. 03 Oct, 2011 1 commit
  14. 09 Aug, 2011 1 commit