1. 08 Feb, 2013 15 commits
  2. 04 Feb, 2013 16 commits
    • Marco Porsch's avatar
      mac80211: mesh power save basics · 3f52b7e3
      Marco Porsch authored
      Add routines to
      - maintain a PS mode for each peer and a non-peer PS mode
      - indicate own PS mode in transmitted frames
      - track neighbor STAs power modes
      - buffer frames when neighbors are in PS mode
      - add TIM and Awake Window IE to beacons
      - release frames in Mesh Peer Service Periods
      
      Add local_pm to sta_info to represent the link-specific power
      mode at this station towards the remote station. When a peer
      link is established, use the default power mode stored in mesh
      config. Update the PS status if the peering status of a neighbor
      changes.
      Maintain a mesh power mode for non-peer mesh STAs. Set the
      non-peer power mode to active mode during peering. Authenticated
      mesh peering is currently not working when either node is
      configured to be in power save mode.
      
      Indicate the current power mode in transmitted frames. Use QoS
      Nulls to indicate mesh power mode transitions.
      For performance reasons, calls to the function setting the frame
      flags are placed in HWMP routing routines, as there the STA
      pointer is already available.
      
      Add peer_pm to sta_info to represent the peer's link-specific
      power mode towards the local station. Add nonpeer_pm to
      represent the peer's power mode towards all non-peer stations.
      Track power modes based on received frames.
      
      Add the ps_data structure to ieee80211_if_mesh (for TIM map, PS
      neighbor counter and group-addressed frame buffer).
      
      Set WLAN_STA_PS flag for STA in PS mode to use the unicast frame
      buffering routines in the tx path. Update num_sta_ps to buffer
      and release group-addressed frames after DTIM beacons.
      
      Announce the awake window duration in beacons if in light or
      deep sleep mode towards any peer or non-peer. Create a TIM IE
      similarly to AP mode and add it to mesh beacons. Parse received
      Awake Window IEs and check TIM IEs for buffered frames.
      
      Release frames towards peers in mesh Peer Service Periods. Use
      the corresponding trigger frames and monitor the MPSP status.
      Append a QoS Null as trigger frame if neccessary to properly end
      the MPSP. Currently, in HT channels MPSPs behave imperfectly and
      show large delay spikes and frame losses.
      Signed-off-by: default avatarMarco Porsch <marco@cozybit.com>
      Signed-off-by: default avatarIvan Bezyazychnyy <ivan.bezyazychnyy@gmail.com>
      Signed-off-by: default avatarMike Krinkin <krinkin.m.u@gmail.com>
      Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      3f52b7e3
    • Johannes Berg's avatar
      cfg80211: wrap BSS kref · 0532d4f1
      Johannes Berg authored
      Add inline wrappers for the BSS struct krefs
      to be able to extend them easily later.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      0532d4f1
    • Johannes Berg's avatar
      cfg80211: remove a local variable · 9537f227
      Johannes Berg authored
      This local variable is only used once, so remove it.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      9537f227
    • Johannes Berg's avatar
      cfg80211: use lockdep to assert lock is held · 4b1af479
      Johannes Berg authored
      Instead of annotating with a comment, add a lockdep
      annotation which also serves as documentation.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      4b1af479
    • Johannes Berg's avatar
      mac80211: send deauth if connection was lost during suspend · 6b684db1
      Johannes Berg authored
      If the driver determined the connection was lost or that
      it couldn't securely maintain the connection when coming
      out of WoWLAN, send a deauth frame to the AP to also let
      it know.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      6b684db1
    • Johannes Berg's avatar
      mac80211: allow transmitting deauth with tainted key · e54faf29
      Johannes Berg authored
      When we had a connection for WoWLAN and after resume it
      needed to be disconnected, the previous commit enabled
      sending a deauth frame to the AP. This frame would not
      go through on MFP-enabled networks as the key for it is
      marked tainted before the frame is transmitted.
      
      Allow a tainted key to be used for deauth frames. Worst
      case, we'll use a wrong key because the PTK was rekeyed
      while suspended, but more likely the PTK is still fine
      and the taint flag really only applies to the GTK(s).
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      e54faf29
    • Johannes Berg's avatar
      cfg80211: move locking into cfg80211_bss_age · 2ca813ad
      Johannes Berg authored
      There's no reason for it to require external
      locking, move it into the function.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      2ca813ad
    • Johannes Berg's avatar
      cfg80211: fix BSS IE allocation comment · 50521aa8
      Johannes Berg authored
      The comment about allocating the IEs together with
      the BSS struct is no longer true, remove it. Also
      fix a typo in the same area.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      50521aa8
    • Johannes Berg's avatar
      mac80211: remove unused SSID from BSS · 3146a7da
      Johannes Berg authored
      The ssid/ssid_len fields in the private BSS
      struct are unused, contrary to the comment
      we do look up the SSID in the few cases we
      need it.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      3146a7da
    • Johannes Berg's avatar
      cfg80211: remove unused cfg80211_get_mesh · 37e08381
      Johannes Berg authored
      As Thomas pointed out, cfg80211_get_mesh() is
      unused and can be removed.
      
      Cc: Thomas Pedersen <thomas@cozybit.com>
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      37e08381
    • Johannes Berg's avatar
      cfg80211: simplify mesh BSS comparison · 3af6341c
      Johannes Berg authored
      Instead of first checking if a BSS is an MBSS
      and then doing the comparisons, inline it all
      into the BSS comparison function. This avoids
      doing the IE searches twice and is also a lot
      less code.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      3af6341c
    • Johannes Berg's avatar
      cfg80211: fix BSS list hidden SSID lookup · 4593c4cb
      Johannes Berg authored
      When trying to find a hidden SSID, the lookup function
      is done wrong; the code is trying to combine the two
      lookups into one, and as a consequence doesn't always
      find the entry at all. To understand this, consider a
      case where multiple BSS entries with the same channel
      and BSSID exist but have different SSID length. Then
      comparing against the probe response SSID length is
      bound to cause problems since the hidden one might be
      either zeroed out or zero-length.
      
      To fix this we need to do two lookups for the two ways
      to hide SSIDs.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      4593c4cb
    • Johannes Berg's avatar
      cfg80211: refactor hidden SSID finding · 5622f5bb
      Johannes Berg authored
      Instead of duplicating the rbtree functions, pass
      an argument to the compare function. This removes
      the code duplication for the two searches.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      5622f5bb
    • Vladimir Kondratiev's avatar
      cfg80211: expand per-station byte counters to 64bit · 42745e03
      Vladimir Kondratiev authored
      In per-station statistics, present 32bit counters are too small
      for practical purposes - with gigabit speeds, it get overlapped
      every few seconds.
      
      Expand counters in the struct station_info to be 64-bit.
      Driver can still fill only 32-bit and indicate in @filled
      only bits like STATION_INFO_[TR]X_BYTES; in case driver provides
      full 64-bit counter, it should also set in @filled
      bit STATION_INFO_[TR]RX_BYTES64
      
      Netlink sends both 32-bit and 64-bit counters, if present, to not
      break userspace.
      Signed-off-by: default avatarVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
      [change to also have 32-bit counters if driver advertises 64-bit]
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      42745e03
    • Johannes Berg's avatar
      mac80211: always allow calling ieee80211_connection_loss() · 682bd38b
      Johannes Berg authored
      With multi-channel, there's a corner case where a driver
      doesn't receive a beacon soon enough to be able to sync
      its timers with the AP. In this case, the only recovery
      (after trying again) is to disconnect from the AP. Allow
      calling ieee80211_connection_loss() for such cases. To
      make that possible, modify the work function to not rely
      on the IEEE80211_HW_CONNECTION_MONITOR flag but use new
      state kept in the interface instead.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      682bd38b
    • Johannes Berg's avatar
      mac80211: send deauth when connection is lost · eef9e54c
      Johannes Berg authored
      If the driver determines the connection is lost,
      send a deauth frame to the AP anyway just in case
      it still considers the connection alive. The frame
      might not go through, but at least we've tried.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      eef9e54c
  3. 03 Feb, 2013 2 commits
  4. 01 Feb, 2013 7 commits
    • Larry Finger's avatar
      rtlwifi: rtl8723ae: Fix W=1 compile warnings · b26f5f09
      Larry Finger authored
      Whe this driver is built with "make W=1", the following warnings are output:
      
      drivers/net/wireless/rtlwifi/rtl8723ae/fw.c:515:5: warning: variable ‘own’ set but not used [-Wunused-but-set-variable]
      drivers/net/wireless/rtlwifi/rtl8723ae/hal_btc.c:1436:5: warning: variable ‘bt_retry_cnt’ set but not used [-Wunused-but-set-variable]
      drivers/net/wireless/rtlwifi/rtl8723ae/hw.c:706:6: warning: variable ‘reg_ratr’ set but not used [-Wunused-but-set-variable]
      drivers/net/wireless/rtlwifi/rtl8723ae/hw.c:2033:41: warning: variable ‘cur_rfstate’ set but not used [-Wunused-but-set-variable]
      drivers/net/wireless/rtlwifi/rtl8723ae/phy.c:620:23: warning: variable ‘radiob_arraylen’ set but not used [-Wunused-but-set-variable]
      drivers/net/wireless/rtlwifi/rtl8723ae/phy.c:619:7: warning: variable ‘radiob_array_table’ set but not used [-Wunused-but-set-variable]
      drivers/net/wireless/rtlwifi/rtl8723ae/phy.c:617:7: warning: variable ‘rtstatus’ set but not used [-Wunused-but-set-variable]
      drivers/net/wireless/rtlwifi/rtl8723ae/phy.c:1534:6: warning: variable ‘bbvalue’ set but not used [-Wunused-but-set-variable]
      drivers/net/wireless/rtlwifi/rtl8723ae/phy.c:1716:6: warning: variable ‘reg_ecc’ set but not used [-Wunused-but-set-variable]
      drivers/net/wireless/rtlwifi/rtl8723ae/phy.c:1715:61: warning: variable ‘reg_ec4’ set but not used [-Wunused-but-set-variable]
      drivers/net/wireless/rtlwifi/rtl8723ae/phy.c:1715:34: warning: variable ‘reg_eac’ set but not used [-Wunused-but-set-variable]
      drivers/net/wireless/rtlwifi/rtl8723ae/trx.c:247:6: warning: variable ‘psaddr’ set but not used [-Wunused-but-set-variable]
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      b26f5f09
    • Larry Finger's avatar
      rtlwifi: rtl8192de: Fix W=1 build warnings · 8925d518
      Larry Finger authored
      when this driver is built with "make W=1", the following warning is printed:
      
      drivers/net/wireless/rtlwifi/rtl8192de/dm.c:1058:5: warning: comparison is always false due to limited range of data type [-Wtype-limits]
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      8925d518
    • Larry Finger's avatar
      rtlwifi: rtl8192cu: Fix W=1 build warning · 0b948341
      Larry Finger authored
      When this driver is built with "make W=1", the following warning is output:
      
      drivers/net/wireless/rtlwifi/rtl8192cu/sw.c:56:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      0b948341
    • Larry Finger's avatar
      rtlwifi: rtl8192c: Fix W=1 warning · 8a8e31cc
      Larry Finger authored
      When this driver is built with "make W=1", the following warning occurs:
      
      drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c:907:4: warning: comparison is always false due to limited range of data type [-Wtype-limits]
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      8a8e31cc
    • Larry Finger's avatar
      rtlwifi: Fix warnings in usb.c · 829323cd
      Larry Finger authored
      Building this driver with "make W=1" results in the following 2 warnings:
      
      drivers/net/wireless/rtlwifi/usb.c:829:21: warning: variable ‘urb_list’ set but not used [-Wunused-but-set-variable]
      drivers/net/wireless/rtlwifi/usb.c:828:23: warning: variable ‘skb_list’ set but not used [-Wunused-but-set-variable]
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      829323cd
    • Larry Finger's avatar
      rtlwifi: Fix many compile warnings when using W=1 · d221ad1a
      Larry Finger authored
      Many warnings like the following arise from a build with W=1 on the
      make line:
      
      warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
      
      Changing the overall debug level storage from unsigned to signed fixes these.
      Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      d221ad1a
    • Xose Vazquez Perez's avatar
      wireless: rt2x00: rt2800pci add id · c4806014
      Xose Vazquez Perez authored
      0x1814,0x359f is a RT3592 802.11a/b/g/n 2x2 WiFi Adapter
      support added by 872834df
      
      Cc: Ivo van Doorn <IvDoorn@gmail.com>
      Cc: Gertjan van Wingerde <gwingerde@gmail.com>
      Cc: Helmut Schaa <helmut.schaa@googlemail.com>
      Cc: John W. Linville <linville@tuxdriver.com>
      Cc: users@rt2x00.serialmonkey.com
      Cc: linux-wireless@vger.kernel.org
      Signed-off-by: default avatarXose Vazquez Perez <xose.vazquez@gmail.com>
      Acked-by: default avatarGertjan van Wingerde <gwingerde@gmail.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      c4806014