summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy
Commit message (Collapse)AuthorAgeFilesLines
* iwlegacy: 3945: fix hw passive scan on radar channelsStanislaw Gruszka2012-01-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Patch fix firmware error on "iw dev wlan0 scan passive" for hardware scanning (with disable_hw_scan=0 module parameter). iwl3945 0000:03:00.0: Microcode SW error detected. Restarting 0x82000008. iwl3945 0000:03:00.0: Loaded firmware version: 15.32.2.9 iwl3945 0000:03:00.0: Start IWL Error Log Dump: iwl3945 0000:03:00.0: Status: 0x0002A2E4, count: 1 iwl3945 0000:03:00.0: Desc Time asrtPC blink2 ilink1 nmiPC Line iwl3945 0000:03:00.0: SYSASSERT (0x5) 0041263900 0x13756 0x0031C 0x00000 764 iwl3945 0000:03:00.0: Error Reply type 0x000002FC cmd C_SCAN (0x80) seq 0x443E ser 0x00340000 iwl3945 0000:03:00.0: Command C_SCAN failed: FW Error iwl3945 0000:03:00.0: Can't stop Rx DMA. We have disable ability to change passive scanning to active on particular channel when traffic is detected on that channel. Otherwise firmware will report error, when we try to do passive scan on radar channels. Reported-and-debugged-by: Pedro Francisco <pedrogfrancisco@gmail.com> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwlegacy: 3945: simplify calculations of retry limitStanislaw Gruszka2012-01-043-15/+6
| | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwlegacy: random 3945-rs.c cleanupsStanislaw Gruszka2012-01-041-20/+11
| | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwlegacy: 4965: remove one il4965_hdl_beaconStanislaw Gruszka2012-01-042-21/+1
| | | | | | | We have two such functions. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwlegacy: 3945: get rid of hw_{set,get}_rateStanislaw Gruszka2012-01-042-20/+1
| | | | | | | | Remove these helpers, some are not unused at all, one can be unrolled in place of use. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwlegacy: 4965: small tx_cmd build cleanupStanislaw Gruszka2012-01-042-30/+9
| | | | | | | | Get rid of two inline functions related and simplify a bit rts_retry_limit calculations. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwlegacy: 4965: toggle tx antenna inlineStanislaw Gruszka2012-01-042-25/+18
| | | | | | | Make function static and change antenna number inline. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwlegacy: move some i/o helpers out of inlineStanislaw Gruszka2012-01-042-192/+175
| | | | | | | | | | | | | | | | | | | | This save us about 20k of text size, and should have no impact on performance as hot paths do not use much I/O. Before: text data bss dec hex filename 108512 1784 168 110464 1af80 drivers/net/wireless/iwlegacy/iwl3945.ko 165730 2164 156 168050 29072 drivers/net/wireless/iwlegacy/iwl4965.ko 91942 328 48 92318 1689e drivers/net/wireless/iwlegacy/iwlegacy.ko After: text data bss dec hex filename 95556 1784 168 97508 17ce4 drivers/net/wireless/iwlegacy/iwl3945.ko 154853 2164 156 157173 265f5 drivers/net/wireless/iwlegacy/iwl4965.ko 91634 328 48 92010 1676a drivers/net/wireless/iwlegacy/iwlegacy.ko Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwlegacy: off by one in iwl3945_hw_build_tx_cmd_rate()Dan Carpenter2012-01-041-1/+1
| | | | | | | | | | | We use "rate_index" like this: rate = iwl3945_rates[rate_index].plcp; The iwl3945_rates[] array has IWL_RATE_COUNT_3945 elements so the limit here is off by one. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwlegacy: remove iwl-sta.cStanislaw Gruszka2012-01-041-817/+0
| | | | | | | I forgot to remove this file before. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* iwlegacy: Use kcalloc instead of kzalloc to allocate arrayThomas Meyer2011-12-061-3/+2
| | | | | | | | | | | | The advantage of kcalloc is, that will prevent integer overflows which could result from the multiplication of number of elements and size and it is also a bit nicer to read. The semantic patch that makes this change is available in https://lkml.org/lkml/2011/11/25/107 Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
* Merge branch 'master' of ↵John W. Linville2011-11-222-0/+2
|\ | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux Conflicts: drivers/net/wireless/iwlegacy/iwl-debugfs.c drivers/net/wireless/iwlegacy/iwl-rx.c drivers/net/wireless/iwlegacy/iwl-scan.c drivers/net/wireless/iwlegacy/iwl-tx.c include/net/bluetooth/bluetooth.h
| * drivers/net: Add export.h to files using EXPORT_SYMBOL/THIS_MODULEPaul Gortmaker2011-10-315-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These were getting the macros from an implicit module.h include via device.h, but we are planning to clean that up. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> drivers/net: Add export.h to wireless/brcm80211/brcmfmac/bcmsdh.c This relatively recently added file uses EXPORT_SYMBOL and hence needs export.h included so that it is compatible with the module.h split up work. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
* | iwlegacy: debugfs_ops should depend on CONFIG_IWLEGACY_DEBUGFSGreg Dietsche2011-11-165-42/+8
| | | | | | | | | | | | | | Only setup structs related to debugfs_ops when CONFIG_IWLEGACY_DEBUGFS is set. Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: 4965-rs: cleanup il4965_rs_sta_dbgfs_rate_scale_data_readGreg Dietsche2011-11-161-7/+1
| | | | | | | | | | | | | | | | 1) remove ret local var and return the result directly 2) remove il since it is not used Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: 4965-rs: don't return rate from il4965_rs_update_rate_tblGreg Dietsche2011-11-161-9/+3
| | | | | | | | | | | | | | | | 1) don't return rate from il4965_rs_update_rate_tbl 2) fix up il4965_rs_rate_scale_perform Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: 4965-rs: il4965_rs_alloc_sta: remove lq_sta local varGreg Dietsche2011-11-161-4/+1
| | | | | | | | | | | | | | | | remove the lq_sta local variable and return the result directly in il4965_rs_alloc_sta Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: 4965-rs: remove unnecessary null check for sta and lq_staGreg Dietsche2011-11-161-3/+0
| | | | | | | | | | | | | | | | both sta and lq_sta are guaranteed to be not null in the calling function so we don't need to check them here. Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: 4965-rs: remove null check on sta in il4965_rs_tx_statusGreg Dietsche2011-11-161-1/+1
| | | | | | | | | | | | | | the null check on sta in il4965_rs_tx_status is not necessary Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: 4965: remove vif null check in request_scanGreg Dietsche2011-11-161-2/+1
| | | | | | | | | | | | | | remove null check on vif in il4965_request_scan Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: remove unused IL_AC_UNSET defineStanislaw Gruszka2011-11-151-2/+0
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: change IL_ERR to D_HT in iwl4965_rs_tl_turn_on_agg_for_tidGreg Dietsche2011-11-151-4/+4
| | | | | | | | | | | | | | This message should be a debug message and not an error. Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: change IL_WARN to D_HT in il4965_tx_agg_startGreg Dietsche2011-11-151-1/+1
| | | | | | | | | | | | | | This message should be a debug message and not a warning. Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: checkpatch.pl fixesStanislaw Gruszka2011-11-1514-411/+297
| | | | | | | | | | | | Fix most checkpatch.pl ERRORs and some WARNINGs. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: indentions and whitespacesStanislaw Gruszka2011-11-1517-6456/+6439
| | | | | | | | | | | | | | | | | | | | | | Process iwlegacy source files using: indent -npro -l500 -nhnl indent -npro -kr -i8 -ts8 -sob -l80 -nbbo -ss -ncs -cp1 -il0 -psl Plus manual compilation fixes. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: merge iwl-debug.h into common.hStanislaw Gruszka2011-11-157-209/+165
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: rename iwl-debug.c to debug.cStanislaw Gruszka2011-11-152-1/+1
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: merge iwl-fh.h into 4965.hStanislaw Gruszka2011-11-152-418/+351
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: use FH49_ prefix in 4965 codeStanislaw Gruszka2011-11-154-153/+153
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: use FH39_ prefix in 3945 codeStanislaw Gruszka2011-11-152-3/+3
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: rename iwl-prph.h to prph.hStanislaw Gruszka2011-11-153-2/+1
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: merge iwl-{eeprom,led}.h into common.hStanislaw Gruszka2011-11-158-412/+303
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: merge iwl-power.h into common.hStanislaw Gruszka2011-11-155-58/+12
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: merge iwl-legacy-rs.h into common.hStanislaw Gruszka2011-11-152-473/+442
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: remove iwl-helpers.hStanislaw Gruszka2011-11-151-187/+0
| | | | | | | | | | | | This file was already merged into common.h Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: merge common header filesStanislaw Gruszka2011-11-1518-2023/+2003
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: rename iwl-core.h to common.hStanislaw Gruszka2011-11-1511-10/+10
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: rename iwl-csr.h to csr.hStanislaw Gruszka2011-11-153-2/+1
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: move IL_MASKStanislaw Gruszka2011-11-152-3/+2
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: remove il_ieee80211_get_hw_confStanislaw Gruszka2011-11-154-9/+3
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: rename iwl-commands.h to commands.hStanislaw Gruszka2011-11-157-14/+5
| | | | | | | | | | | | On the way remove also not needed iwl-fh.h include. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: rename module nameStanislaw Gruszka2011-11-151-4/+4
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: merge common .c filesStanislaw Gruszka2011-11-159-2678/+3147
| | | | | | | | | | | | Merge iwl-{tx,rx,sta,scan,power,eeprom,led,hcmd}.c into common.c . Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: rename iwl-core.c to common.cStanislaw Gruszka2011-11-152-1/+1
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: rename other handlersStanislaw Gruszka2011-11-1510-53/+53
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: s/rx_reply/hdl/Stanislaw Gruszka2011-11-158-33/+33
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: s/rx_handler/handler/Stanislaw Gruszka2011-11-159-63/+63
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: rename REPLY_ to N_ or C_Stanislaw Gruszka2011-11-1517-317/+317
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: s/STATISTICS/STATS/Stanislaw Gruszka2011-11-1513-50/+50
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
* | iwlegacy: s/STATUS_/S_/Stanislaw Gruszka2011-11-1514-245/+245
| | | | | | | | Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
OpenPOWER on IntegriCloud