1. 20 2月, 2010 1 次提交
    • P
      Introduce PCMCIA_DEVICE_PROD_ID3 · fbc87d67
      Pavel Roskin 提交于
      ...and use it in hostap_cs and orinoco_cs.
      
      Another PCMCIA device with Intersil Prism chipset has been reported:
      
      Socket 0:
        product info: "Gigabyte", "GN-WLM01_P25L_ADAPTER", "ISL37300P", "Eval-RevA"
        manfid: 0x02e0, 0x1011
        function: 6 (network)
      
      As it's the case with some other Prism based devices, the third ID
      string contains a design name that should be sufficient to identify the
      card as having Intersil Prism chipset and thus compatible with both
      orinoco_cs and hostap_cs.
      
      Introduce PCMCIA_DEVICE_PROD_ID3 that matches the third ID string only.
      
      Use it in orinoco_cs and hostap_cs to match cards with the third ID
      string indicating Prism chipset.  Remove corresponding entries that use
      PCMCIA_DEVICE_PROD_ID123.
      Reported-by: NOzzy <ozzymud@gmail.com>
      Signed-off-by: NPavel Roskin <proski@gnu.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      fbc87d67
  2. 22 12月, 2009 1 次提交
  3. 29 11月, 2009 2 次提交
    • D
      pcmcia: rework the irq_req_t typedef · 5fa9167a
      Dominik Brodowski 提交于
      Most of the irq_req_t typedef'd struct can be re-worked quite
      easily:
      
      (1) IRQInfo2 was unused in any case, so drop it.
      
      (2) IRQInfo1 was used write-only, so drop it.
      
      (3) Instance (private data to be passed to the IRQ handler):
      	Most PCMCIA drivers using pcmcia_request_irq() to actually
      	register an IRQ handler set the "dev_id" to the same pointer
      	as the "priv" pointer in struct pcmcia_device. Modify the two
      	exceptions (ipwireless, ibmtr_cs) to also work this waym and
      	set the IRQ handler's "dev_id" to p_dev->priv unconditionally.
      
      (4) Handler is to be of type irq_handler_t.
      
      (5) Handler != NULL already tells whether an IRQ handler is present.
      	Therefore, we do not need the IRQ_HANDLER_PRESENT flag in
      	irq_req_t.Attributes.
      
      CC: netdev@vger.kernel.org
      CC: linux-bluetooth@vger.kernel.org
      CC: linux-ide@vger.kernel.org
      CC: linux-wireless@vger.kernel.org
      CC: linux-scsi@vger.kernel.org
      CC: alsa-devel@alsa-project.org
      CC: Jaroslav Kysela <perex@perex.cz>
      CC: Jiri Kosina <jkosina@suse.cz>
      CC: Karsten Keil <isdn@linux-pingi.de>
      for the Bluetooth parts: Acked-by: Marcel Holtmann <marcel@holtmann.org>
      Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
      5fa9167a
    • D
      pcmcia: remove deprecated handle_to_dev() macro · dd2e5a15
      Dominik Brodowski 提交于
      Update remaining users and remove deprecated handle_to_dev() macro
      
      CC: Harald Welte <laforge@gnumonks.org>
      CC: netdev@vger.kernel.org
      CC: linux-wireless@vger.kernel.org
      CC: linux-serial@vger.kernel.org
      Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
      dd2e5a15
  4. 09 11月, 2009 2 次提交
    • D
      pcmcia: use dynamic debug infrastructure, deprecate CS_CHECK (wireless) · 2caff147
      Dominik Brodowski 提交于
      Convert PCMCIA drivers to use the dynamic debug infrastructure, instead of
      requiring manual settings of PCMCIA_DEBUG.
      
      Also, remove all usages of the CS_CHECK macro and replace them with proper
      Linux style calling and return value checking. The extra error reporting may
      be dropped, as the PCMCIA core already complains about any (non-driver-author)
      errors.
      
      CC: linux-wireless@vger.kernel.org
      CC: netdev@vger.kernel.org
      Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
      2caff147
    • D
      pcmcia: use pre-determined values · 7d2e8d00
      Dominik Brodowski 提交于
      A few PCMCIA network drivers can make use of values provided by the pcmcia
      core, instead of tedious, independent CIS parsing.
      
      xirc32ps_cs.c: manf_id
      
      hostap_cs.c: multifunction count
      
      b43/pcmcia.c: ConfigBase address and "Present"
      
      smc91c92_cs.c:  By default, mhz_setup() can use VERS_1 as it is stored
      in struct pcmcia_device. Only some cards require workarounds, such as
      reading out VERS_1 twice.
      
      CC: David S. Miller <davem@davemloft.net>
      CC: netdev@vger.kernel.org
      CC: linux-wireless@vger.kernel.org
      Acked-by: NJohn W. Linville <linville@tuxdriver.com>
      Signed-off-by: NDominik Brodowski <linux@dominikbrodowski.net>
      7d2e8d00
  5. 31 10月, 2009 1 次提交
  6. 12 10月, 2009 1 次提交
  7. 08 10月, 2009 1 次提交
    • J
      wext: refactor · 3d23e349
      Johannes Berg 提交于
      Refactor wext to
       * split out iwpriv handling
       * split out iwspy handling
       * split out procfs support
       * allow cfg80211 to have wireless extensions compat code
         w/o CONFIG_WIRELESS_EXT
      
      After this, drivers need to
       - select WIRELESS_EXT	- for wext support
       - select WEXT_PRIV	- for iwpriv support
       - select WEXT_SPY	- for iwspy support
      
      except cfg80211 -- which gets new hooks in wext-core.c
      and can then get wext handlers without CONFIG_WIRELESS_EXT.
      
      Wireless extensions procfs support is auto-selected
      based on PROC_FS and anything that requires the wext core
      (i.e. WIRELESS_EXT or CFG80211_WEXT).
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      3d23e349
  8. 23 9月, 2009 1 次提交
  9. 15 9月, 2009 1 次提交
  10. 01 9月, 2009 1 次提交
  11. 25 7月, 2009 1 次提交
  12. 06 7月, 2009 1 次提交
  13. 13 6月, 2009 2 次提交
  14. 18 5月, 2009 1 次提交
  15. 25 4月, 2009 1 次提交
    • J
      wireless: remove some (bogus?) 'may be used uninitialized' warnings · d3feaf5a
      John W. Linville 提交于
      net/mac80211/tx.c: In function ‘ieee80211_tx_h_select_key’:
      net/mac80211/tx.c:448: warning: ‘key’ may be used uninitialized in this function
      
      drivers/net/wireless/ath/ath9k/rc.c: In function ‘ath_rc_rate_getidx’:
      drivers/net/wireless/ath/ath9k/rc.c:815: warning: ‘nextindex’ may be used uninitialized in this function
      
      drivers/net/wireless/hostap/hostap_plx.c: In function ‘prism2_plx_probe’:
      drivers/net/wireless/hostap/hostap_plx.c:438: warning: ‘cor_index’ may be used uninitialized in this function
      drivers/net/wireless/hostap/hostap_plx.c:438: warning: ‘cor_offset’ may be used uninitialized in this function
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      d3feaf5a
  16. 22 3月, 2009 2 次提交
  17. 28 2月, 2009 1 次提交
  18. 10 2月, 2009 1 次提交
  19. 05 12月, 2008 1 次提交
  20. 22 11月, 2008 2 次提交
  21. 13 11月, 2008 1 次提交
    • J
      hostap: pad the skb->cb usage in lieu of a proper fix · f7cd1686
      Johannes Berg 提交于
      Like mac80211 did, this driver makes 'clever' use of skb->cb to pass
      information along with an skb as it is requeued from the virtual device
      to the physical wireless device.  Unfortunately, that trick no longer
      works...
      
      Unlike mac80211, code complexity and driver apathy makes this hack
      the best option we have in the short run.  Hopefully someone will
      eventually be motivated to code a proper fix before all the effected
      hardware dies.
      
      (Above text by me.  Johannes officially disavows all knowledge of this
      hack. -- JWL)
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Cc: stable@kernel.org
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      f7cd1686
  22. 04 11月, 2008 1 次提交
  23. 01 11月, 2008 2 次提交
    • J
      wireless: avoid some net/ieee80211.h vs. linux/ieee80211.h conflicts · 72118015
      John W. Linville 提交于
      There is quite a lot of overlap in definitions between these headers...
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      72118015
    • L
      hostap: Fix sparse warnings · 8216bfe2
      Larry Finger 提交于
      A compilation with the command "make C=2 CF="-D__CHECK_ENDIAN__" \
                                      drivers/net/wireless/hostap/"
      
       yields the following warnings:
      
        CHECK   drivers/net/wireless/hostap/hostap_info.c
      drivers/net/wireless/hostap/hostap_info.c:156:43: warning: incorrect type in
      argument 2 (different signedness)
      drivers/net/wireless/hostap/hostap_info.c:156:43:    expected unsigned long
      volatile *addr
      drivers/net/wireless/hostap/hostap_info.c:156:43:    got long *<noident>
      drivers/net/wireless/hostap/hostap_info.c:294:44: warning: incorrect type in
      argument 2 (different signedness)
      drivers/net/wireless/hostap/hostap_info.c:294:44:    expected unsigned long
      volatile *addr
      drivers/net/wireless/hostap/hostap_info.c:294:44:    got long *<noident>
      drivers/net/wireless/hostap/hostap_info.c:487:12: warning: incorrect type in
      argument 2 (different signedness)
      drivers/net/wireless/hostap/hostap_info.c:487:12:    expected unsigned long
      volatile *addr
      drivers/net/wireless/hostap/hostap_info.c:487:12:    got long *<noident>
      drivers/net/wireless/hostap/hostap_info.c:491:12: warning: incorrect type in
      argument 2 (different signedness)
      drivers/net/wireless/hostap/hostap_info.c:491:12:    expected unsigned long
      volatile *addr
      drivers/net/wireless/hostap/hostap_info.c:491:12:    got long *<noident>
      
      The warnings are fixed with the following compile-tested fix:
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Acked-by: NJouni Malinen <j@w1.fi>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      8216bfe2
  24. 31 10月, 2008 1 次提交
  25. 28 10月, 2008 1 次提交
  26. 31 8月, 2008 1 次提交
  27. 23 8月, 2008 5 次提交
  28. 23 7月, 2008 1 次提交
  29. 18 7月, 2008 1 次提交
    • D
      netdev: Allocate multiple queues for TX. · e8a0464c
      David S. Miller 提交于
      alloc_netdev_mq() now allocates an array of netdev_queue
      structures for TX, based upon the queue_count argument.
      
      Furthermore, all accesses to the TX queues are now vectored
      through the netdev_get_tx_queue() and netdev_for_each_tx_queue()
      interfaces.  This makes it easy to grep the tree for all
      things that want to get to a TX queue of a net device.
      
      Problem spots which are not really multiqueue aware yet, and
      only work with one queue, can easily be spotted by grepping
      for all netdev_get_tx_queue() calls that pass in a zero index.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e8a0464c
  30. 09 7月, 2008 1 次提交