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
Luca Ellero
119f4cf094
staging: ced1401: rename ClearArea()
...
rename camel case function ClearArea() to ced_clear_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
Luca Ellero
6e5155d0b8
staging: ced1401: rename GetOutBufSpace()
...
rename camel case function GetOutBufSpace() to ced_get_out_buf_space()
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
5dc137dd09
staging: ced1401: rename LineCount()
...
rename camel case function LineCount() to ced_line_count()
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
1de8f0a972
staging: ced1401: rename Stat1401()
...
rename camel case function Stat1401() to ced_stat_1401()
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
395b78e0ba
staging: ced1401: rename GetString()
...
rename camel case function GetString() to ced_get_string()
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
0e218f1717
staging: ced1401: rename Reset1401()
...
rename camel case function Reset1401() to ced_reset()
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
9629dbf142
staging: ced1401: rename QuickCheck()
...
rename camel case function QuickCheck() to ced_quick_check() and make it
static
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
93234ff46c
staging: ced1401: make ced_is_1401() static
...
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
6841e79ed6
staging: ced1401: rename Is1401()
...
rename camel case function Is1401() to ced_is_1401()
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
fd813a798d
staging: ced1401: rename InSelfTest()
...
rename camel case function InSelfTest() to ced_in_self_test()
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
a5830de9bd
staging: ced1401: rename ReadWrite_Cancel()
...
rename camel case function ReadWrite_Cancel() to ced_read_write_cancel()
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
46e6a290ed
staging: ced1401: rename Get1401State()
...
rename camel case function Get1401State() to ced_get_state()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:58:11 -07:00
Luca Ellero
1a0f2ccdeb
staging: ced1401: rename SendChar()
...
rename camel case function SendChar() to ced_send_char()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:58:11 -07:00
Luca Ellero
747ce5829e
staging: ced1401: rename SendString()
...
rename camel case function SendString() to ced_send_string()
Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-07-08 15:58:11 -07:00