1. 07 10月, 2011 3 次提交
    • E
      wl12xx: define wl12xx_vif · 87fbcb0f
      Eliad Peller 提交于
      Define a per-vif data struct.
      This struct holds all the vif-specifc data, which is
      currently being hold by the global wl struct.
      
      Start by moving the basic_rate_set field into it.
      
      NOTE: in order to make the patches a bit smaller, start by
      using wl->vif in some functions, instead of changing all
      the function prototypes at once. finally, wl->vif will be
      removed altogether.
      Signed-off-by: NEliad Peller <eliad@wizery.com>
      Signed-off-by: NLuciano Coelho <coelho@ti.com>
      87fbcb0f
    • E
      wl12xx: start reworking the init sequence · 92c77c73
      Eliad Peller 提交于
      Split the init sequence into common commands (non role-specific)
      and role-specific commands.
      
      We still need to call the common commands only on add_interface()
      (rather than on start()) as the fw must get the mac address
      when uploading the nvs.
      
      Future patches will refactor the init sequence further more.
      Signed-off-by: NEliad Peller <eliad@wizery.com>
      [fixed a couple of sparse warnings]
      Signed-off-by: NLuciano Coelho <coelho@ti.com>
      92c77c73
    • E
      wl12xx: replace wl->mac_addr with vif->addr · 784f694d
      Eliad Peller 提交于
      The mac address of the interface already exists in vif->addr.
      Use it instead of wl->mac_addr.
      
      It seems that due to some fw bug, we still need to set nvs->mac
      to the actual mac addresss, otherwise the fw doesn't function
      well (e.g. can't get dhcp address).
      Thus, use wl->mac_addr for this purpose, and don't delete it yet.
      Signed-off-by: NEliad Peller <eliad@wizery.com>
      Signed-off-by: NLuciano Coelho <coelho@ti.com>
      784f694d
  2. 02 5月, 2011 2 次提交
  3. 19 4月, 2011 1 次提交
    • S
      wl12xx: 1281/1283 support - Add acx commands · 48a61477
      Shahar Levi 提交于
      New acx command that sets: Rx fifo enable reduced bus transactions
      in RX path. Tx bus transactions padding to SDIO block size that
      improve preference in Tx and essential for working with SDIO HS (48Mhz).
      The max SDIO block size is 256 when working with Tx bus transactions
      padding to SDIO block.
      
      Add new ops to SDIO & SPI that handles the win size change in case of
      transactions padding (relevant only for SDIO).
      
      [Fix endianess issues; simplify sdio-specific block_size handling;
      minor changes in comments; use "aligned_len" in one calculation
      instead of "pad" to avoid confusion -- Luca]
      Signed-off-by: NShahar Levi <shahar_levi@ti.com>
      Reviewed-by: NLuciano Coelho <coelho@ti.com>
      Signed-off-by: NLuciano Coelho <coelho@ti.com>
      48a61477
  4. 25 1月, 2011 1 次提交
  5. 22 11月, 2010 1 次提交
  6. 20 2月, 2010 1 次提交
  7. 29 11月, 2009 2 次提交
  8. 28 10月, 2009 2 次提交
    • L
      wl1271: fix endianess issues · d0f63b20
      Luciano Coelho 提交于
      We were not handling endianess correctly.  The wl1271 chip runs on
      little-endian values.  This patch makes sure that all the communication with
      the wl1271 firmware is done in little-endian by using cpu_to_le* and
      le*_to_cpu where appropriate.
      
      Also, all the struct definitions for data exchanged with the firmware has
      been changed to use __le16/32 types instead of u16/32.
      
      This fixes a few sparse warnings, such as these:
      
      drivers/net/wireless/wl12xx/wl1271_cmd.c:554:42: warning: incorrect type in assignment (different base types)
      drivers/net/wireless/wl12xx/wl1271_cmd.c:555:42: warning: incorrect type in assignment (different base types)
      drivers/net/wireless/wl12xx/wl1271_cmd.c:577:58: warning: incorrect type in assignment (different base types)
      drivers/net/wireless/wl12xx/wl1271_cmd.c:579:58: warning: incorrect type in assignment (different base types)
      drivers/net/wireless/wl12xx/wl1271_cmd.c:676:18: warning: incorrect type in assignment (different base types)
      drivers/net/wireless/wl12xx/wl1271_cmd.c:787:22: warning: incorrect type in assignment (different base types)
      drivers/net/wireless/wl12xx/wl1271_cmd.c:789:21: warning: incorrect type in assignment (different base types)
      drivers/net/wireless/wl12xx/wl1271_tx.c:98:47: warning: incorrect type in argument 1 (different base types)
      drivers/net/wireless/wl12xx/wl1271_acx.c:932:32: warning: incorrect type in assignment (different base types)
      drivers/net/wireless/wl12xx/wl1271_boot.c:191:32: warning: incorrect type in argument 1 (different base types)
      drivers/net/wireless/wl12xx/wl1271_boot.c:197:38: warning: incorrect type in argument 1 (different base types)
      drivers/net/wireless/wl12xx/wl1271_boot.c:199:37: warning: incorrect type in argument 1 (different base types)
      drivers/net/wireless/wl12xx/wl1271_init.c:255:40: warning: incorrect type in assignment (different base types)
      drivers/net/wireless/wl12xx/wl1271_init.c:275:53: warning: incorrect type in assignment (different base types)
      Reported-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NLuciano Coelho <luciano.coelho@nokia.com>
      Reviewed-by: NJuuso Oikarinen <juuso.oikarinen@nokia.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      d0f63b20
    • J
      wl1271: Add config structure for FW init parameters · 47fab7d5
      Juuso Oikarinen 提交于
      Add a configuration structure for RX path parameters, and set default
      configuration values there.
      Signed-off-by: NJuuso Oikarinen <juuso.oikarinen@nokia.com>
      Reviewed-by: NLuciano Coelho <luciano.coelho@nokia.com>
      Signed-off-by: NLuciano Coelho <luciano.coelho@nokia.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      47fab7d5
  9. 14 8月, 2009 1 次提交