|
@@ -5216,6 +5216,25 @@ void wma_send_flush_logs_to_fw(tp_wma_handle wma_handle)
|
|
WMA_LOGE("Failed to start the log completion timer");
|
|
WMA_LOGE("Failed to start the log completion timer");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * wma_update_wep_default_key - To update default key id
|
|
|
|
+ * @wma: pointer to wma handler
|
|
|
|
+ * @update_def_key: pointer to wep_update_default_key_idx
|
|
|
|
+ *
|
|
|
|
+ * This function makes a copy of default key index to txrx node
|
|
|
|
+ *
|
|
|
|
+ * Return: Success
|
|
|
|
+ */
|
|
|
|
+static QDF_STATUS wma_update_wep_default_key(tp_wma_handle wma,
|
|
|
|
+ struct wep_update_default_key_idx *update_def_key)
|
|
|
|
+{
|
|
|
|
+ struct wma_txrx_node *iface =
|
|
|
|
+ &wma->interfaces[update_def_key->session_id];
|
|
|
|
+ iface->wep_default_key_idx = update_def_key->default_idx;
|
|
|
|
+
|
|
|
|
+ return QDF_STATUS_SUCCESS;
|
|
|
|
+}
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* wma_mc_process_msg() - process wma messages and call appropriate function.
|
|
* wma_mc_process_msg() - process wma messages and call appropriate function.
|
|
* @cds_context: cds context
|
|
* @cds_context: cds context
|
|
@@ -6010,6 +6029,11 @@ QDF_STATUS wma_mc_process_msg(void *cds_context, cds_msg_t *msg)
|
|
msg->bodyptr);
|
|
msg->bodyptr);
|
|
qdf_mem_free(msg->bodyptr);
|
|
qdf_mem_free(msg->bodyptr);
|
|
break;
|
|
break;
|
|
|
|
+ case WMA_UPDATE_WEP_DEFAULT_KEY:
|
|
|
|
+ wma_update_wep_default_key(wma_handle,
|
|
|
|
+ (struct wep_update_default_key_idx *)msg->bodyptr);
|
|
|
|
+ qdf_mem_free(msg->bodyptr);
|
|
|
|
+ break;
|
|
default:
|
|
default:
|
|
WMA_LOGD("unknow msg type %x", msg->type);
|
|
WMA_LOGD("unknow msg type %x", msg->type);
|
|
/* Do Nothing? MSG Body should be freed at here */
|
|
/* Do Nothing? MSG Body should be freed at here */
|