1. 27 11月, 2012 1 次提交
    • E
      wlcore: start sta role on CHANGED_BSSID · 3230f35e
      Eliad Peller 提交于
      Make the connection flow simpler by starting
      sta role on bssid change.
      
      Currently, we start dev role when going idle-off,
      and start the sta role only after association
      indication. This complicates the connection
      flow with some possible intermediate states.
      
      Make it simpler by starting sta role on bssid change,
      which now happens *before* auth req get sent.
      
      Update the handling of mac80211's notifications
      and change wl1271_join/unjoin accordingly -
      * Split wl1271_join() into wlcore_join (tuning on
        a channel/bssid) and wlcore_set_assoc (configure
        sta after association).
      * Rename wl1271_unjoin() to wlcore_unset_assoc(), as
        it is no longer the inversion of wl1271_join()
        (now it's only used to disconnect associated sta /
        joined ibss, without stopping the role).
      * Set ssid before starting station role (needed for
        start_role(sta)
      
      While on it, split wl1271_bss_info_changed_sta() into
      some sub-functions.
      
      since we no longer use dev role in the connection flow,
      we now always use the hlid of the sta role.
      Signed-off-by: NEliad Peller <eliad@wizery.com>
      Reviewed-by: NArik Nemtsov <arik@wizery.com>
      Signed-off-by: NLuciano Coelho <coelho@ti.com>
      3230f35e
  2. 17 11月, 2012 1 次提交
    • J
      drivers/net/wireless/ti/wlcore/main.c: eliminate possible double power off · 4fb4e0be
      Julia Lawall 提交于
      The function wl12xx_set_power_on is only called twice, once in
      wl12xx_chip_wakeup and once in wl12xx_get_hw_info.  On the failure of the
      call in wl12xx_chip_wakeup, the containing function just returns, but on
      the failure of the call in wl12xx_get_hw_info, the containing function
      calls wl1271_power_off.  This does not seem necessary, because if
      wl12xx_set_power_on has set the power on and then fails, it has already
      turned the power off.
      
      A simplified version of the semantic match that finds this problem is as
      follows: (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r@
      identifier f,free,a;
      parameter list[n] ps;
      type T;
      expression e;
      @@
      
      f(ps,T a,...) {
        ... when any
            when != a = e
        if(...) { ... free(a); ... return ...; }
        ... when any
      }
      
      @@
      identifier r.f,r.free;
      expression x,a;
      expression list[r.n] xs;
      @@
      
      * x = f(xs,a,...);
        if (...) { ... free(a); ... return ...; }
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NLuciano Coelho <luca@coelho.fi>
      4fb4e0be
  3. 27 9月, 2012 16 次提交
  4. 31 7月, 2012 2 次提交
  5. 18 7月, 2012 3 次提交
  6. 11 7月, 2012 6 次提交
  7. 27 6月, 2012 3 次提交
  8. 23 6月, 2012 5 次提交
  9. 22 6月, 2012 3 次提交