1. 27 9月, 2013 1 次提交
  2. 04 7月, 2013 1 次提交
  3. 25 6月, 2013 2 次提交
  4. 04 6月, 2013 1 次提交
  5. 11 4月, 2013 1 次提交
  6. 10 2月, 2013 1 次提交
  7. 05 2月, 2013 1 次提交
  8. 23 1月, 2013 1 次提交
  9. 09 1月, 2013 1 次提交
  10. 07 12月, 2012 2 次提交
  11. 22 11月, 2012 1 次提交
  12. 19 11月, 2012 1 次提交
  13. 17 11月, 2012 1 次提交
  14. 18 10月, 2012 1 次提交
    • A
      wireless: drivers: make use of WLAN_EID_VENDOR_SPECIFIC · 04b2312a
      Arend van Spriel 提交于
      The include file linux/ieee80211.h contains three definitions for
      the same thing in enum ieee80211_eid due to historic changes:
      
      /* Information Element IDs */
      enum ieee80211_eid {
          :
          WLAN_EID_WPA = 221,
          WLAN_EID_GENERIC = 221,
          WLAN_EID_VENDOR_SPECIFIC = 221,
          :
      };
      
      The standard refers to this as "vendor specific" element so the
      other two definitions are better not used. This patch changes the
      wireless drivers to use one definition, ie. WLAN_EID_VENDOR_SPECIFIC.
      
      Cc: Jouni Malinen <j@w1.fi>
      Cc: Dan Williams <dcbw@redhat.com>
      Cc: Larry Finger <Larry.Finger@lwfinger.net>
      Acked-by: Kalle Valo <kvalo@qca.qualcomm.com> [ath6kl]
      Acked-by: Bing Zhao <bzhao@marvell.com> [mwifiex]
      Acked-by: Stanislav Yakovlev <stas.yakovlev@gmail.com> [ipw2x00]
      Signed-off-by: NArend van Spriel <arend@broadcom.com>
      [change libipw as well]
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      04b2312a
  15. 16 10月, 2012 1 次提交
  16. 25 9月, 2012 1 次提交
  17. 08 9月, 2012 2 次提交
  18. 22 8月, 2012 1 次提交
  19. 14 8月, 2012 1 次提交
    • T
      workqueue: use mod_delayed_work() instead of cancel + queue · 41f63c53
      Tejun Heo 提交于
      Convert delayed_work users doing cancel_delayed_work() followed by
      queue_delayed_work() to mod_delayed_work().
      
      Most conversions are straight-forward.  Ones worth mentioning are,
      
      * drivers/edac/edac_mc.c: edac_mc_workq_setup() converted to always
        use mod_delayed_work() and cancel loop in
        edac_mc_reset_delay_period() is dropped.
      
      * drivers/platform/x86/thinkpad_acpi.c: No need to remember whether
        watchdog is active or not.  @fan_watchdog_active and related code
        dropped.
      
      * drivers/power/charger-manager.c: Seemingly a lot of
        delayed_work_pending() abuse going on here.
        [delayed_]work_pending() are unsynchronized and racy when used like
        this.  I converted one instance in fullbatt_handler().  Please
        conver the rest so that it invokes workqueue APIs for the intended
        target state rather than trying to game work item pending state
        transitions.  e.g. if timer should be modified - call
        mod_delayed_work(), canceled - call cancel_delayed_work[_sync]().
      
      * drivers/thermal/thermal_sys.c: thermal_zone_device_set_polling()
        simplified.  Note that round_jiffies() calls in this function are
        meaningless.  round_jiffies() work on absolute jiffies not delta
        delay used by delayed_work.
      
      v2: Tomi pointed out that __cancel_delayed_work() users can't be
          safely converted to mod_delayed_work().  They could be calling it
          from irq context and if that happens while delayed_work_timer_fn()
          is running, it could deadlock.  __cancel_delayed_work() users are
          dropped.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Acked-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Acked-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      Acked-by: NAnton Vorontsov <cbouatmailru@gmail.com>
      Acked-by: NDavid Howells <dhowells@redhat.com>
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: Jiri Kosina <jkosina@suse.cz>
      Cc: Doug Thompson <dougthompson@xmission.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Roland Dreier <roland@kernel.org>
      Cc: "John W. Linville" <linville@tuxdriver.com>
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: Len Brown <len.brown@intel.com>
      Cc: "J. Bruce Fields" <bfields@fieldses.org>
      Cc: Johannes Berg <johannes@sipsolutions.net>
      41f63c53
  20. 09 6月, 2012 1 次提交
    • S
      net/wireless: ipw2100: Fix WARN_ON occurring in wiphy_register called by ipw2100_pci_init_one · aac495a8
      Stanislav Yakovlev 提交于
      The problem was found by Larry Finger:
      http://marc.info/?l=linux-wireless&m=133702401700614&w=2
      
      The problem is identical to the one for ipw2200 which is already fixed:
      http://marc.info/?l=linux-wireless&m=133457257407196&w=2
      
      [   17.766431] ------------[ cut here ]------------
      [   17.766467] WARNING: at net/wireless/core.c:562 wiphy_register+0x34c/0x3c0 [cfg80211]()
      [   17.766471] Hardware name: Latitude D600
      [   17.766474] Modules linked in: ipw2100(+) libipw pcmcia cfg80211 ppdev parport_pc yenta_socket sr_mod pcmcia_rsrc parport iTCO_wdt cdrom sg rfkill pcmcia_
      core lib80211 tg3 video button battery ac iTCO_vendor_support joydev shpchp pcspkr pciehp pci_hotplug autofs4 radeon ttm drm_kms_helper uhci_hcd ehci_hcd rtc
      _cmos thermal drm hwmon i2c_algo_bit i2c_core processor usbcore usb_common ata_generic ata_piix ahci libahci libata
      [   17.766525] Pid: 474, comm: modprobe Not tainted 3.4.0-rc7-wl+ #6
      [   17.766528] Call Trace:
      [   17.766541]  [<c066ad08>] ? printk+0x28/0x2a
      [   17.766552]  [<c0230edd>] warn_slowpath_common+0x6d/0xa0
      [   17.766563]  [<e0b253bc>] ? wiphy_register+0x34c/0x3c0 [cfg80211]
      [   17.766573]  [<e0b253bc>] ? wiphy_register+0x34c/0x3c0 [cfg80211]
      [   17.766578]  [<c0230f2d>] warn_slowpath_null+0x1d/0x20
      [   17.766588]  [<e0b253bc>] wiphy_register+0x34c/0x3c0 [cfg80211]
      [   17.766605]  [<e0b5b0d6>] ipw2100_wdev_init+0x196/0x1c0 [ipw2100]
      [   17.766616]  [<e0b5d962>] ipw2100_pci_init_one+0x2b2/0x694 [ipw2100]
      [   17.766632]  [<c047ce52>] local_pci_probe+0x42/0xb0
      [   17.766637]  [<c047e2b0>] pci_device_probe+0x60/0x90
      [   17.766645]  [<c0376de2>] ? sysfs_create_link+0x12/0x20
      [   17.766654]  [<c050f1f6>] really_probe+0x56/0x2e0
      [   17.766659]  [<c037636d>] ? create_dir+0x5d/0xa0
      [   17.766667]  [<c0518c6b>] ? pm_runtime_barrier+0x3b/0xa0
      [   17.766672]  [<c050f5e4>] driver_probe_device+0x44/0xa0
      [   17.766677]  [<c047e227>] ? pci_match_device+0x97/0xa0
      [   17.766681]  [<c050f6c9>] __driver_attach+0x89/0x90
      [   17.766686]  [<c050f640>] ? driver_probe_device+0xa0/0xa0
      [   17.766691]  [<c050da2a>] bus_for_each_dev+0x3a/0x70
      [   17.766695]  [<c050ee6c>] driver_attach+0x1c/0x30
      [   17.766699]  [<c050f640>] ? driver_probe_device+0xa0/0xa0
      [   17.766704]  [<c050ea77>] bus_add_driver+0x187/0x280
      [   17.766710]  [<c045b9cd>] ? kset_find_obj+0x2d/0x60
      [   17.766715]  [<c047e2e0>] ? pci_device_probe+0x90/0x90
      [   17.766719]  [<c047e2e0>] ? pci_device_probe+0x90/0x90
      [   17.766724]  [<c050fb85>] driver_register+0x65/0x110
      [   17.766729]  [<c047e09d>] __pci_register_driver+0x3d/0xa0
      [   17.766738]  [<e09f705c>] ipw2100_init+0x5c/0x1000 [ipw2100]
      [   17.766743]  [<c020110f>] do_one_initcall+0x2f/0x170
      [   17.766749]  [<e09f7000>] ? 0xe09f6fff
      [   17.766757]  [<c0287ce8>] sys_init_module+0xa8/0x210
      [   17.766766]  [<c067a075>] syscall_call+0x7/0xb
      [   17.766769] ---[ end trace 559898c6bb0d1c75 ]---
      [   17.767093] ipw2100: probe of 0000:02:03.0 failed with error -5
      
      This warning appears only if we apply Ben Hutchings' fix
      http://marc.info/?l=linux-wireless&m=132720204412667&w=2
      for the bug reported by Cesare Leonardi
      http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656813
      with cfg80211 warning during device registration
      ("cfg80211: failed to add phy80211 symlink to netdev!").
      
      We separate device bring up and registration with network stack
      to avoid the problem.
      Signed-off-by: NStanislav Yakovlev <stas.yakovlev@gmail.com>
      Tested-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      aac495a8
  21. 07 6月, 2012 1 次提交
    • J
      wireless: Remove casts to same type · 2c208890
      Joe Perches 提交于
      Adding casts of objects to the same type is unnecessary
      and confusing for a human reader.
      
      For example, this cast:
      
              int y;
              int *p = (int *)&y;
      
      I used the coccinelle script below to find and remove these
      unnecessary casts.  I manually removed the conversions this
      script produces of casts with __force, __iomem and __user.
      
      @@
      type T;
      T *p;
      @@
      
      -       (T *)p
      +       p
      
      Neatened the mwifiex_deauthenticate_infra function which
      was doing odd things with array pointers and not using
      is_zero_ether_addr.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2c208890
  22. 06 6月, 2012 1 次提交
  23. 11 5月, 2012 1 次提交
    • J
      drivers/net: Convert compare_ether_addr to ether_addr_equal · 2e42e474
      Joe Perches 提交于
      Use the new bool function ether_addr_equal to add
      some clarity and reduce the likelihood for misuse
      of compare_ether_addr for sorting.
      
      Done via cocci script:
      
      $ cat compare_ether_addr.cocci
      @@
      expression a,b;
      @@
      -	!compare_ether_addr(a, b)
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	compare_ether_addr(a, b)
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!ether_addr_equal(a, b) == 0
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!ether_addr_equal(a, b) != 0
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	ether_addr_equal(a, b) == 0
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	ether_addr_equal(a, b) != 0
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!!ether_addr_equal(a, b)
      +	ether_addr_equal(a, b)
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2e42e474
  24. 09 5月, 2012 3 次提交
    • B
      ipw2100: Fix order of device registration · e19d8baf
      Ben Hutchings 提交于
      Currently cfg80211 fails to create a "phy80211" symlink in sysfs from
      the net device to the wiphy device.  The latter needs to be registered
      first.
      
      Compile-tested only.
      Signed-off-by: NBen Hutchings <ben@decadent.org.uk>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      e19d8baf
    • B
      ipw2200: Fix order of device registration · b4050790
      Ben Hutchings 提交于
      Currently cfg80211 fails to create a "phy80211" symlink in sysfs from
      the net device to the wiphy device.  The latter needs to be registered
      first.
      
      Compile-tested only.
      Reported-by: NCesare Leonardi <celeonar@gmail.com>
      Signed-off-by: NBen Hutchings <ben@decadent.org.uk>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      b4050790
    • S
      net/wireless: ipw2200: Fix WARN_ON occurring in wiphy_register called by ipw_pci_probe · 7ed85b65
      Stanislav Yakovlev 提交于
      The problem was found by Stefan Lippers-Hollmann
      http://marc.info/?l=linux-wireless&m=132720334512946&w=2
      
      WARNING: at /tmp/buildd/linux-aptosid-3.2/debian/build/source_i386_none/net/wireless/core.c:562 wiphy_register+0x45/0x38d [cfg80211]()
      Hardware name: TravelMate 290 \xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff\xffffffff
      Modules linked in: ipw2200(+) iTCO_wdt libipw joydev drm snd_seq snd_timer snd_seq_device iTCO_vendor_support yenta_socket snd intel_agp i2c_i801 pcmcia_rsrc cfg80211 soundcore parport_pc psmouse parport rng_core snd_page_alloc serio_raw pcspkr i2c_algo_bit intel_gtt pcmcia_core evdev irda crc_ccitt rfkill lib80211 processor container ac battery shpchp pci_hotplug button ext4 mbcache jbd2 crc16 dm_mod sd_mod sr_mod crc_t10dif cdrom ata_generic pata_acpi ata_piix libata scsi_mod firewire_ohci firewire_core crc_itu_t 8139too 8139cp mii uhci_hcd ehci_hcd usbcore usb_common [last unloaded: scsi_wait_scan]
      Pid: 328, comm: modprobe Not tainted 3.2-1.slh.4-aptosid-686 #1
      Call Trace:
      [<c012eaf4>] ? warn_slowpath_common+0x7c/0x8f
      [<e0ff0b3e>] ? wiphy_register+0x45/0x38d [cfg80211]
      [<e0ff0b3e>] ? wiphy_register+0x45/0x38d [cfg80211]
      [<c012eb22>] ? warn_slowpath_null+0x1b/0x1f
      [<e0ff0b3e>] ? wiphy_register+0x45/0x38d [cfg80211]
      [<c01f89d7>] ? internal_create_group+0xf5/0xff
      [<e0a2de1c>] ? ipw_pci_probe+0xa9a/0xbd0 [ipw2200]
      [<c01519f4>] ? arch_local_irq_save+0xf/0x14
      [<c0252986>] ? pci_device_probe+0x53/0x9a
      [<c02c2820>] ? driver_probe_device+0x94/0x124
      [<c0252871>] ? pci_match_id+0x15/0x34
      [<c02c28f0>] ? __driver_attach+0x40/0x5b
      [<c02c1d81>] ? bus_for_each_dev+0x37/0x60
      [<c02c25aa>] ? driver_attach+0x17/0x1a
      [<c02c28b0>] ? driver_probe_device+0x124/0x124
      [<c02c22c4>] ? bus_add_driver+0x92/0x1d1
      [<e099d000>] ? 0xe099cfff
      [<c02c2cb8>] ? driver_register+0x7d/0xd4
      [<c017cd50>] ? jump_label_module_notify+0xec/0x167
      [<e099d000>] ? 0xe099cfff
      [<c0253017>] ? __pci_register_driver+0x32/0x87
      [<e099d000>] ? 0xe099cfff
      [<e099d02e>] ? ipw_init+0x2e/0x72 [ipw2200]
      [<c0101173>] ? do_one_initcall+0x7d/0x132
      [<c0145016>] ? __blocking_notifier_call_chain+0x47/0x4f
      [<c0154a73>] ? sys_init_module+0x13a4/0x159c
      [<c03a639f>] ? sysenter_do_call+0x12/0x28
      
      This warning appears only if we apply Ben Hutchings' fix
      http://marc.info/?l=linux-wireless&m=132720195012653&w=2
      for the bug reported by Cesare Leonardi
      http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656813
      with cfg80211 warning during device registration
      ("cfg80211: failed to add phy80211 symlink to netdev!").
      
      We separate device bring up and registration with network stack
      to avoid the problem.
      
      After that Ben Hutchings' fix can be applied to fix the bug.
      
      Cc: stable@kernel.org
      Signed-off-by: NStanislav Yakovlev <stas.yakovlev@gmail.com>
      Tested-by: NStefan Lippers-Hollmann <s.l-h@gmx.de>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      7ed85b65
  25. 24 4月, 2012 1 次提交
  26. 15 4月, 2012 1 次提交
  27. 13 4月, 2012 3 次提交
  28. 12 4月, 2012 2 次提交
  29. 07 4月, 2012 3 次提交
  30. 29 3月, 2012 1 次提交