1. 14 10月, 2010 4 次提交
    • J
      cfg80211: notify drivers about frame registrations · 271733cf
      Johannes Berg 提交于
      Drivers may need to adjust their filters according
      to frame registrations, so notify them about them.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      271733cf
    • M
      ath9k: Fix documentation in rate control · 7a826652
      Mohammed Shafi Shajakhan 提交于
      This fix updates the documenation in Rate Control Table structure
      Signed-off-by: NMohammed Shafi Shajakhan <mshajakhan@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      7a826652
    • B
      ath5k: Move debugfs under ieee80211/[wiphy-name] · d84a35d1
      Ben Greear 提交于
      This automatically keeps things proper when wiphy
      is renamed.
      
      Based on patch by Johannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NBen Greear <greearb@candelatech.com>
      Acked-by: NBruno Randolf <br1@einfach.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      d84a35d1
    • G
      wext: fix alignment problem in serializing 'struct iw_point' · 10d8dad8
      Gerrit Renker 提交于
      wext: fix alignment problem in serializing 'struct iw_point'
      
      This fixes a typo in the definition of the serialized length of struct iw_point:
       a) wireless.h is exported to userspace, the typo causes IW_EV_POINT_PK_LEN
          to be 12 on 64-bit, and 8 on 32-bit systems (causing misalignment);
       b) in compat-64 mode iwe_stream_add_point() memcpys overlap (see below).
      
      The second case in  in compat-64 mode looks like (variable names are as in
      include/net/iw_handler.h:iwe_stream_add_point()):
      
       point_len = IW_EV_COMPAT_POINT_LEN = 8
       lcp_len   = IW_EV_COMPAT_LCP_LEN   = 4
       2nd memcpy: IW_EV_POINT_PK_LEN - IW_EV_LCP_PK_LEN = 12 - 4 = 8
      
       IW_EV_LCP_PK_LEN
       <-------------->                *---> 'extra' data area
       +-------+-------+-------+-------+---------------+------- ...-+
       | len   | cmd   |length | flags |  (empty) -> extra      ... |
       +-------+-------+-------+-------+---------------+------- ...-+
          2       2       2       2          4
      
           lcp_len
       <-------------->                <-!! OVERLAP !!>
       <--1st memcpy--><------- 2nd memcpy ----------->
                                       <---- 3rd memcpy ------- ... >
       <--------- point_len ---------->
      
      This case could cause overrun whenever iw_point.length < 4.
      The other two cases are -
       * 32-bit systems: IW_EV_POINT_PK_LEN - IW_EV_LCP_PK_LEN =  8 - 4 = 4,
         the second memcpy copies exactly the 4 required bytes;
       * 64-bit systems: IW_EV_POINT_PK_LEN - IW_EV_LCP_PK_LEN = 12 - 4 = 8,
         the second memcpy copies a superfluous (but non overlapping) 4 bytes.
      
      The patch changes IW_EV_POINT_PK_LEN to be 8, so that in all 3 cases always only
      the requested iw_point.{length,flags} (both __u16) are copied, avoiding overrrun
      (compat-64) and superfluous copy (64-bit). In addition, the userspace header is
      sanitized (in agreement with version 30 of the wireless tools).
      
      Many thanks to Johannes Berg for help and review with this patch.
      Signed-off-by: NGerrit Renker <gerrit@erg.abdn.ac.uk>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      10d8dad8
  2. 13 10月, 2010 3 次提交
  3. 12 10月, 2010 33 次提交