19 Nov, 2011

1 commit

  • This converts the drivers in drivers/staging/* to use the
    module_usb_driver() macro which makes the code smaller and a bit
    simpler.

    Added bonus is that it removes some unneeded kernel log messages about
    drivers loading and/or unloading.

    Cc: "David Täht"
    Cc: Marek Belisko
    Cc: Al Cho
    Cc: Forest Bond
    Cc: Pavel Machek
    Cc: Huajun Li
    Cc: Zac Storer
    Cc: Randy Dunlap
    Cc: Mauro Carvalho Chehab
    Cc: edwin_rong
    Cc: Ben Hutchings
    Cc: Julia Lawall
    Cc: Ilia Mirkin
    Cc: Joe Perches
    Cc: Pekka Enberg
    Cc: "John W. Linville"
    Cc: Paul Gortmaker
    Cc: Larry Finger
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

18 Aug, 2011

1 commit


06 Jul, 2011

1 commit


29 Jun, 2011

1 commit


25 May, 2011

1 commit


19 May, 2011

1 commit

  • cfg80211 scan code adds separate BSS entries if the same BSS shows up
    on multiple channels. However, sme implementation does not use the
    frequency when fetching the BSS entry. Fix this by adding channel
    information to cfg80211_roamed() and include it in cfg80211_get_bss()
    calls.

    Please note that drivers using cfg80211_roamed() need to be modified to
    fully implement this fix. This commit includes only minimal changes to
    avoid compilation issues; it maintains the old (broken) behavior for
    most drivers. ath6kl was the only one that I could test, so I updated
    it to provide the operating frequency in the roamed event.

    Signed-off-by: Jouni Malinen
    Signed-off-by: John W. Linville

    Jouni Malinen
     

04 May, 2011

1 commit

  • Hi us,
    When i was compiling kernel, a warning happened to me.
    The warning said like following.

    drivers/staging/wlan-ng/cfg80211.c:709: warning: initialization from
    incompatible pointer type.

    See http://s1202.photobucket.com/albums/bb364/harrywei/?action=view¤t=patched2.png
    for more details.

    So i patch like following.

    Signed-off-by: Harry Wei
    Acked-by: Randy Dunlap
    Signed-off-by: Greg Kroah-Hartman

    Harry Wei
     

31 Mar, 2011

1 commit


15 Mar, 2011

1 commit

  • This patch was generated by the following semantic patch:
    //
    @@ expression E; @@
    - if (E != NULL) { kfree(E); }
    + kfree(E);

    @@ expression E; @@
    - if (E != NULL) { kfree(E); E = NULL; }
    + kfree(E);
    + E = NULL;
    //

    Signed-off-by: Ilia Mirkin
    Signed-off-by: Greg Kroah-Hartman

    Ilia Mirkin
     

05 Feb, 2011

1 commit


01 Feb, 2011

1 commit


17 Nov, 2010

1 commit


10 Nov, 2010

8 commits


29 Oct, 2010

1 commit


08 Oct, 2010

1 commit


05 Sep, 2010

1 commit


04 Sep, 2010

1 commit


06 Aug, 2010

1 commit


03 Aug, 2010

5 commits


27 Jul, 2010

1 commit


23 Jul, 2010

3 commits


25 Jun, 2010

1 commit

  • drivers/built-in.o: In function `wlan_free_wiphy':
    (.text+0x3f5eb5): undefined reference to `wiphy_unregister'
    drivers/built-in.o: In function `wlan_free_wiphy':
    (.text+0x3f5ec4): undefined reference to `wiphy_free'
    drivers/built-in.o: In function `wlan_create_wiphy':
    (.text+0x3f5f76): undefined reference to `wiphy_new'
    drivers/built-in.o: In function `wlan_create_wiphy':
    (.text+0x3f6024): undefined reference to `wiphy_register'
    drivers/built-in.o: In function `prism2_roamed':
    (.text+0x3f61f7): undefined reference to `cfg80211_roamed'
    drivers/built-in.o: In function `prism2_disconnected':
    (.text+0x3f6223): undefined reference to `cfg80211_disconnected'
    drivers/built-in.o: In function `prism2_connect_result':
    (.text+0x3f626d): undefined reference to `cfg80211_connect_result'
    drivers/built-in.o: In function `prism2_connect':
    (.text+0x3f62b6): undefined reference to `ieee80211_frequency_to_channel'
    drivers/built-in.o: In function `prism2_scan':
    (.text+0x3f6679): undefined reference to `ieee80211_frequency_to_channel'
    drivers/built-in.o: In function `prism2_scan':
    (.text+0x3f6873): undefined reference to `__ieee80211_get_channel'
    drivers/built-in.o: In function `prism2_scan':
    (.text+0x3f68cc): undefined reference to `cfg80211_inform_bss'
    drivers/built-in.o: In function `prism2_scan':
    (.text+0x3f6942): undefined reference to `cfg80211_scan_done'

    Signed-off-by: Randy Dunlap
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     

19 Jun, 2010

2 commits

  • This doesn't change the behavior. It just silences a sparse warning.

    drivers/staging/wlan-ng/hfa384x_usb.c:2810:62: warning: dubious: !x | !y

    The point of the bitwise OR is so that a logical OR could short circuit
    the second call to test_and_set_bit().

    Signed-off-by: Dan Carpenter
    Signed-off-by: Greg Kroah-Hartman

    Dan Carpenter
     
  • Switch driver over from wext to cfg80211 interface.

    Some Notes:

    - This patch moves the driver wholesale from wext to cfg80211. Wext
    support is still provided through the cfg80211 provided wext
    compatability layer.

    - Currently only infrastructure mode is implemented. Ad hoc mode is not
    yet implemented, but can be added.

    - It does not support connecting to a specified bssid, instead roaming
    is handled by the card itself. This matches the behaviour of the
    existing driver.

    - It has been tested using NetworkManager (via wpa_supplicant)
    configured to use the wext compatability layer, and then again with the
    native nl80211 layer.

    Signed-off-by: Karl Relton
    Signed-off-by: Greg Kroah-Hartman

    Karl Relton
     

18 May, 2010

1 commit


15 May, 2010

1 commit

  • Use kcalloc or kzalloc rather than the combination of kmalloc and memset.

    The semantic patch that makes this change is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @@
    expression x,y,flags;
    statement S;
    type T;
    @@

    x =
    - kmalloc
    + kcalloc
    (
    - y * sizeof(T),
    + y, sizeof(T),
    flags);
    if (x == NULL) S
    -memset(x, 0, y * sizeof(T));

    @@
    expression x,size,flags;
    statement S;
    @@

    -x = kmalloc(size,flags);
    +x = kzalloc(size,flags);
    if (x == NULL) S
    -memset(x, 0, size);
    //

    Signed-off-by: Julia Lawall

    Julia Lawall
     

12 May, 2010

1 commit