/* Determine if action frame is p2p action type  */
static bool brcmf_p2p_is_p2p_action(void *frame, u32 frame_len)
/* Determine if action frame is p2p action type  */
static bool brcmf_p2p_is_p2p_action(void *frame, u32 frame_len)
{
	struct brcmf_p2p_action_frame *act_frm;
	if (frame == NULL)
		return false;
	act_frm = (struct brcmf_p2p_action_frame *)frame;
	if (frame_len < sizeof(struct brcmf_p2p_action_frame) - 1)
		return false;
	if (act_frm->category == P2P_AF_CATEGORY &&
	    act_frm->type  == P2P_VER &&
	    memcmp(act_frm->oui, P2P_OUI, P2P_OUI_LEN) == 0)
		return true;
	return false;
}