1. 04 10月, 2011 1 次提交
    • E
      mac80211: pass vif param to conf_tx() callback · 8a3a3c85
      Eliad Peller 提交于
      tx params should be configured per interface.
      add ieee80211_vif param to the conf_tx callback,
      and change all the drivers that use this callback.
      
      The following spatch was used:
      @rule1@
      struct ieee80211_ops ops;
      identifier conf_tx_op;
      @@
      	ops.conf_tx = conf_tx_op;
      
      @rule2@
      identifier rule1.conf_tx_op;
      identifier hw, queue, params;
      @@
      	conf_tx_op (
      -		struct ieee80211_hw *hw,
      +		struct ieee80211_hw *hw, struct ieee80211_vif *vif,
      		u16 queue,
      		const struct ieee80211_tx_queue_params *params) {...}
      Signed-off-by: NEliad Peller <eliad@wizery.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      8a3a3c85
  2. 11 8月, 2011 1 次提交
    • J
      drivers/net/wireless/wl1251: add missing kfree · 059c4383
      Julia Lawall 提交于
      In each case, the kfree already at the end of the function is also needed
      in the error case.
      
      A simplified version of the semantic match that finds this problem is as
      follows: (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @exists@
      local idexpression x;
      statement S,S1;
      expression E;
      identifier fl;
      expression *ptr != NULL;
      @@
      
      x = \(kmalloc\|kzalloc\|kcalloc\)(...);
      ...
      if (x == NULL) S
      <... when != x
           when != if (...) { <+...kfree(x)...+> }
           when any
           when != true x == NULL
      x->fl
      ...>
      (
      if (x == NULL) S1
      |
      if (...) { ... when != x
                     when forall
      (
       return \(0\|<+...x...+>\|ptr\);
      |
      * return ...;
      )
      }
      )
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      059c4383
  3. 09 8月, 2011 1 次提交
  4. 07 6月, 2011 1 次提交
  5. 08 4月, 2011 2 次提交
    • J
      wl1251: Add support for idle mode · 1e5f52de
      Jarkko Nikula 提交于
      On Nokia N900 the wl1251 consumes the most power when the interface is up
      but not associated to access point (that supports PSM). In terms of battery
      current consumption, the consumption is ~180 mA higher when the interface is
      up but not associated and only ~5 mA higher when associated compared to
      interface down and driver not loaded cases.
      
      This patch adds support for the mac80211 idle notifications. Chip is put into
      idle very much the same way when entering into PSM by utilizing the Extreme
      Low Power (ELP) mode. I.e. idle is entered by setting necessary conditions
      in wl1251_ps_set_mode followed by a call to wl1251_ps_elp_sleep.
      
      It seems it is just enough the authorize ELP mode followed by
      CMD_DISCONNECT (thanks to Kalle Valo about the idea to use it).
      Without disconnect command the chip remains somewhat active and stays
      consuming ~20 mA. Idle mode is left by same way than PSM. The wl1251_join
      call is used to revert the CMD_DISCONNECT. Without it association to AP
      doesn't work when trying second time.
      
      With this patch the interface up but not associated case the battery current
      consumption is less than 1 mA higher compared to interface down case.
      Signed-off-by: NJarkko Nikula <jhnikula@gmail.com>
      Acked-by: NKalle Valo <kvalo@adurom.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      1e5f52de
    • J
      wl1251: Prepare for idle mode support · a0bbb58b
      Jarkko Nikula 提交于
      RFC for WL1251 idle mode support brought a few issues that are worth to
      update before adding the idle mode support.
      
      Since the idle mode can reuse the code that is now used in Power Save Mode
      (PSM), the flag psm in struct wl1251 is changed to variable station_mode
      to be able to distinguish between PSM and idle modes.
      
      As the station mode is different than the power power save mode command
      that is sent to chip, the enum wl1251_cmd_ps_mod values are used only when
      communicating with the chip and new enum wl1251_station_mode values are used
      inside the driver.
      
      Confusing comment about psm and elp relation is removed since the PSM is
      actually activated by putting the chip into Entreme Low Power (ELP) mode.
      Signed-off-by: NJarkko Nikula <jhnikula@gmail.com>
      Acked-by: NKalle Valo <kvalo@adurom.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      a0bbb58b
  6. 31 3月, 2011 1 次提交
  7. 29 3月, 2011 1 次提交
  8. 12 3月, 2011 2 次提交
  9. 10 3月, 2011 1 次提交
  10. 26 2月, 2011 1 次提交
    • J
      mac80211: make tx() operation return void · 7bb45683
      Johannes Berg 提交于
      The return value of the tx operation is commonly
      misused by drivers, leading to errors. All drivers
      will drop frames if they fail to TX the frame, and
      they must also properly manage the queues (if they
      didn't, mac80211 would already warn).
      
      Removing the ability for drivers to return a BUSY
      value also allows significant cleanups of the TX
      TX handling code in mac80211.
      
      Note that this also fixes a bug in ath9k_htc, the
      old "return -1" there was wrong.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Tested-by: Sedat Dilek <sedat.dilek@googlemail.com> [ath5k]
      Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> [rt2x00]
      Acked-by: Larry Finger <Larry.Finger@lwfinger.net> [b43, rtl8187, rtlwifi]
      Acked-by: Luciano Coelho <coelho@ti.com> [wl12xx]
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      7bb45683
  11. 24 2月, 2011 1 次提交
  12. 04 2月, 2011 7 次提交
  13. 22 1月, 2011 1 次提交
    • B
      cfg80211: Extend channel to frequency mapping for 802.11j · 59eb21a6
      Bruno Randolf 提交于
      Extend channel to frequency mapping for 802.11j Japan 4.9GHz band, according to
      IEEE802.11 section 17.3.8.3.2 and Annex J. Because there are now overlapping
      channel numbers in the 2GHz and 5GHz band we can't map from channel to
      frequency without knowing the band. This is no problem as in most contexts we
      know the band. In places where we don't know the band (and WEXT compatibility)
      we assume the 2GHz band for channels below 14.
      
      This patch does not implement all channel to frequency mappings defined in
      802.11, it's just an extension for 802.11j 20MHz channels. 5MHz and 10MHz
      channels as well as 802.11y channels have been omitted.
      
      The following drivers have been updated to reflect the API changes:
      iwl-3945, iwl-agn, iwmc3200wifi, libertas, mwl8k, rt2x00, wl1251, wl12xx.
      The drivers have been compile-tested only.
      Signed-off-by: NBruno Randolf <br1@einfach.org>
      Signed-off-by: NBrian Prodoehl <bprodoehl@gmail.com>
      Acked-by: NLuciano Coelho <coelho@ti.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      59eb21a6
  14. 03 1月, 2011 1 次提交
  15. 23 12月, 2010 1 次提交
  16. 21 12月, 2010 1 次提交
  17. 16 11月, 2010 3 次提交
  18. 26 10月, 2010 1 次提交
  19. 12 10月, 2010 2 次提交