Wlan: Sync Prima wlan with kk_2.7-stable

commit b82d05ac78a529e0c86d8a95542e7ee4e6821405
Author: Katya Nigam <knigam@qti.qualcomm.com>
Date:   Mon Apr 21 14:49:51 2014 +0530

    wlan: Check to not cache frames in a SAP session.

    Currently we cache frames in a softap session but do not forward it.
    So adding check in WLANTL_RxFrames so that frames are not cached in
    a softap session.

    Change-Id: I5261aabb49d4bde619664a0f681127b580a65da2
    CRs-Fixed: 650054

commit b49b955707fea1a53b4847efe6d5ee8a4111668e
Author: Hanumantha Reddy Pothula <c_hpothu@codeaurora.org>
Date:   Fri Apr 18 18:00:36 2014 +0530

    wlan: Adding NULL check before using a poniter.

    Call WLANTL_AssocFailed() only when pRoamInfo is valid.

    Change-Id: I342abe6708b22a4fef3b8941338dbc83cafd03ed
    CRs-fixed: 650785

commit 741c481d2b83c3e9b21226e1f49e39f6a2fd8a35
Author: Mihir Shete <smihir@qti.qualcomm.com>
Date:   Tue Mar 25 00:02:54 2014 +0530

    wlan: do not enter IMPS if DXE rings have pending TX data

    It has been observed that if WCNSS goes to IMPS if data
    is pending DXE will try to push that data once the WCNSS
    comes out of IMPS. The Data pushed by DXE is leading to
    a WCNSS crash in certain cases, so add a check in the host
    to defer IMPS if DXE rings are not empty.

    Change-Id: Ie4c729285495a96914e792833e26d6ec78a03302
    CRs-Fixed: 634187

commit 056034620185ddc5e6f6bd6e1ef4e1cd68485dc2
Author: Mahesh A Saptasagar <c_msapta@qti.qualcomm.com>
Date:   Mon Apr 14 19:17:41 2014 +0530

    wlan: Protect wlan_hdd_cfg80211_change_iface function from SSR

    Protect wlan_hdd_cfg80211_change_iface function from accessing
    uninitialized or deallocated data structures while SSR is in
    progress.

    Change-Id: I3472eccc41d2a6f2f4526d99dacbb8bbde61aaab
    CRs-Fixed: 633889

commit 750f6a1d06612bdf385760e7b42507bee1b63f0f
Author: Abhishek Singh <absingh@qti.qualcomm.com>
Date:   Mon Mar 24 14:00:41 2014 +0530

    wlan: Fix for Static analysis issues in vos_nvitem.c

    The 'request->alpha2' of size 2 is passed to sme_ChangeCountryCode
    but in sme_ChangeCountryCode it is considered as size of 3.

    Pass ccode of length 3 to sme_ChangeCountryCode insted of
    request->alpha2.

    Change-Id: I579c29e038565e21555bc555e3e3fa6473398293
    CRs-Fixed: 633938

commit 29aee5cf6a65295b365b7bbf6927d3a55fdf1afc
Author: Mahesh A Saptasagar <c_msapta@qti.qualcomm.com>
Date:   Tue Apr 8 12:48:39 2014 +0530

    wlan: Delay SSR during active entry points

    Changes for delaying SSR if any identified entry points are active.
    This is required to avoid any access to uninitialized or
    deallocated data structure.

    Change-Id: I2a78ef9df62713b5803d88e99ff4371dcd60f5a9
    CRs-Fixed: 642329

commit 96abac7c29c178b9374c8256788b7bab4e2643b7
Author: Pradeep Reddy POTTETI <ppotte@codeaurora.org>
Date:   Mon Mar 24 19:45:47 2014 +0530

    TDLS: Set tdls hdd context to NULL after freeing

    While exiting the tdls hdd context after freeing the peer list
    we should also set TDLS context in STA session context of adapter
    to NULL.

    CRs-Fixed: 637112
    Change-Id: I5d8f99b74d1421434e28dc3d0a43dde306292fe3

commit 5bd39077c4f9552d6bceaf436981c2f03e4015d8
Author: Rajesh Chauhan <rajeshc@codeaurora.org>
Date:   Thu Apr 17 15:35:04 2014 +0530

    TDLS: replace mutex_lock_interruptible with mutex_lock for tdls lock

    Use  mutex_lock instead of mutex_lock_interruptible to avoid race
    condition which can occur due to interrupts.

    CRs-fixed: 637112
    Change-Id: I367afd789e568f87080caeebf2e3ec09df51bc13

commit 149279d84d632249117c4d79c7abece1fbf0eab0
Author: Siddharth Bhal <sbhal@qti.qualcomm.com>
Date:   Fri Mar 21 15:00:19 2014 +0530

    wlan: wdi: Replace VosAssert with VosTrace for bus packets failure

    There is need to decrease excessive logging in case of messages
    being dropped by SMD Bus during SSR. This generally happens when
    bus state is WCTS_STATE_REM_CLOSED. For this reason removing
    VosAssert and adding additional info in VosTrace.
    CRs-Fixed: 636462
    Change-Id: Ic03e51a7c45e102782613bb0fc368655d904adf0

commit 492acbe879f2232b424aa61dfcce41cdd1113e25
Author: Siddharth Bhal <sbhal@qti.qualcomm.com>
Date:   Wed Mar 19 20:39:13 2014 +0530

    wlan: HDD: add logpinprogress check for ioctl calls

    Add logpinprogress check to prevent powerstate
    change during loading through wlan_hdd_enter_bmps.
    This helps to prevent access to any uninitialized null pointer
    during loading stage of driver.

    CRs-fixed: 637285
    Change-Id: I196c42bd1f7b3791a1825ac9250aff60556569d0

commit 289438d0d0c00308bc970a08f7cfed201517aa3c
Author: Siddharth Bhal <sbhal@qti.qualcomm.com>
Date:   Wed Apr 2 00:09:45 2014 +0530

    wlan: TL: Flush cache frames when clean STA.

    We need to flush cache frames when cleaning STA even though STA
    isn't still register with TL, to avoid race condition where
    continious lim state machine changes cause number of cache
    packets to grow large in number which cause low rx resource.
    CRs-fixed: 638523

    Change-Id: Ie44e98d0891f3a669ecf3e22b3416b434774807b

commit 2119c54b7b7fbe099fe8174456f496d5a4975fe9
Author: Atul Mittal <atulmt@qti.qualcomm.com>
Date:   Mon Mar 17 15:10:11 2014 +0530

    prima : Handling race condition in driver unload in FTM

    wlan_hdd_process_ftm_cmd() function is called in one context
    and try to post message to HAL, in the mean time the
    wlan_hdd_ftm_close() is called in other context and unload
    the driver which causes the crash some times.

    Change-Id: I7b7cd4a3449ceb0e8973a37744f86ce67678b1a1
    CRs-fixed: 631639

commit fdcd9a614e77134d004ee831012926bd767c83c1
Author: Arun Kumar Khandavalli <c_arunku@qti.qualcomm.com>
Date:   Fri Jan 24 17:56:31 2014 +0530

    wlan: Don't Invoke hdd_connRemoveConnectInfo incase of successful Assoc.

    As a part of hdd_smeRoamCallback for eCSR_ROAM_ASSOCIATION_COMPLETION
    roamstatus, saved connection info is getting cleared because of
    hdd_connRemoveConnectInfo being invoked even for successful assoc

    hdd_connRemoveConnectInfo should not be invoked incase
    successfull Associations.

    Change-Id: Ibb1acac0bb23b86b7be20a1e83d77fa1afa10a8f
    CRs-Fixed: 606949

Change-Id: I251ddf0a6f5e9bcee9977f45bf87b71745b05f5d