|
@@ -66,10 +66,9 @@ QDF_STATUS wlan_cfg80211_tdls_osif_priv_init(struct wlan_objmgr_vdev *vdev)
|
|
|
|
|
|
osif_debug("initialize tdls os if layer private structure");
|
|
osif_debug("initialize tdls os if layer private structure");
|
|
tdls_priv = qdf_mem_malloc(sizeof(*tdls_priv));
|
|
tdls_priv = qdf_mem_malloc(sizeof(*tdls_priv));
|
|
- if (!tdls_priv) {
|
|
|
|
- osif_err("failed to allocate memory for tdls_priv");
|
|
|
|
|
|
+ if (!tdls_priv)
|
|
return QDF_STATUS_E_NOMEM;
|
|
return QDF_STATUS_E_NOMEM;
|
|
- }
|
|
|
|
|
|
+
|
|
init_completion(&tdls_priv->tdls_add_peer_comp);
|
|
init_completion(&tdls_priv->tdls_add_peer_comp);
|
|
init_completion(&tdls_priv->tdls_del_peer_comp);
|
|
init_completion(&tdls_priv->tdls_del_peer_comp);
|
|
init_completion(&tdls_priv->tdls_mgmt_comp);
|
|
init_completion(&tdls_priv->tdls_mgmt_comp);
|
|
@@ -222,10 +221,8 @@ int wlan_cfg80211_tdls_add_peer(struct wlan_objmgr_vdev *vdev,
|
|
QDF_MAC_ADDR_REF(mac));
|
|
QDF_MAC_ADDR_REF(mac));
|
|
|
|
|
|
add_peer_req = qdf_mem_malloc(sizeof(*add_peer_req));
|
|
add_peer_req = qdf_mem_malloc(sizeof(*add_peer_req));
|
|
- if (!add_peer_req) {
|
|
|
|
- osif_err("Failed to allocate tdls add peer request mem");
|
|
|
|
|
|
+ if (!add_peer_req)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
- }
|
|
|
|
|
|
|
|
osif_priv = wlan_vdev_get_ospriv(vdev);
|
|
osif_priv = wlan_vdev_get_ospriv(vdev);
|
|
if (!osif_priv || !osif_priv->osif_tdls) {
|
|
if (!osif_priv || !osif_priv->osif_tdls) {
|
|
@@ -443,10 +440,9 @@ int wlan_cfg80211_tdls_update_peer(struct wlan_objmgr_vdev *vdev,
|
|
QDF_MAC_ADDR_REF(mac));
|
|
QDF_MAC_ADDR_REF(mac));
|
|
|
|
|
|
req_info = qdf_mem_malloc(sizeof(*req_info));
|
|
req_info = qdf_mem_malloc(sizeof(*req_info));
|
|
- if (!req_info) {
|
|
|
|
- osif_err("Failed to allocate tdls add peer request mem");
|
|
|
|
|
|
+ if (!req_info)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
- }
|
|
|
|
|
|
+
|
|
wlan_cfg80211_tdls_extract_params(req_info, params);
|
|
wlan_cfg80211_tdls_extract_params(req_info, params);
|
|
|
|
|
|
osif_priv = wlan_vdev_get_ospriv(vdev);
|
|
osif_priv = wlan_vdev_get_ospriv(vdev);
|