qcacmn: Add AFC location structure to AFC start request

Create data structure to store the deployment type(location) of AP for
AFC. Append this structure to the end of AFC start request.

Change-Id: I19756fd3ca7a77f11b673d2bf3b0382f29732847
CRs-Fixed: 3177624
This commit is contained in:
Amith Ajith
2022-04-12 11:40:42 +05:30
committed by Madan Koyyalamudi
parent ecd51a1f66
commit 19f0a435c6
2 changed files with 62 additions and 10 deletions

View File

@@ -101,7 +101,8 @@ struct wlan_afc_num_opclasses {
* <variable-size> struct wlan_afc_opclass_obj obj[0];
* <variable-size> struct wlan_afc_opclass_obj obj[1];
* ....
* <variable-size> struct wlan_afc_opclass_obj obj[opclass_list_size-1];
* <variable-size> struct wlan_afc_opclass_obj obj[opclass_list_size-1];
* <fixed-size> struct wlan_afc_location afc_location;
* };
*
* struct wlan_afc_host_partial_request - Structure to send AFC request info
@@ -126,6 +127,28 @@ enum reg_afc_dev_deploy_type {
AFC_DEPLOYMENT_OUTDOOR = 2,
};
/**
* enum afc_object_type - AFC Request object types
*
* @AFC_OBJ_LOCATION: Location object
*/
enum afc_object_type {
AFC_OBJ_LOCATION = 1
};
/**
* struct wlan_afc_location - Structure for afc location info.
*
* @afc_elem_type: AFC element type of enum afc_object_type
* @afc_elem_len: AFC element length
* @deployment_type: Deployment type of enum reg_afc_dev_deploy_type
*/
struct wlan_afc_location {
uint32_t afc_elem_type;
uint32_t afc_elem_len;
uint32_t deployment_type;
} qdf_packed;
/**
* The following is the layout of the AFC response.
*