20 Jul, 2007

2 commits

  • * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (25 commits)
    [TG3]: Fix msi issue with kexec/kdump.
    [NET] XFRM: Fix whitespace errors.
    [NET] TIPC: Fix whitespace errors.
    [NET] SUNRPC: Fix whitespace errors.
    [NET] SCTP: Fix whitespace errors.
    [NET] RXRPC: Fix whitespace errors.
    [NET] ROSE: Fix whitespace errors.
    [NET] RFKILL: Fix whitespace errors.
    [NET] PACKET: Fix whitespace errors.
    [NET] NETROM: Fix whitespace errors.
    [NET] NETFILTER: Fix whitespace errors.
    [NET] IPV4: Fix whitespace errors.
    [NET] DCCP: Fix whitespace errors.
    [NET] CORE: Fix whitespace errors.
    [NET] BLUETOOTH: Fix whitespace errors.
    [NET] AX25: Fix whitespace errors.
    [PATCH] mac80211: remove rtnl locking in ieee80211_sta.c
    [PATCH] mac80211: fix GCC warning on 64bit platforms
    [GENETLINK]: Dynamic multicast groups.
    [NETLIKN]: Allow removing multicast groups.
    ...

    Linus Torvalds
     
  • Transform some calls to kmalloc/memset to a single kzalloc (or kcalloc).

    Here is a short excerpt of the semantic patch performing
    this transformation:

    @@
    type T2;
    expression x;
    identifier f,fld;
    expression E;
    expression E1,E2;
    expression e1,e2,e3,y;
    statement S;
    @@

    x =
    - kmalloc
    + kzalloc
    (E1,E2)
    ... when != \(x->fld=E;\|y=f(...,x,...);\|f(...,x,...);\|x=E;\|while(...) S\|for(e1;e2;e3) S\)
    - memset((T2)x,0,E1);

    @@
    expression E1,E2,E3;
    @@

    - kzalloc(E1 * E2,E3)
    + kcalloc(E1,E2,E3)

    [akpm@linux-foundation.org: get kcalloc args the right way around]
    Signed-off-by: Yoann Padioleau
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Acked-by: Russell King
    Cc: Bryan Wu
    Acked-by: Jiri Slaby
    Cc: Dave Airlie
    Acked-by: Roland Dreier
    Cc: Jiri Kosina
    Acked-by: Dmitry Torokhov
    Cc: Benjamin Herrenschmidt
    Acked-by: Mauro Carvalho Chehab
    Acked-by: Pierre Ossman
    Cc: Jeff Garzik
    Cc: "David S. Miller"
    Acked-by: Greg KH
    Cc: James Bottomley
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yoann Padioleau
     

19 Jul, 2007

2 commits

  • The rtnl is held in ieee80211_sta.c to prevent some potential
    configuration races with userspace. Unfortunately, it also has the
    potential for deadlocks on interface down. This patch removes the
    rtnl locking to eliminate the deadlocks.

    Signed-off-by: Michael Wu
    Signed-off-by: John W. Linville

    Michael Wu
     
  • net/mac80211/ieee80211.c: In function ieee80211_register_hw:
    net/mac80211/ieee80211.c:4989: warning: comparison of distinct pointer types lacks a cast

    Size of ieee80211_tx_status_rtap_hdr structure will never be greater than
    unsigned int.

    Signed-off-by: Jiri Benc
    Signed-off-by: John W. Linville

    Jiri Benc
     

18 Jul, 2007

3 commits


13 Jul, 2007

15 commits

  • Currently, CTS protection is partially implemented twice:
    1. via prism2 ioctls, only used by hostapd
    2. via STA beacon parsing, recorded in sta.use_protection but never used
    (other than printed in debugfs)

    Protection control should be implemented on a per-subif basis. For example,
    a single physical device may be running a soft AP on one channel, and a STA
    on another. The AP interface should use protection based on what hostapd told
    it, and the STA interface should use protection based on beacon parsing.
    These should operate independantly: one subif using protection should not
    influence the other.

    To implement this, I moved the use_protection flag into ieee80211_sub_if_data
    and removed the device-global cts_protect_erp_frames flag.

    I also made the PRISM2_PARAM_CTS_PROTECT_ERP_FRAMES write operation only
    available for AP interfaces, to avoid any possibility of the user messing with
    the behaviour of a STA.

    Signed-off-by: Daniel Drake
    Signed-off-by: Jiri Benc
    Signed-off-by: John W. Linville

    Daniel Drake
     
  • The "protection needed" flag is currently parsed out of the ERP IE in
    beacons. This patch allows the ERP IE to be available at assocation time
    and causes the appropriate actions to be performed earlier.

    It is slightly complicated by the fact that most APs don't include the
    ERP IE in association responses. To work around this, we store ERP
    values in the ieee80211_sta_bss structure.

    Also added some WLAN_ERP defines for use by upcoming patches.

    Signed-off-by: Jiri Benc
    Signed-off-by: John W. Linville

    Daniel Drake
     
  • The WEXT ioctl SIOCSIWRATE is not implemented in mac80211. This patch
    adds the missing routine. It supports the 'auto' keyword, fixed rates,
    and the combination of 'auto' and a fixed rate to select an upper bound.

    Based on the patch from Mohamed Abbas .

    Signed-off-by: Larry Finger
    Signed-off-by: Jiri Benc
    Signed-off-by: John W. Linville

    Larry Finger
     
  • The semantics of not having an add_interface callback are not well
    defined, this callback is required because otherwise you cannot obtain
    the requested MAC address of the device. Change the documentation to
    reflect this, add a note about having no MAC address at all, add a
    warning that mac_addr in struct ieee80211_if_init_conf can be NULL and
    finally verify that a few callbacks are assigned by way of BUG_ON()

    Signed-off-by: Johannes Berg
    Signed-off-by: Jiri Benc
    Signed-off-by: John W. Linville

    Johannes Berg
     
  • This patch reorders some fields in struct ieee802_11_elems to save 17*7
    or 17*3 bytes (on 64/32-bit machines respectively) stack space in a few
    functions.

    Signed-off-by: Johannes Berg
    Signed-off-by: Jiri Benc
    Signed-off-by: John W. Linville

    Johannes Berg
     
  • Not used anywhere, hence dead code. wpa_supplicant has its
    own clear_keys routine.

    Signed-off-by: Johannes Berg
    Signed-off-by: Jiri Benc
    Signed-off-by: John W. Linville

    Johannes Berg
     
  • Interestingly, wpa_supplicant doesn't use it, but uses the
    currently unsupported IW_AUTH_DROP_UNENCRYPTED. So I guess
    it doesn't matter anyway.

    Signed-off-by: Johannes Berg
    Signed-off-by: Jiri Benc
    Signed-off-by: John W. Linville

    Johannes Berg
     
  • Not used anywhere.

    Signed-off-by: Johannes Berg
    Signed-off-by: Jiri Benc
    Signed-off-by: John W. Linville

    Johannes Berg
     
  • These aren't used anywhere (hostapd, wpa_supplicant) and until we
    have a proper interface to the rate control algorithms they don't
    make much sense either since e.g. rc80211_lowest won't honour them.

    Signed-off-by: Johannes Berg
    Signed-off-by: Jiri Benc
    Signed-off-by: John W. Linville

    Johannes Berg
     
  • This patch separates the monitor interface start_xmit from the
    subif start xmit (those other devices have 802.3 framing, monitor
    interfaces have radiotap framing)

    Signed-off-by: Johannes Berg
    Signed-off-by: Jiri Benc
    Signed-off-by: John W. Linville

    Johannes Berg
     
  • Add supported channels info in SIOCGIWRANGE implementation.

    Signed-off-by: Hong Liu
    Signed-off-by: Jiri Benc
    Signed-off-by: John W. Linville

    Hong Liu
     
  • Remove ieee80211_set_aid_for_sta and associated code.

    Signed-off-by: Johannes Berg
    Signed-off-by: Jiri Benc
    Signed-off-by: John W. Linville

    Johannes Berg
     
  • This constant is unused.

    Signed-off-by: Johannes Berg
    Signed-off-by: Jiri Benc
    Signed-off-by: John W. Linville

    Johannes Berg
     
  • This patch makes mac80211 show transmitted frames on monitor interfaces,
    including radiotap headers that indicate some transmission parameters.
    The shown parameters will need to be expanded, but this should work as
    a basis to work from.

    Signed-off-by: Johannes Berg
    Signed-off-by: Jiri Benc
    Signed-off-by: John W. Linville

    Johannes Berg
     
  • Signed-off-by: Andy Green
    Signed-off-by: Jiri Benc
    Signed-off-by: John W. Linville

    Andy Green
     

11 Jul, 2007

2 commits

  • The initial rate for STA's using rc80211_simple is set to the last
    rate in the rate table. For situations for which the signal is weak,
    the rate may be too high for authentication and association. Although
    the rc80211_simple module will adjust the speed, the response may not
    be fast enough for a successful connection. This modification sets the
    initial rate to the lowest supported value.

    Signed-off-by: Larry Finger
    Signed-off-by: Johannes Berg
    Signed-off-by: John W. Linville
    Signed-off-by: David S. Miller

    Larry Finger
     
  • At present, transmission rate information for mac80211 is available only
    if verbose debugging is turned on, and then only in the logs. This patch
    implements the SIOCGIWRATE ioctl, which adds the current transmission rate to
    the output of iwconfig.

    Signed-off-by: Larry Finger
    Signed-off-by: John W. Linville
    Signed-off-by: David S. Miller

    Larry Finger
     

12 Jun, 2007

2 commits


29 May, 2007

4 commits


11 May, 2007

1 commit

  • | CC net/mac80211/ieee80211_sta.o
    | In file included from linux/net/mac80211/ieee80211_sta.c:31:
    | include2/asm/delay.h: In function '__const_udelay':
    | include2/asm/delay.h:33: error: 'loops_per_jiffy' undeclared (first use in this function)
    | include2/asm/delay.h:33: error: (Each undeclared identifier is reported only once
    | include2/asm/delay.h:33: error: for each function it appears in.)

    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: John W. Linville
    Signed-off-by: David S. Miller

    Geert Uytterhoeven
     

06 May, 2007

2 commits