History log of /drivers/net/wireless/iwlegacy/4965-mac.c
Revision Date Author Comments
883a649b737cdbe3ede7e50f3f939fd706ed5c4e 13-Mar-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: do not nulify il->vif on reset

This il->vif is dereferenced in different part of iwlegacy code, so do
not nullify it. This should fix random crashes observed in companion
with microcode errors i.e. crash in il3945_config_ap().

Additionally this should address also
WARNING: at drivers/net/wireless/iwlegacy/common.c:4656 il_mac_remove_interface
at least one of the possible reasons of that warning.

Cc: stable@vger.kernel.org
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
50269e19ad990e79eeda101fc6df80cffd5d4831 24-Mar-2012 Eric Dumazet <eric.dumazet@gmail.com> net: add a truesize parameter to skb_add_rx_frag()

skb_add_rx_frag() API is misleading.

Network skbs built with this helper can use uncharged kernel memory and
eventually stress/crash machine in OOM.

Add a 'truesize' parameter and then fix drivers in followup patches.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
d7b6b6a64301d6b0c632c8b9563a27aeeb09e967 27-Feb-2012 Greg Dietsche <Gregory.Dietsche@cuw.edu> iwlegacy: remove enum iw_calib and related code

Remove the enum il_calib. It defined one identifier: IL_CALIB_MAX.
Remove the function il4965_calib_free_results. It was doing nothing
because IL_CALIB_MAX is zero. Next, remove calib_results from the
il_priv structure and also remove the associated return
type/struct il_calib_result.

Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
02f2f1a951f87644166926862ec32fb13511e2f3 27-Feb-2012 Johannes Berg <johannes.berg@intel.com> mac80211: handle non-bufferable MMPDUs correctly

This renames the IEEE80211_TX_CTL_POLL_RESPONSE
TX flag to IEEE80211_TX_CTL_NO_PS_BUFFER and also
uses it for non-bufferable MMPDUs (all MMPDUs but
deauth, disassoc and action frames.)

Previously, mac80211 would let the MMPDU through
but not set the flag so drivers supporting some
hardware aids for avoiding the PS races would
then reject the frame.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
6668e4eb5030af96d2bde366b8f6614b34b8c96c 13-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: s/il_txq_mem/il_free_txq_mem/g

Previous name was confusing.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
bc269a8e2701aaa6c53553eaef9f0866ef03e703 13-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: s/S_RF_KILL_HW/S_RFKILL/g

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
d87c771f47460f7ca943942d508f2b9bd223a7e0 13-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: small queue initializations cleanup

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
3976b4519458b27753196e63c89b2a774129e19a 14-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: enable only rfkill interrupt when rfkill switch is on during IFF_UP

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
71e0c6c267595f406cf0e0699bacf10098e0f387 13-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: small il4965_set_hw_ready cleanup

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
775ed8abde9420afc955ca7540aacdce721be6c1 13-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: do not grab nic access if rfkill

If rfkill is on il_grab_nic_access() fail and we can not write to the
various registers during stop procedure. Write to those registers
unconditionally instead.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
c37281a076604937ec2403f3cfec71362f93c7d8 13-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwleagcy: fix ident code damage

Using ident is not always good.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
288f9954132cd64f60fbb8051e31d62d8c35875f 13-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: get rid of tx/rx traffic log

The same data can be gathered using monitor mode.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
c936355172a7e4aeadbbdcaae48f10e31f604899 13-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: merge all ops structures into one

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
1600b87542ce93e3dc094f6b108d8c2953e2ca0e 13-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: merge il_lib_ops into il_ops

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
f03ee2a87e21f76928c10d822639ec437113d312 13-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: remove il_apm_ops

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
527901d0aeb233a479123b7e5f542fbc911ccf6d 13-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: remove temp_ops

Remove unneeded structure and cleanup temperature calibration routines
a bit.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
93b7654ec563a929a62da70324e834eeb18a2778 13-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: move debugfs_ops to il_priv

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
3dfea27d103e9913698cf1a2c86745a74c7c556b 13-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: gather all 4965 handlers in one place

Handers belongs logically into 4965-mac.c file.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
a5f16137ab8aff1208d3ea013033d0d38f15a61f 13-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: use writeb,writel,readl directly

That change will save us some CPU cycles at run time. Having
port-based I/O seems to be not possible for PCIe devices.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
1e0f32a43ae652eaa5b23dc06852938555cb8da1 13-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: always check if got h/w access before write

Before we write to the device register always check if
_il_grap_nic_access() was successful.

Change type return type _il_grap_nic_access() to bool, and
add likely()/unlikely() statements.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
1023f3bc7b3f56da1f79f605cbe459318c4792ae 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: remove set_hw_params callback

We do not need that callback, settings parameters can be done locally.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
00ea99e1d86b05e7ba90d66673b536b731af87cd 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: remove struct il_tx_info

It's just wrapper to sk_buff pointers ...

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
89ef1ed2d241d3dfe884055d8446a5dd94919e54 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: merge il_base_params into il_cfg

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
c39ae9fd505ae314a7a4a159a41e3e022cfa317f 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: move ops out of config

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
83007196037cc2d0bffd9f7afbe56d675779a6cb 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: get rid of ctx structure

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
dee9a09eb34a272494a315fe0c19e49b6375a000 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: get rid of ctx->is_active

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
eb123af3d1e038c486fc8fcf19518133883792d5 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: get rid of ctx->ac_to_queue

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
b75b3a70a623e6c39512e3ed9a0fd76cea19c085 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: get rid of ctx->ac_to_fifo

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
1c03c4620edc551b5bbcc87c7aca02b482d8bc51 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: move ht out of ctx structure

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
8c9c48d5a9ca5e1426372f8a747846bd0609dc08 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: remove ctx interface_modes

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
d735f9213d11e34e6ed074acea30b6743b3385e6 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: move wep_keys out of context

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
d1e14e942430cd42df9913337aebbcaef53e4515 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: get rid of mcast_queue

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
6aa0c25435e6383d4a4af88fae8d128200dcd471 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: get rid of ctxid

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
0f8b90f526f097a5c897f52b3595e9af55fc9b59 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: get rid of *_devtype

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
b16db50a6dc486c3a6c32cd7982a75452cb785c2 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: move bcast_sta_id to hw_params

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
8f9e56455310a3d75e8239db9729acb2b31dbdad 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: get rid of ap_sta_id

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
d98e294231a29699848fd0e923d91fe979e13802 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: get rid of wep_key_cmd

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
b96ed60cd0c352891fd04f4aa748f4d36a6cec5b 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: get rid of qos_cmd

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
5e349f02963acc2c3607119e6e64f0cbc8d23e17 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: get rid of rxon_assoc_cmd

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
63d0f0c5512e29f87ed2e1612bb637d857f3b345 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: get rid of ctx->rxon_timing_cmd

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
6122d18236837ed7f264632e6b27d5cb3005add2 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: get rid of ctx->rxon_cmd

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
c8b03958d4b23dc48932ec095a391f3d6447e0e9 03-Feb-2012 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: move rxon commands out of ctx structure

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
5bf0dac47fef5270bde3c20a734a3c69e51f9eff 23-Dec-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: 4965: remove one il4965_hdl_beacon

We have two such functions.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
616107ed818876076bc482d3a33f89c31297b86e 23-Dec-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: 4965: small tx_cmd build cleanup

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>
a0c1ef3b12f88c0ed7683472395145e491808b4b 23-Dec-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: 4965: toggle tx antenna inline

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>
730b4c2102902a0061bb01a3d3fa1b6461973849 07-Sep-2011 Greg Dietsche <Gregory.Dietsche@cuw.edu> iwlegacy: 4965: remove vif null check in request_scan

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>
53611e05263ca2101a29736920fdf86ccad0e93b 28-Aug-2011 Greg Dietsche <Gregory.Dietsche@cuw.edu> iwlegacy: change IL_WARN to D_HT in il4965_tx_agg_start

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>
1722f8e12a9c6117d872bd19ec5919460ccdfb4e 15-Nov-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: checkpatch.pl fixes

Fix most checkpatch.pl ERRORs and some WARNINGs.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
e7392364fcd1004a5e495f15cf21b1e0ef874215 15-Nov-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: indentions and whitespaces

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>
9a95b37015de03aa82bf340b3ee8e97af11be910 31-Aug-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: use FH49_ prefix in 4965 code

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
47ef694dd47b1e97a0d766f3c74067bab3debfa5 31-Aug-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: merge iwl-{eeprom,led}.h into common.h

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
e94a4099adb2ec148776975bcd953a01c6bec992 31-Aug-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: merge common header files

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
98613be06e9de8acd20841d2d85b99c39b3b7814 15-Nov-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: rename iwl-core.h to common.h

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
e53aac424767a9f42b3bbac22eb001491f605d4e 31-Aug-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: move IL_MASK

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
d2dfb33ec9a8da257bb0e6ed2872af2fdf85260c 15-Nov-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: rename other handlers

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
6e9848b496cf256ba820094e88e78cc4f8304008 30-Aug-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: s/rx_reply/hdl/

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
d0c72347bece3299a90351151c69c0f721f964ff 30-Aug-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: s/rx_handler/handler/

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
4d69c7521a90cba945b4720672b4511b1e541189 30-Aug-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: rename REPLY_ to N_ or C_

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
db7746f78cab25ee39dd20f61d9b2e6b5993d8fa 15-Nov-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: s/STATISTICS/STATS/

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
a6766ccdaf9cc80d565672516d429a562d1a732d 15-Nov-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: s/STATUS_/S_/

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
af038f404ffb851dcefa0c56c5c81cacd06f0903 30-Aug-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: move iwl-4965-{,hw,debugfs,calib}.h to 4965.h

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
8f29b456f8b2c560819f698b82ef2efc09ac47c5 15-Nov-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: add accidentally removed comments

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
fcb74588dccb06d8e3e13afb36c5401cae470518 30-Aug-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: merge iwl-4965-lib.c into 4965-mac.c

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
a1751b22a82e6cd2da6c9e79611cfd6d6aba1d39 15-Nov-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: merge iwl-4965-{tx,rx}.c into 4965-mac.c

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
eb3cdfb72d1cc73d8f78f01bc107064d77727d30 30-Aug-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: merge iwl-4965-sta.c into 4965-mac.c

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
fc19cbde0c38c24f2d473f9095fbd5772883ec59 29-Aug-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: merge iwl-4965-led.c into 4965.c

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
61fe55f61fb48b691251e0f75505674db77f5d29 15-Nov-2011 Stanislaw Gruszka <sgruszka@redhat.com> iwlegacy: rename base 4965 and 3945 file names

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>