Matthias Beyer
b61124f99d
Staging: bcm: LeakyBucket.c: Outsourced code chunk into function
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Acked-by: Kevin McKinney <klmckinney1@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:21:14 -07:00
Matthias Beyer
0acfe734fa
Staging: bcm: LeakyBucket.c: Shortened lines
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Acked-by: Kevin McKinney <klmckinney1@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:21:14 -07:00
Matthias Beyer
f1220c7d6b
Staging: bcm: LeakyBucket.c: Replaced member accessing by variable
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Acked-by: Kevin McKinney <klmckinney1@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:21:14 -07:00
Matthias Beyer
792d921107
Staging: bcm: InterfaceTx.c: checkpath fix: Blank line after declarations
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Acked-by: Kevin McKinney <klmckinney1@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:20:25 -07:00
Matthias Beyer
26fba8e4e5
Staging: bcm: InterfaceTx.c: Outsourced code chunk
...
This patch outsources a chunk of code into an own function and refactors
the variable names inside the new function.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Acked-by: Kevin McKinney <klmckinney1@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:20:25 -07:00
Matthias Beyer
5faf33007f
Staging: bcm: InterfaceTx.c: Shortened lines + Whitespace cleanup
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Acked-by: Kevin McKinney <klmckinney1@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:20:25 -07:00
Matthias Beyer
8139b8d535
Staging: bcm: InterfaceRx.c: Removed unused variable
...
This patch removes the `process_done` variable from both
format_eth_hdr_to_stack() and read_bulk_callback() (where it is
declared), as it is not used anywhere (it is set in the
format_eth_hdr_to_stack() function, but afterwards not used).
Acked-by: Kevin McKinney <klmckinney1@gmail.com >
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:06:16 -07:00
Matthias Beyer
3a162b1948
Staging: bcm: InterfaceRx.c: Outsourced code chunk
...
This patch outsources a chunk of code into a function.
Acked-by: Kevin McKinney <klmckinney1@gmail.com >
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:06:16 -07:00
Matthias Beyer
c6346fafd1
Staging: bcm: InterfaceRx.c: Outsourced control packet handling
...
Acked-by: Kevin McKinney <klmckinney1@gmail.com >
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:06:16 -07:00
Matthias Beyer
f5c86ab9b6
Staging: bcm: InterfaceRx.c: Lines shortened
...
Acked-by: Kevin McKinney <klmckinney1@gmail.com >
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:06:16 -07:00
Malcolm Priestley
9fe109c153
staging: vt6656: vnt_update_ifs vendor changes to uSIFS/uDIFS
...
The latest vendor code makes changes to uSIFS and uDIFS.
The orginal codes have been rearranged into a fall through switch
statement.
These reduce the time that device allows to TX packets and
improves throughput.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:04:22 -07:00
Malcolm Priestley
4473c8cccd
staging: vt6656: vnt_set_keymode don't save pairwise key entry.
...
The device refuses to associate to older access points even though in
the logs it appears to be associated in tkip or ccmp mode.
Clear bit from key_entry_inuse in pairwise key so the entry is over written
by group address.
This doesn't seem to make any difference to newer access points and
is a temporary fix until a better solution is found.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:04:22 -07:00
Malcolm Priestley
618ff9cebe
staging: vt6656: s_nsBulkInUsbIoCompleteRead check that used sk_buff is clean and ready to reuse.
...
skb_push the headroom and trimmed back to 0
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:04:22 -07:00
Anton Protopopov
83e771fc88
staging: vt6655: fixed sparse warnings
...
This commit fixes a few sparse warnings for missing the 'static' keyword
in array definitions:
drivers/staging//vt6655/rxtx.c:81:22: warning: symbol 'wTimeStampOff' was not declared. Should it be static?
drivers/staging//vt6655/rxtx.c:86:22: warning: symbol 'wFB_Opt0' was not declared. Should it be static?
drivers/staging//vt6655/rxtx.c:90:22: warning: symbol 'wFB_Opt1' was not declared. Should it be static?
Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:03:57 -07:00
Malcolm Priestley
71d764aefe
stagingL vt6656: implement fall back rates reporting.
...
The driver reports the rate tried in struct vnt_interrupt_data tsr* variables
which is available in INTnsProcessData via interrupt urb context.
Instead of closing apTD tx context in s_nsBulkOutIoCompleteWrite by setting
in_use to false. Keep the context open and allow vnt_int_report_rate to
close it.
If the tx_retry value is correct it will report back the sucessful RATE tried.
struct vnt_usb_send_context add pkt_no which is index of apTD
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:03:57 -07:00
Malcolm Priestley
f5283274cc
staging: vt6656: Include re_alloc_skb within lock.
...
Remove variable re_alloc_skb and merge code within urb->actual_length.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:03:57 -07:00
Malcolm Priestley
04f2ff16e0
staging: vt6656: vnt_set_channel remove power setting functions
...
Power setting is already done in vnt_config and vnt_tx_packet.
Just check that for connection_channel, if invalid return.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:03:57 -07:00
Malcolm Priestley
47b41d9f44
staging: vt6656: vnt_rx_data add track rsr and new_rsr errors
...
Add rsr and new_rsr error packet error drop.
if NEWRSR_DECRYPTOK fails drop packet altogether.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:03:57 -07:00
Malcolm Priestley
5091d963b8
staging: vt6656: vnt_tx_packet don't change power when off channel.
...
The changing channel is so fast when off channel that changing power is pointless.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:03:57 -07:00
Malcolm Priestley
89daee6ff5
staging: vt6656: vnt_rf_setpower rate <= RATE_11M check array bound
...
decrement channel by one and check array bound.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:03:57 -07:00
Malcolm Priestley
72183c6b0c
staging: vt6656: vnt_rf_set_txpower use power for priv->byCurPwr
...
The byCurPwr value can change state while in another thread,.
Change to local variable power which is the last set value.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:03:57 -07:00
Malcolm Priestley
ba911c9b5b
staging: vt6656: turn radio off after mac registered.
...
Turn the radio off to save power is the device is unused
on system.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:03:57 -07:00
Malcolm Priestley
a5615b9775
staging: vt6656: s_nsBulkOutIoCompleteWrite fix bug of 5GHZ a rates idx
...
On 2GHz band the values of wCurrentRate match the idx rates.
However, on 5GHz they do not because in channel.c vnt_rates_a do not
match idx.
Instead use the info->control.rates[0].idx the value that was tried.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:02:41 -07:00
Malcolm Priestley
1786384e13
staging: vt6656: implement get_stats ieee80211_low_level_stats
...
The driver already report low_level_stats via vnt_interrupt_data.
Allow mac80211 to collect them via vnt_get_stats
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:02:41 -07:00
Chi Pham
fb3cdd16f2
staging: ced1401: Add void declarations in zero-arg functions.
...
Added explicit void declarations to zero-argument function headers.
The following coccinelle script was used:
@addvoid@
identifier f;
@@
f(
+ void
) { ... }
Signed-off-by: Chi Pham <fempsci@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 16:01:47 -07:00
Luca Ellero
1795f89542
staging: ced1401: remove typedef for CIRCBLK
...
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:59:35 -07:00
Luca Ellero
9db5b4e98c
staging: ced1401: rename FreeCircBlock()
...
rename camel case function FreeCircBlock() to ced_free_circ_block()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:59:35 -07:00
Luca Ellero
24d71e9d24
staging: ced1401: rename GetCircBlock()
...
rename camel case function GetCircBlock() to ced_get_circ_block()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:59:35 -07:00
Luca Ellero
31530abba1
staging: ced1401: rename SetCircular()
...
rename camel case function SetCircular() to ced_set_circular()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:59:35 -07:00
Luca Ellero
2cf025938d
staging: ced1401: rename DbgStopLoop()
...
rename camel case function DbgStopLoop() to ced_dbg_stop_loop()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:59:34 -07:00
Luca Ellero
9527a1a4d4
staging: ced1401: rename DbgGetData()
...
rename camel case function DbgGetData() to ced_dbg_get_data()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:59:34 -07:00
Luca Ellero
9f740cf62f
staging: ced1401: rename DbgRampAddr()
...
rename camel case function DbgRampAddr() to ced_dbg_ramp_addr()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:59:34 -07:00
Luca Ellero
d5e8507272
staging: ced1401: rename DbgRampData()
...
rename camel case function DbgRampData() to ced_dbg_ramp_data()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:59:34 -07:00
Luca Ellero
d8d66ea4c9
staging: ced1401: rename DbgPoke()
...
rename camel case function DbgPoke() to ced_dbg_poke()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:59:34 -07:00
Luca Ellero
3c625b6ae0
staging: ced1401: rename DbgPeek()
...
rename camel case function DbgPeek() to ced_dbg_peek()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:59:34 -07:00
Luca Ellero
d783de8dd4
staging: ced1401: rename DbgCmd1401()
...
rename camel case function DbgCmd1401() to ced_dbg_cmd()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:59:34 -07:00
Luca Ellero
4b8c94c918
staging: ced1401: rename TransferFlags()
...
rename camel case function TransferFlags() to ced_transfer_flags()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:59:34 -07:00
Luca Ellero
9056249f27
staging: ced1401: rename TypeOf1401()
...
rename camel case function TypeOf1401() to ced_type_of_1401()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:59:34 -07:00
Luca Ellero
4eb66246f3
staging: ced1401: rename CheckSelfTest()
...
rename camel case function CheckSelfTest() to ced_check_self_test()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:59:34 -07:00
Luca Ellero
2b7e29e592
staging: ced1401: rename StartSelfTest()
...
rename camel case function StartSelfTest() to ced_start_self_test()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:59:34 -07:00
Luca Ellero
21d46fc4ed
staging: ced1401: rename StateOf1401()
...
rename camel case function StateOf1401() to ced_state_of_1401()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:59:34 -07:00
Luca Ellero
9ee52ef6ad
staging: ced1401: remove unused func BlkTransState
...
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:59:34 -07:00
Luca Ellero
d2c4040b72
staging: ced1401: rename KillIO1401()
...
rename camel case function KillIO1401() to ced_kill_io()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:58:13 -07:00
Luca Ellero
3d012b01a8
staging: ced1401: rename GetTransfer()
...
rename camel case function GetTransfer() to ced_get_transfer()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:58:13 -07:00
Luca Ellero
b76530bba8
staging: ced1401: rename TestEvent()
...
rename camel case function TestEvent() to ced_test_event()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:58:13 -07:00
Luca Ellero
1971a00e5d
staging: ced1401: rename WaitEvent()
...
rename camel case function WaitEvent() to ced_wait_event()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:58:13 -07:00
Luca Ellero
617bfec33c
staging: ced1401: rename SetEvent()
...
rename camel case function SetEvent() to ced_set_event()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:58:13 -07:00
Luca Ellero
0f6f679a15
staging: ced1401: rename UnsetTransfer()
...
rename camel case function UnsetTransfer() to ced_unset_transfer()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:58:13 -07:00
Luca Ellero
991037533f
staging: ced1401: rename SetTransfer()
...
rename camel case function SetTransfer() to ced_set_transfer()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:58:12 -07:00
Luca Ellero
bb19c8c39c
staging: ced1401: rename SetArea()
...
rename camel case function SetArea() to ced_set_area()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:58:12 -07:00