qcacmn: Add wrapper for nla_parse()
The Linux kernel version 4.12 introduced an API change to nla_parse(). Add conditional compilation to call nla_parse with the correct parameters based on the version of the linux kernel being compiled against. Change-Id: Ie904d217a42a2396f8245251a9c90a15dac2c0c9 CRs-Fixed: 2093354
This commit is contained in:

gecommit door
snandini

bovenliggende
e72853c63f
commit
1b57dba257
@@ -4174,7 +4174,8 @@ static void cnss_diag_cmd_handler(const void *data, int data_len,
|
||||
* audit note: it is ok to pass a NULL policy here since a
|
||||
* length check on the data is added later already
|
||||
*/
|
||||
if (nla_parse(tb, CLD80211_ATTR_MAX, data, data_len, NULL)) {
|
||||
if (wlan_cfg80211_nla_parse(tb, CLD80211_ATTR_MAX,
|
||||
data, data_len, NULL)) {
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("%s: nla parse fails \n",
|
||||
__func__));
|
||||
return;
|
||||
|
@@ -272,7 +272,8 @@ static void ptt_cmd_handler(const void *data, int data_len, void *ctx, int pid)
|
||||
* audit note: it is ok to pass a NULL policy here since a
|
||||
* length check on the data is added later already
|
||||
*/
|
||||
if (nla_parse(tb, CLD80211_ATTR_MAX, data, data_len, NULL)) {
|
||||
if (wlan_cfg80211_nla_parse(tb, CLD80211_ATTR_MAX,
|
||||
data, data_len, NULL)) {
|
||||
PTT_TRACE(QDF_TRACE_LEVEL_ERROR, "Invalid ATTR");
|
||||
return;
|
||||
}
|
||||
|
Verwijs in nieuw issue
Block a user