1. 28 11月, 2012 3 次提交
    • A
      wlcore: use new set bandwidth command to adjusting channel BW · 5f9b6777
      Arik Nemtsov 提交于
      We support changing the channel BW when we started the STA role on
      a 40Mhz bandwidth. Otherwise a reconnection is required.
      Save the started channel width and use it when channel width updates
      arrive.
      Signed-off-by: NArik Nemtsov <arik@wizery.com>
      Signed-off-by: NLuciano Coelho <coelho@ti.com>
      5f9b6777
    • E
      wlcore: call ieee80211_sched_scan_stopped on interface removal · 10199756
      Eliad Peller 提交于
      The interface might go down before we got the SCHED_STOPPED
      event, so make sure to call ieee80211_sched_scan_stopped()
      if the scanned interface is removed.
      
      Replace sched_scanning with sched_vif in order to save
      the scanned interface.
      Signed-off-by: NEliad Peller <eliad@wizery.com>
      Signed-off-by: NLuciano Coelho <coelho@ti.com>
      10199756
    • V
      wlcore: add new reg-domain configuration command · 6b70e7eb
      Victor Goldenshtein 提交于
      In 18xx the calibration process of the PHY Cortex domain
      requires to perform an active calibration of the channel
      before it can be used for transmission. To fulfill world
      wide regulatory restrictions, fw should be always
      synchronized/updated with current CRDA configuration.
      Add a new "CMD_DFS_CHANNEL_CONFIG" command to update the
      fw with current reg-domain, this command passes a bit map
      of channels that are allowed to be used for transmission.
      
      The driver shall update the fw during initialization and
      after each change in the current reg-domain
      configuration. The driver will save the channel number of
      incoming beacons during the scan process, as they might
      be a result of the passive scan on
      "IEEE80211_CHAN_PASSIVE_SCAN" channel and will update the
      fw accordingly once the scan is finished, the purpose of
      this is to be ready in case of the authentication request
      on one of these disabled (uncalibrated) channels.
      
      The new command requires to wait for the fw completion
      event "DFS_CHANNELS_CONFIG_COMPLETE_EVENT".
      
      No scan commands (including the sched scan) can be
      executed concurrently with the "CMD_DFS_CHANNEL_CONFIG",
      wl->mutex ensures that.
      
      [Arik - move reset of reg_ch_conf_last to safe place inside
      op_stop_locked]
      [Eliad - adjust to new event waiting api]
      Signed-off-by: NVictor Goldenshtein <victorg@ti.com>
      Signed-off-by: NArik Nemtsov <arik@wizery.com>
      Signed-off-by: NEliad Peller <eliad@wizery.com>
      Signed-off-by: NLuciano Coelho <coelho@ti.com>
      6b70e7eb
  2. 27 11月, 2012 20 次提交
  3. 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
  4. 27 9月, 2012 16 次提交