summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6656/card.c
Commit message (Collapse)AuthorAgeFilesLines
* staging: vt6656: remove address from GPL textOthmar Pasteka2015-11-201-3/+0Star
| | | | | | | Cleanup errors from checkpatch.pl. Signed-off-by: Othmar Pasteka <pasteka@kabsi.at> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: Do not use multiple blank lines.Burcin Akalin2015-10-271-1/+0Star
| | | | | | | | Remove multiple blank lines. Problem found using checkpatch.pl "CHECK: Please don't use multiple blank lines" Signed-off-by: Burcin Akalin <brcnakalin@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: Add space around '|'Burcin Akalin2015-10-271-1/+1
| | | | | | | | | Add space around operator '|'. Problem found using checkpatch.pl CHECK: spaces preferred around that '|' (ctx:VxV) Signed-off-by: Burcin Akalin <brcnakalin@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: Prefer using BIT MacroAmitoj Kaur Chawla2015-10-171-1/+1
| | | | | | | | | | | | | Replace bit shifting on 1 with the BIT(x) Macro The semantic patch used to find this is: @@ int g; @@ -(1 << g) +BIT(g) Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: Remove useless initialisationAmitoj Kaur Chawla2015-10-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Remove intialisation of a variable that is immediately reassigned. The semantic patch used to find this is: // <smpl> @@ type T; identifier x; constant C; expression e; @@ T x - = C ; x = e; // </smpl> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: Boolean tests don't need comparisons.Abdul Hussain2015-06-181-1/+1
| | | | | | | This patch remove true and false from boolean tests. Signed-off-by: Abdul Hussain <habdul@visteon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: vt6656: Fixed typo in a macro nameGustavo A. R. Silva2015-01-131-1/+1
| | | | | | | Fixed typo in a macro name in card.c and device.h files. Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: remove unnecessary else after returnTapasweni Pathak2014-09-231-2/+1Star
| | | | | | | | This patch fixes checkpatch.pl warning in files of vt6656 WARNING: else is not generally useful after a break or return Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: remove comments of old functions nolonger present.Malcolm Priestley2014-07-271-6/+0Star
| | | | | Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: remove return from all void functionsMalcolm Priestley2014-07-271-4/+0Star
| | | | | Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: struct vnt_private replace abyBBVGA with bb_vgaMalcolm Priestley2014-07-211-9/+9
| | | | | | | Removing type prefix and camel case. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: struct vnt_private replace bShortSlotTime with short_slot_timeMalcolm Priestley2014-07-211-1/+1
| | | | | | | Removing type prefix and camel case Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: struct vnt_private replace byTopCCKBasicRate with ↵Malcolm Priestley2014-07-211-1/+1
| | | | | | | | | top_cck_basic_rate Removing type prefix and camel case. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: struct vnt_private replace byTopOFDMBasicRate with ↵Malcolm Priestley2014-07-211-1/+1
| | | | | | | | | top_ofdm_basic_rate Removing type prefix and camel case. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: struct vnt_private replace wBasicRate with basic_ratesMalcolm Priestley2014-07-211-7/+7
| | | | | | | The same name as in struct ieee80211_bss_conf Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: struct vnt_private replace byPacketType with packet_typeMalcolm Priestley2014-07-211-3/+3
| | | | | | | Removing type prefix and camel case. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: struct vnt_private replace byBBType with bb_typeMalcolm Priestley2014-07-211-12/+12
| | | | | | | Removing type prefix and camel case. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: struct vnt_private remove camel case IFS namesMalcolm Priestley2014-07-211-23/+23
| | | | | | | | | | | Camel case changes uSIFS -> sifs uDIFS -> difs uEIFS -> eifs uSlot -> slot Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: struct vnt_private remove uCwMin/uCwMaxMalcolm Priestley2014-07-211-8/+2Star
| | | | | | | Although set these variables are not used. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: struct vnt_private rename qwCurrTSF to current_tsfMalcolm Priestley2014-07-211-2/+2
| | | | | Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: struct vnt_private replace byRFType with rf_typeMalcolm Priestley2014-07-211-6/+6
| | | | | | | Remove camel case Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: put radio power off and on into correct state every time.Malcolm Priestley2014-07-191-3/+4
| | | | | | | | | | | | | When radio is off bit GPIO3_INTMD should be on and off when radio is on. Add these to the tail of vnt_radio_power_off and vnt_radio_power_on and remove variable bHWRadioOff. In device_init_registers just check GPIO3_DATA are in correct state and always power on. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: struct vnt_private remove unused variable bRadioOffMalcolm Priestley2014-07-191-4/+0Star
| | | | | | | The variable flips from true to false but does nothing Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: struct vnt_private remove unused variable bRadioControlOffMalcolm Priestley2014-07-191-1/+1
| | | | | | | This variable is never set. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: rename BBvExitDeepSleep to vnt_exit_deep_sleepMalcolm Priestley2014-07-181-1/+1
| | | | | | | Dropping BB Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: rename BBvSetDeepSleep to vnt_set_deep_sleepMalcolm Priestley2014-07-181-1/+1
| | | | | | | Dropping BB Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: rename BBvSetVGAGainOffset to vnt_set_vga_gain_offsetMalcolm Priestley2014-07-181-1/+1
| | | | | | | Dropping BB Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6556: Cleanup coding style: lines over 80 charsPeter Senna Tschudin2014-07-161-4/+5
| | | | | | | | | | | | This patch cleanup the follwoing coding style issues: - line over 80 chars - spaces on the beginning of a line - put { and } on the correct places Tested by compilation only. Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6556: Cleanup coding style: commentsPeter Senna Tschudin2014-07-161-2/+2
| | | | | | | | | This patch cleanup coding style issues on comments. Tested by compilation only. Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: vnt_update_ifs vendor changes to uSIFS/uDIFSMalcolm Priestley2014-07-091-0/+30
| | | | | | | | | | | | | 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>
* staging: vt6656: vnt_set_channel remove power setting functionsMalcolm Priestley2014-07-091-23/+2Star
| | | | | | | | | 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>
* staging: vt6656: set BBvSetVGAGainOffset inside vnt_set_bss_modeMalcolm Priestley2014-06-291-0/+2
| | | | | | | | vnt_set_bss_mode changes the state of abyBBVGA so move BBvSetVGAGainOffset to the function. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: remove vnt_add_basic_rateMalcolm Priestley2014-06-291-22/+0Star
| | | | | | | The driver never sets basic rate any more so remove function. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: dead code remove tmacro.hMalcolm Priestley2014-06-271-1/+0Star
| | | | | Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: remove dead code datarateMalcolm Priestley2014-06-271-1/+0Star
| | | | | Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: dead code remove rc4.c/hMalcolm Priestley2014-06-271-1/+0Star
| | | | | Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: dead code remove zonetypesMalcolm Priestley2014-06-271-1/+0Star
| | | | | | | | | | | Remove vntconfiguration.dat, iocmd.h and country.h Set all channels are enabled as by rf type. mac80211 will handles zones Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: mac80211 conversion: vnt_update_ifs change basic ratesMalcolm Priestley2014-06-271-20/+2Star
| | | | | | | | | Use wBasicRate to find ofdm_rate. wBasicRate is changed to u32 to match struct ieee80211_bss_conf -> basic_rates Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: rename BBvCalculateParameter to vnt_get_phy_fieldMalcolm Priestley2014-06-201-4/+4
| | | | | | | The function returns the phy fields rename to vnt_get_phy_field Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: rename MACvRegBitsOff to vnt_mac_reg_bits_offMalcolm Priestley2014-06-201-4/+4
| | | | | Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: rename MACvRegBitsOff to vnt_mac_reg_bits_offMalcolm Priestley2014-06-201-3/+3
| | | | | Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: rename MACvSetBBType to vnt_mac_set_bb_typeMalcolm Priestley2014-06-201-2/+2
| | | | | Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: rename CARDvSetBSSMode to vnt_set_bss_modeMalcolm Priestley2014-06-201-1/+1
| | | | | | | drop card and rename to vnt_set_bss_mode Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: rename CARDbRadioPowerOn to vnt_radio_power_onMalcolm Priestley2014-06-201-2/+2
| | | | | | | Drop card and rename to vnt_radio_power_on Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: rename CARDbRadioPowerOff to vnt_radio_power_offMalcolm Priestley2014-06-201-2/+2
| | | | | | | Drop card and rename to vnt_radio_power_off Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: rename CARDvUpdateNextTBTT to vnt_update_next_tbttMalcolm Priestley2014-06-201-2/+2
| | | | | | | Drop card and rename to vnt_update_next_tbtt Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: rename CARDvSetFirstNextTBTT to vnt_reset_next_tbttMalcolm Priestley2014-06-201-2/+2
| | | | | | | | Drop card, set and first. The device resets the next tbtt rename to vnt_reset_next_tbtt Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: rename CARDqGetNextTBTT to vnt_get_next_tbttMalcolm Priestley2014-06-201-4/+4
| | | | | | | Drop card and rename to vnt_get_next_tbtt Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: rename CARDbClearCurrentTSF to vnt_clear_current_tsfMalcolm Priestley2014-06-201-2/+2
| | | | | | | Drop card and rename to vnt_clear_current_tsf Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: vt6656: rename CARDbGetCurrentTSF to vnt_get_current_tsfMalcolm Priestley2014-06-201-2/+2
| | | | | | | Drop card and rename to vnt_get_current_tsf Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>