radio-tavarua: Validate whether the current station is good or bad

Provide mechanism to decide whether the currently tuned station
is valid or not.

CRs-Fixed: 371689
Change-Id: I1a28537d242fbb636732b120c9259ad5e7fffcc0
Signed-off-by: Anantha Krishnan <ananthk@codeaurora.org>
radio-tavarua: Handle I2C read/write errors during sleep mode.

Getting read/write errors when the I2C is not resumed from the sleep

Added re-try mechanism to handle during I2C read/write

Change-Id: I5a533b085ccfcda2181a2d5ea792bbb3d187c477
CRs-Fixed: 427937
Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
radio-tavarua: Configure channel spacing for enhanced search

Enhanced search algorithm detects 50Khz channel spacing frequencies
in a band with 100khz channel spacing.
Update channel spacing for enhanced Search algorithm on WCN2243 2.1.

Change-Id: If133895e33679a1bc84df8d25841e7e13aa36629
CRs-Fixed: 450643
Signed-off-by: Venkateshwarlu Domakonda <Venkateshwarlu@codeaurora.org>
radio: tavarua: Fix buffer overflow.

Removed improper typecasting to fix buffer overflow.

CRs-fixed: 554963

Change-Id: Ie3ae5a502f060c13eba7cb5c28a1af389b772af2
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
radio: tavarua: Fixes for memory leaks.

Freeing memory allocated in case of failures.

Change-Id: I323b9c414d725d6b9dc0698e2ed03ef9c2450e5f
CRs-fixed: 557048
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
Bluetooth: Update auth type based on link key type

This patch updates connection authentication type, before sending
new authentication request to remote device when remote device has
removed the link key. This is done based on existing link key type.
If Existing link key type is Authenticated Link Key, then
authentication type is reset to Dedicated Bonding from General
Bonding.

Change-Id: I077f9223185a85ff4adf87a4d7f43758b24bcd1e
CRs-Fixed: 522813
Signed-off-by: Hemant Gupta <hemantg@codeaurora.org>
arm: Move the secondary_startup to __CPUINIT section.

Because of addition 1MB alignment after head.txt section,
the secondary_startup needs to move to 1MB aligned section.

CRs-Fixed: 513919
Change-Id: I332d1e4ec95c877406c6ad3318e5f9a3c85cc10f
Signed-off-by: Venkatesh Yadav Abbarapu <quicvenkat@codeaurora.org>