} else if (type == WLAN_FC_TYPE_MGMT && (stype == WLAN_FC_STYPE_BEACON || stype == WLAN_FC_STYPE_PROBE_RESP)) { 
} else if (type == IEEE80211_FTYPE_MGMT && (stype == IEEE80211_STYPE_BEACON || stype == IEEE80211_STYPE_PROBE_RESP)) { 
hostap_rx_frame_mgmt(local_info_t *local, struct sk_buff *skb,		     struct hostap_80211_rx_status *rx_stats, u16 type,		     u16 stype){	if (local->iw_mode == IW_MODE_MASTER) {		hostap_update_sta_ps(local, (struct ieee80211_hdr *)				     skb->data);	}	if (local->hostapd && type == WLAN_FC_TYPE_MGMT) {		if (stype == WLAN_FC_STYPE_BEACON &&		    local->iw_mode == IW_MODE_MASTER) {			struct sk_buff *skb2;			/* Process beacon frames also in kernel driver to			 * update STA(AP) table statistics */			skb2 = skb_clone(skb, GFP_ATOMIC);			if (skb2)				hostap_rx(skb2->dev, skb2, rx_stats);		}		/* send management frames to the user space daemon for		 * processing */		local->apdevstats.rx_packets++;		local->apdevstats.rx_bytes += skb->len;		if (local->apdev == NULL)			return -1;		prism2_rx_80211(local->apdev, skb, rx_stats, PRISM2_RX_MGMT);		return 0;	}	if (local->iw_mode == IW_MODE_MASTER) {		if (type != WLAN_FC_TYPE_MGMT && type != WLAN_FC_TYPE_CTRL) {			printk(KERN_DEBUG "%s: unknown management frame "			       "(type=0x%02x, stype=0x%02x) dropped\n",			       skb->dev->name, type, stype);			return -1;		}		hostap_rx(skb->dev, skb, rx_stats);		return 0;	} else if (type == WLAN_FC_TYPE_MGMT &&		   (stype == WLAN_FC_STYPE_BEACON ||		    stype == WLAN_FC_STYPE_PROBE_RESP)) {		hostap_rx_sta_beacon(local, skb, stype);		return -1;	} else if (type == WLAN_FC_TYPE_MGMT &&		   (stype == WLAN_FC_STYPE_ASSOC_RESP ||		    stype == WLAN_FC_STYPE_REASSOC_RESP)) {		/* Ignore (Re)AssocResp silently since these are not currently		 * needed but are still received when WPA/RSN mode is enabled.		 */		return -1;	} else {		printk(KERN_DEBUG "%s: hostap_rx_frame_mgmt: dropped unhandled"		       " management frame in non-Host AP mode (type=%d:%d)\n",		       skb->dev->name, type, stype);		return -1;	}}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/4339d328631aa815fe2181b9164b3690ca2db4da/hostap_80211_rx.c/clean/drivers/net/wireless/hostap/hostap_80211_rx.c