Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a83d7944 authored by Vaisakh Murali's avatar Vaisakh Murali Committed by Daniel Jacob Chittoor
Browse files

qcacld-3.0: Fix compile issues with newer clang version

Change-Id: I4f0d2018e9899970e6143cebba12c7505456ecbb
parent 97d9e664
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1285,7 +1285,7 @@ struct ce_ops ce_service_legacy = {
		ce_prepare_shadow_register_v2_cfg_legacy,
};

struct ce_ops *ce_services_legacy()
struct ce_ops *ce_services_legacy(void)
{
	return &ce_service_legacy;
}
+1 −1
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@

static struct target_if_ctx *g_target_if_ctx;

struct target_if_ctx *target_if_get_ctx()
struct target_if_ctx *target_if_get_ctx(void)
{
	return g_target_if_ctx;
}
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ wlan_extscan_global_init(struct wlan_objmgr_psoc *psoc,
}

QDF_STATUS
wlan_extscan_global_deinit()
wlan_extscan_global_deinit(void)
{
	return QDF_STATUS_SUCCESS;
}
+0 −41
Original line number Diff line number Diff line
@@ -1469,47 +1469,6 @@ static bool hdd_is_mcast_replay(struct sk_buff *skb)
	return false;
}

/**
 * hdd_is_arp_local() - check if local or non local arp
 * @skb: pointer to sk_buff
 *
 * Return: true if local arp or false otherwise.
 */
static bool hdd_is_arp_local(struct sk_buff *skb)
{
	struct arphdr *arp;
	struct in_ifaddr **ifap = NULL;
	struct in_ifaddr *ifa = NULL;
	struct in_device *in_dev;
	unsigned char *arp_ptr;
	__be32 tip;

	arp = (struct arphdr *)skb->data;
	if (arp->ar_op == htons(ARPOP_REQUEST)) {
		in_dev = __in_dev_get_rtnl(skb->dev);
		if (in_dev) {
			for (ifap = &in_dev->ifa_list; (ifa = *ifap) != NULL;
				ifap = &ifa->ifa_next) {
				if (!strcmp(skb->dev->name, ifa->ifa_label))
					break;
			}
		}

		if (ifa && ifa->ifa_local) {
			arp_ptr = (unsigned char *)(arp + 1);
			arp_ptr += (skb->dev->addr_len + 4 +
					skb->dev->addr_len);
			memcpy(&tip, arp_ptr, 4);
			hdd_debug("ARP packet: local IP: %x dest IP: %x",
				ifa->ifa_local, tip);
			if (ifa->ifa_local == tip)
				return true;
		}
	}

	return false;
}

#ifdef RECEIVE_OFFLOAD
/**
 * hdd_resolve_rx_ol_mode() - Resolve Rx offload method, LRO or GRO
+1 −1
Original line number Diff line number Diff line
@@ -797,7 +797,7 @@ void wma_set_vdev_intrabss_fwd(tp_wma_handle wma_handle,

void wma_delete_bss_ho_fail(tp_wma_handle wma, tpDeleteBssParams params);

enum mlme_bcn_tx_rate_code wma_get_bcn_rate_code(uint16_t rate);
uint32_t wma_get_bcn_rate_code(uint16_t rate);

/*
 * wma_mgmt.c functions declarations