aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/iwlegacy
AgeCommit message (Collapse)AuthorFilesLines
2012-02-22iwlegacy: dump stack when fail to gain access to the deviceStanislaw Gruszka1-2/+3
Print dump stack when the device is not responding. This should give some more clue about the reason of failure. Also change the message we print, since "MAC in deep sleep" is kinda confusing. On the way add unlikely(), as fail to gain NIC access is hmm ... unlikely. Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: remove set_hw_params callbackStanislaw Gruszka3-85/+59
We do not need that callback, settings parameters can be done locally. Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: remove struct il_tx_infoStanislaw Gruszka6-69/+46
It's just wrapper to sk_buff pointers ... Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: merge il_base_params into il_cfgStanislaw Gruszka7-81/+83
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: move ops out of configStanislaw Gruszka10-167/+127
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: get rid of ctx structureStanislaw Gruszka10-378/+261
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: remove il_setup_interface()Stanislaw Gruszka1-19/+3
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: get rid of ctx->is_activeStanislaw Gruszka4-31/+3
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: get rid of ctx->ac_to_queueStanislaw Gruszka2-8/+2
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: get rid of ctx->ac_to_fifoStanislaw Gruszka2-10/+8
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: move ht out of ctx structureStanislaw Gruszka4-49/+46
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: move qos_data out of ctx structureStanislaw Gruszka3-19/+18
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: remove ctx interface_modesStanislaw Gruszka4-35/+8
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: get rid of ctx->station_flagsStanislaw Gruszka2-3/+1
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: move wep_keys out of contextStanislaw Gruszka2-38/+39
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: get rid of mcast_queueStanislaw Gruszka2-16/+4
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: get rid of ctxidStanislaw Gruszka5-14/+1
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: get rid of *_devtypeStanislaw Gruszka4-11/+3
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: move bcast_sta_id to hw_paramsStanislaw Gruszka7-18/+19
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: get rid of ap_sta_idStanislaw Gruszka4-5/+3
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: get rid of wep_key_cmdStanislaw Gruszka3-5/+1
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: get rid of qos_cmdStanislaw Gruszka4-4/+1
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: get rid of rxon_assoc_cmdStanislaw Gruszka3-3/+0
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: get rid of ctx->rxon_timing_cmdStanislaw Gruszka4-4/+2
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: get rid of ctx->rxon_cmdStanislaw Gruszka4-6/+4
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-02-06iwlegacy: move rxon commands out of ctx structureStanislaw Gruszka9-228/+205
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-01-04iwlegacy: 3945: fix hw passive scan on radar channelsStanislaw Gruszka1-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 <[email protected]> Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-01-04iwlegacy: 3945: simplify calculations of retry limitStanislaw Gruszka3-15/+6
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-01-04iwlegacy: random 3945-rs.c cleanupsStanislaw Gruszka1-20/+11
Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-01-04iwlegacy: 4965: remove one il4965_hdl_beaconStanislaw Gruszka2-21/+1
We have two such functions. Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-01-04iwlegacy: 3945: get rid of hw_{set,get}_rateStanislaw Gruszka2-20/+1
Remove these helpers, some are not unused at all, one can be unrolled in place of use. Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-01-04iwlegacy: 4965: small tx_cmd build cleanupStanislaw Gruszka2-30/+9
Get rid of two inline functions related and simplify a bit rts_retry_limit calculations. Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-01-04iwlegacy: 4965: toggle tx antenna inlineStanislaw Gruszka2-25/+18
Make function static and change antenna number inline. Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-01-04iwlegacy: move some i/o helpers out of inlineStanislaw Gruszka2-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 <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-01-04iwlegacy: off by one in iwl3945_hw_build_tx_cmd_rate()Dan Carpenter1-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 <[email protected]> Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2012-01-04iwlegacy: remove iwl-sta.cStanislaw Gruszka1-817/+0
I forgot to remove this file before. Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2011-12-06iwlegacy: Use kcalloc instead of kzalloc to allocate arrayThomas Meyer1-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 <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2011-11-22Merge branch 'master' of ↵John W. Linville2-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
2011-11-16iwlegacy: debugfs_ops should depend on CONFIG_IWLEGACY_DEBUGFSGreg Dietsche5-42/+8
Only setup structs related to debugfs_ops when CONFIG_IWLEGACY_DEBUGFS is set. Signed-off-by: Greg Dietsche <[email protected]> Signed-off-by: Stanislaw Gruszka <[email protected]>
2011-11-16iwlegacy: 4965-rs: cleanup il4965_rs_sta_dbgfs_rate_scale_data_readGreg Dietsche1-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 <[email protected]> Signed-off-by: Stanislaw Gruszka <[email protected]>
2011-11-16iwlegacy: 4965-rs: don't return rate from il4965_rs_update_rate_tblGreg Dietsche1-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 <[email protected]> Signed-off-by: Stanislaw Gruszka <[email protected]>
2011-11-16iwlegacy: 4965-rs: il4965_rs_alloc_sta: remove lq_sta local varGreg Dietsche1-4/+1
remove the lq_sta local variable and return the result directly in il4965_rs_alloc_sta Signed-off-by: Greg Dietsche <[email protected]> Signed-off-by: Stanislaw Gruszka <[email protected]>
2011-11-16iwlegacy: 4965-rs: remove unnecessary null check for sta and lq_staGreg Dietsche1-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 <[email protected]> Signed-off-by: Stanislaw Gruszka <[email protected]>
2011-11-16iwlegacy: 4965-rs: remove null check on sta in il4965_rs_tx_statusGreg Dietsche1-1/+1
the null check on sta in il4965_rs_tx_status is not necessary Signed-off-by: Greg Dietsche <[email protected]> Signed-off-by: Stanislaw Gruszka <[email protected]>
2011-11-16iwlegacy: 4965: remove vif null check in request_scanGreg Dietsche1-2/+1
remove null check on vif in il4965_request_scan Signed-off-by: Greg Dietsche <[email protected]> Signed-off-by: Stanislaw Gruszka <[email protected]>
2011-11-15iwlegacy: remove unused IL_AC_UNSET defineStanislaw Gruszka1-2/+0
Signed-off-by: Stanislaw Gruszka <[email protected]>
2011-11-15iwlegacy: change IL_ERR to D_HT in iwl4965_rs_tl_turn_on_agg_for_tidGreg Dietsche1-4/+4
This message should be a debug message and not an error. Signed-off-by: Greg Dietsche <[email protected]> Signed-off-by: Stanislaw Gruszka <[email protected]>
2011-11-15iwlegacy: change IL_WARN to D_HT in il4965_tx_agg_startGreg Dietsche1-1/+1
This message should be a debug message and not a warning. Signed-off-by: Greg Dietsche <[email protected]> Signed-off-by: Stanislaw Gruszka <[email protected]>
2011-11-15iwlegacy: checkpatch.pl fixesStanislaw Gruszka14-411/+297
Fix most checkpatch.pl ERRORs and some WARNINGs. Signed-off-by: Stanislaw Gruszka <[email protected]>
2011-11-15iwlegacy: indentions and whitespacesStanislaw Gruszka17-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 <[email protected]>