1. 20 11月, 2015 1 次提交
  2. 16 11月, 2015 1 次提交
  3. 27 10月, 2015 2 次提交
  4. 25 10月, 2015 1 次提交
  5. 17 10月, 2015 2 次提交
  6. 08 10月, 2015 2 次提交
  7. 29 9月, 2015 5 次提交
  8. 19 7月, 2015 1 次提交
  9. 15 7月, 2015 2 次提交
  10. 18 6月, 2015 1 次提交
  11. 10 6月, 2015 1 次提交
    • J
      mac80211: convert HW flags to unsigned long bitmap · 30686bf7
      Johannes Berg 提交于
      As we're running out of hardware capability flags pretty quickly,
      convert them to use the regular test_bit() style unsigned long
      bitmaps.
      
      This introduces a number of helper functions/macros to set and to
      test the bits, along with new debugfs code.
      
      The occurrences of an explicit __clear_bit() are intentional, the
      drivers were never supposed to change their supported bits on the
      fly. We should investigate changing this to be a per-frame flag.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      30686bf7
  12. 31 5月, 2015 1 次提交
  13. 08 5月, 2015 1 次提交
  14. 24 4月, 2015 1 次提交
    • J
      mac80211: remove support for IFF_PROMISC · df140465
      Johannes Berg 提交于
      This support is essentially useless as typically networks are encrypted,
      frames will be filtered by hardware, and rate scaling will be done with
      the intended recipient in mind. For real monitoring of the network, the
      monitor mode support should be used instead.
      
      Removing it removes a lot of corner cases.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      df140465
  15. 20 3月, 2015 1 次提交
  16. 09 3月, 2015 1 次提交
  17. 07 3月, 2015 1 次提交
  18. 27 2月, 2015 2 次提交
    • A
      staging: vt6656: replace memcpy by ether_addr_copy · c5f9e99b
      Aya Mahfouz 提交于
      This patch fixes the following checkpatch.pl warning:
      
      Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are
      __aligned(2)
      
      The changes were applied using the following coccinelle
      rule:
      @@ expression e1, e2; @@
      - memcpy(e1, e2, ETH_ALEN);
      + ether_addr_copy(e1, e2);
      
      All variables defined in vnt_mac_set_key start at even offsets
      making the variables aligned to the u16 datatype.
      Signed-off-by: NAya Mahfouz <mahfouz.saif.elyazal@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c5f9e99b
    • A
      Staging: vt6656: replace memcpy() by ether_addr_copy() using coccinelle and pack variable · 1aba0121
      aybuke ozdemir 提交于
      This patch focuses on fixing the following warning generated
      by checkpatch.pl for the file rxtx.c
      
      Prefer ether_addr_copy() over memcpy() if the Ethernet addresses
      are __aligned(2)
      
      @@ expression e1, e2; @@
      
      - memcpy(e1, e2, ETH_ALEN);
      + ether_addr_copy(e1, e2);
      
      According to ether_addr_copy() description and functionality,
      all Ethernet addresses should align to the u16 datatype.
      The changes were applied using the following coccinelle rule:
      
      Here is the output of pahole for the relevant datastructures:
      struct vnt_usb_send_context {
              void *                     priv;                 /*     0     8*/
              struct sk_buff *           skb;                  /*     8     8*/
              struct urb *               urb;                  /*    16     8*/
              struct ieee80211_hdr *     hdr;                  /*    24     8*/
              unsigned int               buf_len;              /*    32     4*/
              u32                        frame_len;            /*    36     4*/
              u16                        tx_hdr_size;          /*    40     2*/
              u16                        tx_rate;              /*    42     2*/
              u8                         type;                 /*    44     1*/
              u8                         pkt_no;               /*    45     1*/
              u8                         pkt_type;             /*    46     1*/
              u8                         need_ack;             /*    47     1*/
              u8                         fb_option;            /*    48     1*/
              bool                       in_use;               /*    49     1*/
              unsigned char              data[2900];           /*    50  2900*/
              /* --- cacheline 46 boundary (2944 bytes) was 6 bytes ago --- */
      
              /* size: 2952, cachelines: 47, members: 15 */
              /* padding: 2 */
              /* last cacheline: 8 bytes */
      };
      
      struct ieee80211_key_conf {
              u32                        cipher;               /*     0     4*/
              u8                         icv_len;              /*     4     1*/
              u8                         iv_len;               /*     5     1*/
              u8                         hw_key_idx;           /*     6     1*/
              u8                         flags;                /*     7     1*/
              s8                         keyidx;               /*     8     1*/
              u8                         keylen;               /*     9     1*/
              u8                         key[0];               /*    10     0*/
      
              /* size: 12, cachelines: 1, members: 8 */
              /* padding: 2 */
              /* last cacheline: 12 bytes */
      };
      
      struct vnt_mic_hdr {
              u8                         id;                   /*     0     1*/
              u8                         tx_priority;          /*     1     1*/
              u8                         mic_addr2[6];         /*     2     6*/
              u8                         ccmp_pn[6];           /*     8     6*/
              __be16                     payload_len;          /*    14     2*/
              __be16                     hlen;                 /*    16     2*/
              __le16                     frame_control;        /*    18     2*/
              u8                         addr1[6];             /*    20     6*/
              u8                         addr2[6];             /*    26     6*/
              u8                         addr3[6];             /*    32     6*/
              __le16                     seq_ctrl;             /*    38     2*/
              u8                         addr4[6];             /*    40     6*/
              u16                        packing;              /*    46     2*/
      
              /* size: 48, cachelines: 1, members: 13 */
              /* last cacheline: 48 bytes */
      };
      Signed-off-by: Naybuke ozdemir <aybuke.147@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      1aba0121
  19. 07 2月, 2015 2 次提交
  20. 25 1月, 2015 1 次提交
    • H
      staging: vt6656: fix Prefer ether_addr_copy() over memcpy() if the Ethernet... · 48eaa7f5
      Heba Aamer 提交于
      staging: vt6656: fix Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2)
      
      This patch fixes the following checkpatch.pl warning:
      fix Prefer ether_addr_copy() over memcpy()
      if the Ethernet addresses are __aligned(2)
      
      Pahole showed that the 2 structs are aligned to u16
      
      struct vnt_mic_hdr {
              u8                         id;                   /*     0     1 */
              u8                         tx_priority;          /*     1     1 */
              u8                         mic_addr2[6];         /*     2     6 */
              u8                         ccmp_pn[6];           /*     8     6 */
              __be16                     payload_len;          /*    14     2 */
              __be16                     hlen;                 /*    16     2 */
              __le16                     frame_control;        /*    18     2 */
              u8                         addr1[6];             /*    20     6 */
              u8                         addr2[6];             /*    26     6 */
              u8                         addr3[6];             /*    32     6 */
              __le16                     seq_ctrl;             /*    38     2 */
              u8                         addr4[6];             /*    40     6 */
              u16                        packing;              /*    46     2 */
      
              /* size: 48, cachelines: 1, members: 13 */
              /* last cacheline: 48 bytes */
      };
      
      struct ieee80211_hdr {
              __le16                     frame_control;        /*     0     2 */
              __le16                     duration_id;          /*     2     2 */
              u8                         addr1[6];             /*     4     6 */
              u8                         addr2[6];             /*    10     6 */
              u8                         addr3[6];             /*    16     6 */
              __le16                     seq_ctrl;             /*    22     2 */
              u8                         addr4[6];             /*    24     6 */
      
              /* size: 30, cachelines: 1, members: 7 */
              /* last cacheline: 30 bytes */
      };
      Signed-off-by: NHeba Aamer <heba93aamer@gmail.com>
      Reviewed-by: NAya Mahfouz <mahfouz.saif.elyazal@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      48eaa7f5
  21. 13 1月, 2015 6 次提交
  22. 20 11月, 2014 1 次提交
  23. 20 10月, 2014 1 次提交
  24. 29 9月, 2014 1 次提交
  25. 24 9月, 2014 1 次提交