WLAN: Fix for XML to Nv.bin failure
During XML to nv.bin write case through QRCT tools while
sending the message to the apss through PTT socket using
MSG_DONTWAIT flag observed -EAGAIN error sometime as kernel
SKB buffer are getting full while result into XML to nv.bin
failure. To resolve this failure send message to apss without
using MSG_DONTWAIT flag through netlink socket interface.
Change-Id: If14beacca558d52c57dbab18e2009add452e4390
CRs-Fixed: 637477
diff --git a/CORE/HDD/src/wlan_hdd_ftm.c b/CORE/HDD/src/wlan_hdd_ftm.c
index ad2acc6..7b1c854 100644
--- a/CORE/HDD/src/wlan_hdd_ftm.c
+++ b/CORE/HDD/src/wlan_hdd_ftm.c
@@ -1529,7 +1529,8 @@
static VOS_STATUS wlan_ftm_send_response(hdd_context_t *pHddCtx){
- if( ptt_sock_send_msg_to_app(&pHddCtx->ftm.wnl->wmsg, 0, ANI_NL_MSG_PUMAC, pHddCtx->ftm.wnl->nlh.nlmsg_pid) < 0) {
+ if( ptt_sock_send_msg_to_app(&pHddCtx->ftm.wnl->wmsg, 0,
+ ANI_NL_MSG_PUMAC, pHddCtx->ftm.wnl->nlh.nlmsg_pid, 0) < 0) {
VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR, ("Ptt Socket error sending message to the app!!"));
return VOS_STATUS_E_FAILURE;
@@ -5131,7 +5132,8 @@
memcpy(pBuf, pData,data_len);
if(pHddCtx->ftm.cmd_iwpriv == TRUE) {
- if( ptt_sock_send_msg_to_app(wmsg, 0, ANI_NL_MSG_PUMAC, pHddCtx->ptt_pid) < 0) {
+ if( ptt_sock_send_msg_to_app(wmsg, 0,
+ ANI_NL_MSG_PUMAC, pHddCtx->ptt_pid, 0) < 0) {
VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR, ("Ptt Socket error sending message to the app!!"));
vos_mem_free((v_VOID_t*)wmsg);
@@ -5139,7 +5141,8 @@
}
}
else {
- if( ptt_sock_send_msg_to_app(wmsg, 0, ANI_NL_MSG_PUMAC, pHddCtx->ftm.wnl->nlh.nlmsg_pid) < 0) {
+ if( ptt_sock_send_msg_to_app(wmsg, 0,
+ ANI_NL_MSG_PUMAC, pHddCtx->ftm.wnl->nlh.nlmsg_pid, 0) < 0) {
VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR, ("Ptt Socket error sending message to the app!!"));
vos_mem_free((v_VOID_t*)wmsg);