Skip to content

Commit

Permalink
Update wifi_hal_radio.h to support data elements schema
Browse files Browse the repository at this point in the history
Reason for change: In data elements schema, Operating classes supported
needs to be advertised. This change is to support that.
  • Loading branch information
amarnathhullur committed Dec 13, 2024
1 parent 355a3df commit ccd685b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/wifi_hal_ap.h
Original file line number Diff line number Diff line change
Expand Up @@ -1639,7 +1639,6 @@ void wifi_radiusFallback_failover_callback_register(wifi_radiusFallback_failover
*
* This function registers a callback function that will be invoked when a
* Wi-Fi client disassociates from an Access Point (AP).
* This function must not suspend and must not invoke any blocking system calls.
*
* @param callback_proc Pointer to the callback function to register.
*/
Expand Down
31 changes: 31 additions & 0 deletions include/wifi_hal_radio.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,35 @@ typedef struct
UCHAR punct_acs_threshold; /**< Puncturing ACS threshold. */
} __attribute__((packed)) wifi_radio_11be_puncturing_info_t;

/**
* @brief Maximum number of non operable channels in a channel.
* (TODO: Name to be changed in future revisions of interface for
* readability)
*/
#define MAXNUMNONOPERABLECHANNELS 10

/**
* @brief Maximum number of operating classes in a band.
* (TODO: Name to be changed in future revisions of interface for
* readability)
*/
#define MAXNUMOPERCLASSESPERBAND 20

/**
* @brief Operating Classes information.
*
* Structure that holds information of the operating class,
* such as maximum transmit power, array of non-operable channel
* associated with that operating class.
*/
typedef struct
{
UINT opClass; /**< Global operating Class value */
INT maxTxPower; /**< Max Tx Power */
UINT numberOfNonOperChan; /**< Number of Nonoperable channels */
UINT nonOperable[MAXNUMNONOPERABLECHANNELS]; /**< Array of Non Operable channel value */
} __attribute__((packed)) wifi_operating_classes_t;

/**
* @brief Radio temperature information.
*
Expand Down Expand Up @@ -151,6 +180,8 @@ typedef struct
BOOL amsduEnable; /**< Whether AMSDU is enabled. */
UINT DFSTimer; /**< DFS timer. */
char radarDetected[256]; /**< Radar detected information. */
UINT numOperatingClasses; /**< Number of valid operating classes in the array operatingClasses */
wifi_operating_classes_t operatingClasses[MAXNUMOPERCLASSESPERBAND]; /**< Array of supported Operating classes as per Data elements Schema */
} __attribute__((packed)) wifi_radio_operationParam_t;

/**
Expand Down

0 comments on commit ccd685b

Please sign in to comment.