ieee              109 drivers/net/ethernet/qlogic/qed/qed_dcbx.c static bool qed_dcbx_default_tlv(u32 app_info_bitmap, u16 proto_id, bool ieee)
ieee              113 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	if (ieee)
ieee              121 drivers/net/ethernet/qlogic/qed/qed_dcbx.c static bool qed_dcbx_iscsi_tlv(u32 app_info_bitmap, u16 proto_id, bool ieee)
ieee              125 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	if (ieee)
ieee              134 drivers/net/ethernet/qlogic/qed/qed_dcbx.c static bool qed_dcbx_fcoe_tlv(u32 app_info_bitmap, u16 proto_id, bool ieee)
ieee              138 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	if (ieee)
ieee              146 drivers/net/ethernet/qlogic/qed/qed_dcbx.c static bool qed_dcbx_roce_tlv(u32 app_info_bitmap, u16 proto_id, bool ieee)
ieee              150 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	if (ieee)
ieee              158 drivers/net/ethernet/qlogic/qed/qed_dcbx.c static bool qed_dcbx_roce_v2_tlv(u32 app_info_bitmap, u16 proto_id, bool ieee)
ieee              162 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	if (ieee)
ieee              249 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 			       u16 id, enum dcbx_protocol_type *type, bool ieee)
ieee              251 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	if (qed_dcbx_fcoe_tlv(app_prio_bitmap, id, ieee)) {
ieee              253 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	} else if (qed_dcbx_roce_tlv(app_prio_bitmap, id, ieee)) {
ieee              255 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	} else if (qed_dcbx_iscsi_tlv(app_prio_bitmap, id, ieee)) {
ieee              257 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	} else if (qed_dcbx_default_tlv(app_prio_bitmap, id, ieee)) {
ieee              259 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	} else if (qed_dcbx_roce_v2_tlv(app_prio_bitmap, id, ieee)) {
ieee              282 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	bool enable, ieee, eth_tlv;
ieee              290 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	ieee = (dcbx_version == DCBX_CONFIG_VERSION_IEEE);
ieee              306 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 						   protocol_id, &type, ieee)) {
ieee              484 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 		      struct qed_dcbx_params *p_params, bool ieee)
ieee              498 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 		if (ieee) {
ieee              537 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 					       &entry->proto_type, ieee);
ieee              623 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 			   u32 pfc, struct qed_dcbx_params *p_params, bool ieee)
ieee              625 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	qed_dcbx_get_app_data(p_hwfn, p_app, p_tbl, p_params, ieee);
ieee              685 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	p_operational->ieee = val;
ieee              696 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 		   p_operational->ieee, p_operational->cee,
ieee              702 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 				   p_operational->ieee);
ieee             1126 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 		      struct qed_dcbx_params *p_params, bool ieee)
ieee             1148 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 		if (ieee) {
ieee             1200 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	bool ieee = false;
ieee             1209 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 		ieee = !!(params->ver_num & DCBX_CONFIG_VERSION_IEEE);
ieee             1227 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 				      &params->config.params, ieee);
ieee             1290 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	if (dcbx_info->operational.ieee)
ieee             1576 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	if (dcbx_info->operational.ieee)
ieee             2071 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	if (!dcbx_info->operational.ieee) {
ieee             2119 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	if (!dcbx_info->operational.ieee) {
ieee             2161 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	if (!dcbx_info->operational.ieee) {
ieee             2209 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	if (!dcbx_info->operational.ieee) {
ieee             2300 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	if (!dcbx_info->operational.ieee) {
ieee             2356 drivers/net/ethernet/qlogic/qed/qed_dcbx.c 	if (!dcbx_info->operational.ieee) {
ieee             1223 drivers/net/wireless/ath/ath5k/phy.c ath5k_hw_rf5111_chan2athchan(unsigned int ieee,
ieee             1229 drivers/net/wireless/ath/ath5k/phy.c 	channel = (int)ieee;
ieee             1162 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		wiphy_rfkill_set_hw_state(priv->ieee->wdev.wiphy, false);
ieee             1174 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		wiphy_rfkill_set_hw_state(priv->ieee->wdev.wiphy, true);
ieee             1177 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		wiphy_rfkill_set_hw_state(priv->ieee->wdev.wiphy, false);
ieee             1642 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if ((priv->ieee->sec.flags & SEC_ENABLED) && priv->ieee->sec.enabled)
ieee             1671 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (priv->ieee->iw_mode == IW_MODE_MONITOR)
ieee             1719 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		libipw_networks_age(priv->ieee, priv->suspend_time);
ieee             1777 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	libipw_set_geo(priv->ieee, &ipw_geos[0]);
ieee             1778 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	priv->ieee->freq_band = LIBIPW_24GHZ_BAND;
ieee             1892 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	const struct libipw_geo *geo = libipw_get_geo(priv->ieee);
ieee             1893 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	struct wireless_dev *wdev = &priv->ieee->wdev;
ieee             1900 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		struct ieee80211_supported_band *bg_band = &priv->ieee->bg_band;
ieee             2034 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	memcpy(priv->ieee->bssid, bssid, ETH_ALEN);
ieee             2137 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	eth_zero_addr(priv->ieee->bssid);
ieee             2157 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	wiphy_rfkill_set_hw_state(priv->ieee->wdev.wiphy, true);
ieee             2180 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	priv->ieee->scans++;
ieee             2474 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (unlikely(priv->ieee->iw_mode != IW_MODE_MONITOR &&
ieee             2495 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (!libipw_rx(priv->ieee, packet->skb, stats)) {
ieee             2582 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (!libipw_rx(priv->ieee, packet->skb, stats)) {
ieee             2727 drivers/net/wireless/intel/ipw2x00/ipw2100.c 			if (priv->ieee->iw_mode == IW_MODE_MONITOR) {
ieee             2736 drivers/net/wireless/intel/ipw2x00/ipw2100.c 				libipw_rx_mgt(priv->ieee,
ieee             3111 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		if (priv->ieee->iw_mode == IW_MODE_INFRA) {
ieee             3116 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		} else if (priv->ieee->iw_mode == IW_MODE_ADHOC) {
ieee             4011 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (mode == priv->ieee->iw_mode)
ieee             4030 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		priv->last_mode = priv->ieee->iw_mode;
ieee             4036 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	priv->ieee->iw_mode = mode;
ieee             4065 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	DUMP_VAR(ieee->crypt_info.crypt[priv->ieee->crypt_info.tx_keyidx], "p");
ieee             4097 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	DUMP_VAR(ieee->scans, "d");
ieee             4213 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	return sprintf(buf, "%d\n", priv->ieee->scan_age);
ieee             4232 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		priv->ieee->scan_age = val;
ieee             4233 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		IPW_DEBUG_INFO("set scan_age = %u\n", priv->ieee->scan_age);
ieee             4785 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (priv->ieee->iw_mode == IW_MODE_INFRA)
ieee             4838 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (priv->ieee->iw_mode == IW_MODE_ADHOC)
ieee             5242 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (priv->ieee->iw_mode == IW_MODE_ADHOC)
ieee             5264 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (priv->ieee->iw_mode == IW_MODE_ADHOC) {
ieee             5487 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (!priv->ieee->sec.enabled) {
ieee             5493 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		if (priv->ieee->sec.flags & SEC_AUTH_MODE) {
ieee             5494 drivers/net/wireless/intel/ipw2x00/ipw2100.c 			if (priv->ieee->sec.auth_mode == WLAN_AUTH_SHARED_KEY)
ieee             5496 drivers/net/wireless/intel/ipw2x00/ipw2100.c 			else if (priv->ieee->sec.auth_mode == WLAN_AUTH_LEAP)
ieee             5501 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		if (priv->ieee->sec.flags & SEC_LEVEL)
ieee             5502 drivers/net/wireless/intel/ipw2x00/ipw2100.c 			sec_level = priv->ieee->sec.level;
ieee             5505 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		if (priv->ieee->sec.flags & SEC_UNICAST_GROUP)
ieee             5506 drivers/net/wireless/intel/ipw2x00/ipw2100.c 			use_group = priv->ieee->sec.unicast_uses_group;
ieee             5516 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (priv->ieee->sec.enabled) {
ieee             5518 drivers/net/wireless/intel/ipw2x00/ipw2100.c 			if (!(priv->ieee->sec.flags & (1 << i))) {
ieee             5519 drivers/net/wireless/intel/ipw2x00/ipw2100.c 				memset(priv->ieee->sec.keys[i], 0, WEP_KEY_LEN);
ieee             5520 drivers/net/wireless/intel/ipw2x00/ipw2100.c 				priv->ieee->sec.key_sizes[i] = 0;
ieee             5523 drivers/net/wireless/intel/ipw2x00/ipw2100.c 						      priv->ieee->sec.keys[i],
ieee             5524 drivers/net/wireless/intel/ipw2x00/ipw2100.c 						      priv->ieee->sec.
ieee             5531 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		ipw2100_set_key_index(priv, priv->ieee->crypt_info.tx_keyidx, 1);
ieee             5538 drivers/net/wireless/intel/ipw2x00/ipw2100.c 				  priv->ieee->sec.
ieee             5577 drivers/net/wireless/intel/ipw2x00/ipw2100.c 			priv->ieee->sec.key_sizes[i] = sec->key_sizes[i];
ieee             5579 drivers/net/wireless/intel/ipw2x00/ipw2100.c 				priv->ieee->sec.flags &= ~(1 << i);
ieee             5581 drivers/net/wireless/intel/ipw2x00/ipw2100.c 				memcpy(priv->ieee->sec.keys[i], sec->keys[i],
ieee             5584 drivers/net/wireless/intel/ipw2x00/ipw2100.c 				priv->ieee->sec.flags |= (1 << i);
ieee             5587 drivers/net/wireless/intel/ipw2x00/ipw2100.c 				priv->ieee->sec.flags &= ~(1 << i);
ieee             5592 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	    priv->ieee->sec.active_key != sec->active_key) {
ieee             5593 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		priv->ieee->sec.active_key = sec->active_key;
ieee             5594 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		priv->ieee->sec.flags |= SEC_ACTIVE_KEY;
ieee             5599 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	    (priv->ieee->sec.auth_mode != sec->auth_mode)) {
ieee             5600 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		priv->ieee->sec.auth_mode = sec->auth_mode;
ieee             5601 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		priv->ieee->sec.flags |= SEC_AUTH_MODE;
ieee             5605 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (sec->flags & SEC_ENABLED && priv->ieee->sec.enabled != sec->enabled) {
ieee             5606 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		priv->ieee->sec.flags |= SEC_ENABLED;
ieee             5607 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		priv->ieee->sec.enabled = sec->enabled;
ieee             5613 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		priv->ieee->sec.encrypt = sec->encrypt;
ieee             5615 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (sec->flags & SEC_LEVEL && priv->ieee->sec.level != sec->level) {
ieee             5616 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		priv->ieee->sec.level = sec->level;
ieee             5617 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		priv->ieee->sec.flags |= SEC_LEVEL;
ieee             5622 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		      priv->ieee->sec.flags & (1 << 8) ? '1' : '0',
ieee             5623 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		      priv->ieee->sec.flags & (1 << 7) ? '1' : '0',
ieee             5624 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		      priv->ieee->sec.flags & (1 << 6) ? '1' : '0',
ieee             5625 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		      priv->ieee->sec.flags & (1 << 5) ? '1' : '0',
ieee             5626 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		      priv->ieee->sec.flags & (1 << 4) ? '1' : '0',
ieee             5627 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		      priv->ieee->sec.flags & (1 << 3) ? '1' : '0',
ieee             5628 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		      priv->ieee->sec.flags & (1 << 2) ? '1' : '0',
ieee             5629 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		      priv->ieee->sec.flags & (1 << 1) ? '1' : '0',
ieee             5630 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		      priv->ieee->sec.flags & (1 << 0) ? '1' : '0');
ieee             5655 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (priv->ieee->iw_mode == IW_MODE_MONITOR) {
ieee             5674 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	err = ipw2100_set_port_type(priv, priv->ieee->iw_mode, batch_mode);
ieee             5678 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (priv->ieee->iw_mode == IW_MODE_ADHOC) {
ieee             5721 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (priv->ieee->iw_mode == IW_MODE_ADHOC) {
ieee             5845 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (priv->ieee->iw_mode == IW_MODE_MONITOR)
ieee             5858 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	priv->ieee->wpa_enabled = value;
ieee             5865 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	struct libipw_device *ieee = priv->ieee;
ieee             5873 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		ieee->open_wep = 0;
ieee             5876 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		ieee->open_wep = 1;
ieee             5879 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		ieee->open_wep = 1;
ieee             5883 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (ieee->set_security)
ieee             5884 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		ieee->set_security(ieee->dev, &sec);
ieee             6034 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	priv->ieee = netdev_priv(dev);
ieee             6039 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	priv->ieee->hard_start_xmit = ipw2100_tx;
ieee             6040 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	priv->ieee->set_security = shim__set_security;
ieee             6042 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	priv->ieee->perfect_rssi = -20;
ieee             6043 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	priv->ieee->worst_rssi = -85;
ieee             6048 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	priv->wireless_data.libipw = priv->ieee;
ieee             6070 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	priv->ieee->wpa_enabled = 0;
ieee             6071 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	priv->ieee->drop_unencrypted = 0;
ieee             6072 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	priv->ieee->privacy_invoked = 0;
ieee             6073 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	priv->ieee->ieee802_1x = 1;
ieee             6078 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		priv->ieee->iw_mode = IW_MODE_ADHOC;
ieee             6082 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		priv->ieee->iw_mode = IW_MODE_MONITOR;
ieee             6087 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		priv->ieee->iw_mode = IW_MODE_INFRA;
ieee             6322 drivers/net/wireless/intel/ipw2x00/ipw2100.c 			wiphy_unregister(priv->ieee->wdev.wiphy);
ieee             6323 drivers/net/wireless/intel/ipw2x00/ipw2100.c 			kfree(priv->ieee->bg_band.channels);
ieee             6390 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	wiphy_unregister(priv->ieee->wdev.wiphy);
ieee             6391 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	kfree(priv->ieee->bg_band.channels);
ieee             6630 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (priv->ieee->iw_mode == IW_MODE_INFRA)
ieee             6702 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (wrqu->mode == priv->ieee->iw_mode)
ieee             6742 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	wrqu->mode = priv->ieee->iw_mode;
ieee             6837 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (priv->ieee->iw_mode == IW_MODE_ADHOC) {
ieee             7227 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (priv->ieee->iw_mode != IW_MODE_ADHOC)
ieee             7300 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		priv->ieee->fts = DEFAULT_FTS;
ieee             7306 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		priv->ieee->fts = wrqu->frag.value & ~0x1;
ieee             7307 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		priv->frag_threshold = priv->ieee->fts;
ieee             7310 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	IPW_DEBUG_WX("SET Frag Threshold -> %d\n", priv->ieee->fts);
ieee             7446 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	return libipw_wx_get_scan(priv->ieee, info, wrqu, extra);
ieee             7461 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	return libipw_wx_set_encode(priv->ieee, info, wrqu, key);
ieee             7473 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	return libipw_wx_get_encode(priv->ieee, info, wrqu, key);
ieee             7554 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	struct libipw_device *ieee = priv->ieee;
ieee             7557 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (!ieee->wpa_enabled)
ieee             7569 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		kfree(ieee->wpa_ie);
ieee             7570 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		ieee->wpa_ie = buf;
ieee             7571 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		ieee->wpa_ie_len = wrqu->data.length;
ieee             7573 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		kfree(ieee->wpa_ie);
ieee             7574 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		ieee->wpa_ie = NULL;
ieee             7575 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		ieee->wpa_ie_len = 0;
ieee             7578 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	ipw2100_wpa_assoc_frame(priv, ieee->wpa_ie, ieee->wpa_ie_len);
ieee             7589 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	struct libipw_device *ieee = priv->ieee;
ieee             7591 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (ieee->wpa_ie_len == 0 || ieee->wpa_ie == NULL) {
ieee             7596 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	if (wrqu->data.length < ieee->wpa_ie_len)
ieee             7599 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	wrqu->data.length = ieee->wpa_ie_len;
ieee             7600 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	memcpy(extra, ieee->wpa_ie, ieee->wpa_ie_len);
ieee             7611 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	struct libipw_device *ieee = priv->ieee;
ieee             7628 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		crypt = priv->ieee->crypt_info.crypt[priv->ieee->crypt_info.tx_keyidx];
ieee             7659 drivers/net/wireless/intel/ipw2x00/ipw2100.c 			priv->ieee->drop_unencrypted = param->value;
ieee             7670 drivers/net/wireless/intel/ipw2x00/ipw2100.c 			if (priv->ieee->set_security)
ieee             7671 drivers/net/wireless/intel/ipw2x00/ipw2100.c 				priv->ieee->set_security(priv->ieee->dev, &sec);
ieee             7684 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		ieee->ieee802_1x = param->value;
ieee             7689 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		ieee->privacy_invoked = param->value;
ieee             7704 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	struct libipw_device *ieee = priv->ieee;
ieee             7719 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		crypt = priv->ieee->crypt_info.crypt[priv->ieee->crypt_info.tx_keyidx];
ieee             7732 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		param->value = ieee->drop_unencrypted;
ieee             7736 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		param->value = priv->ieee->sec.auth_mode;
ieee             7740 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		param->value = ieee->wpa_enabled;
ieee             7744 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		param->value = ieee->ieee802_1x;
ieee             7749 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		param->value = ieee->privacy_invoked;
ieee             7764 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	return libipw_wx_set_encodeext(priv->ieee, info, wrqu, extra);
ieee             7773 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	return libipw_wx_get_encodeext(priv->ieee, info, wrqu, extra);
ieee             7821 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		if (priv->ieee->iw_mode == IW_MODE_MONITOR) {
ieee             7828 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		if (priv->ieee->iw_mode == IW_MODE_MONITOR)
ieee             8290 drivers/net/wireless/intel/ipw2x00/ipw2100.c 		memcpy(priv->ieee->bssid, priv->bssid, ETH_ALEN);
ieee             8379 drivers/net/wireless/intel/ipw2x00/ipw2100.c 	switch (priv->ieee->iw_mode) {
ieee              473 drivers/net/wireless/intel/ipw2x00/ipw2100.h 	struct libipw_device *ieee;
ieee             1470 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	return sprintf(buf, "%d\n", priv->ieee->scan_age);
ieee             1499 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->scan_age = val;
ieee             1500 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		IPW_DEBUG_INFO("set scan_age = %u\n", priv->ieee->scan_age);
ieee             1750 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		wiphy_rfkill_set_hw_state(priv->ieee->wdev.wiphy, true);
ieee             1753 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		wiphy_rfkill_set_hw_state(priv->ieee->wdev.wiphy, false);
ieee             1846 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		if (libipw_is_valid_channel(priv->ieee, channel))
ieee             1896 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	const struct libipw_geo *geo = libipw_get_geo(priv->ieee);
ieee             2041 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		wiphy_rfkill_set_hw_state(priv->ieee->wdev.wiphy, true);
ieee             2076 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		if (priv->ieee->sec.encrypt) {
ieee             2467 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	const struct libipw_geo *geo = libipw_get_geo(priv->ieee);
ieee             2493 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->abg_true) {
ieee             2990 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	spin_lock_irqsave(&priv->ieee->lock, flags);
ieee             2991 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	list_for_each_safe(element, safe, &priv->ieee->network_list) {
ieee             2996 drivers/net/wireless/intel/ipw2x00/ipw2200.c 				      &priv->ieee->network_free_list);
ieee             2999 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	spin_unlock_irqrestore(&priv->ieee->lock, flags);
ieee             3486 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	switch (priv->ieee->iw_mode) {
ieee             4178 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->mode == IEEE_B)
ieee             4324 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	     (priv->ieee->perfect_rssi - priv->ieee->worst_rssi) *
ieee             4325 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	     (priv->ieee->perfect_rssi - priv->ieee->worst_rssi) -
ieee             4326 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	     (priv->ieee->perfect_rssi - rssi) *
ieee             4327 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	     (15 * (priv->ieee->perfect_rssi - priv->ieee->worst_rssi) +
ieee             4328 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	      62 * (priv->ieee->perfect_rssi - rssi))) /
ieee             4329 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	    ((priv->ieee->perfect_rssi - priv->ieee->worst_rssi) *
ieee             4330 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	     (priv->ieee->perfect_rssi - priv->ieee->worst_rssi));
ieee             4491 drivers/net/wireless/intel/ipw2x00/ipw2200.c 					switch (priv->ieee->iw_mode) {
ieee             4493 drivers/net/wireless/intel/ipw2x00/ipw2200.c 						memcpy(priv->ieee->bssid,
ieee             4498 drivers/net/wireless/intel/ipw2x00/ipw2200.c 						memcpy(priv->ieee->bssid,
ieee             4539 drivers/net/wireless/intel/ipw2x00/ipw2200.c 									 ieee,
ieee             4765 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			priv->ieee->scans++;
ieee             4768 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			if (priv->ieee->iw_mode == IW_MODE_MONITOR) {
ieee             5487 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if ((priv->ieee->iw_mode == IW_MODE_ADHOC &&
ieee             5535 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->scan_age != 0 &&
ieee             5536 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	    time_after(jiffies, network->last_scanned + priv->ieee->scan_age)) {
ieee             5576 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (!libipw_is_valid_mode(priv->ieee, network->mode)) {
ieee             5622 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	    (priv->ieee->iw_mode == IW_MODE_ADHOC)) {
ieee             5627 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		spin_lock_irqsave(&priv->ieee->lock, flags);
ieee             5628 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		list_for_each_entry(network, &priv->ieee->network_list, list) {
ieee             5633 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		spin_unlock_irqrestore(&priv->ieee->lock, flags);
ieee             5642 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		if (priv->ieee->iw_mode == IW_MODE_ADHOC) {
ieee             5663 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if ((priv->ieee->iw_mode == IW_MODE_INFRA &&
ieee             5665 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	    (priv->ieee->iw_mode == IW_MODE_ADHOC &&
ieee             5722 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->scan_age != 0 &&
ieee             5723 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	    time_after(jiffies, network->last_scanned + priv->ieee->scan_age)) {
ieee             5763 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (!libipw_is_valid_mode(priv->ieee, network->mode)) {
ieee             5771 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (!libipw_is_valid_channel(priv->ieee, network->channel)) {
ieee             5811 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	const struct libipw_geo *geo = libipw_get_geo(priv->ieee);
ieee             5826 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	switch (libipw_is_valid_channel(priv->ieee, priv->channel)) {
ieee             5829 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		i = libipw_channel_to_index(priv->ieee, priv->channel);
ieee             5838 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		if (priv->ieee->mode & IEEE_G)
ieee             5842 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		i = libipw_channel_to_index(priv->ieee, priv->channel);
ieee             5852 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		if (priv->ieee->mode & IEEE_A) {
ieee             5855 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		} else if (priv->ieee->mode & IEEE_G) {
ieee             5898 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (!(priv->ieee->sec.flags & (1 << index)))
ieee             5902 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	memcpy(key.key, priv->ieee->sec.keys[index], SCM_TEMPORAL_KEY_LENGTH);
ieee             5925 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		if (!(priv->ieee->sec.flags & (1 << i))) {
ieee             5930 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		key.key_size = priv->ieee->sec.key_sizes[i];
ieee             5931 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		memcpy(key.key, priv->ieee->sec.keys[i], key.key_size);
ieee             5939 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->host_encrypt)
ieee             5945 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->host_decrypt = 0;
ieee             5949 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->host_decrypt = 1;
ieee             5953 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->host_decrypt = 0;
ieee             5965 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->host_encrypt)
ieee             5988 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	switch (priv->ieee->sec.level) {
ieee             5990 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		if (priv->ieee->sec.flags & SEC_ACTIVE_KEY)
ieee             5993 drivers/net/wireless/intel/ipw2x00/ipw2200.c 					    priv->ieee->sec.active_key);
ieee             5995 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		if (!priv->ieee->host_mc_decrypt)
ieee             5999 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		if (priv->ieee->sec.flags & SEC_ACTIVE_KEY)
ieee             6002 drivers/net/wireless/intel/ipw2x00/ipw2200.c 					    priv->ieee->sec.active_key);
ieee             6006 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		ipw_set_hw_decrypt_unicast(priv, priv->ieee->sec.level);
ieee             6007 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		ipw_set_hw_decrypt_multicast(priv, priv->ieee->sec.level);
ieee             6078 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	switch (priv->ieee->freq_band) {
ieee             6162 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	geo = libipw_get_geo(priv->ieee);
ieee             6164 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->freq_band & LIBIPW_52GHZ_BAND) {
ieee             6186 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->freq_band & LIBIPW_24GHZ_BAND) {
ieee             6222 drivers/net/wireless/intel/ipw2x00/ipw2200.c 				    libipw_channel_to_index(priv->ieee, channel);
ieee             6308 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	scan.full_scan_index = cpu_to_le32(libipw_get_scans(priv->ieee));
ieee             6335 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->iw_mode == IW_MODE_MONITOR) {
ieee             6339 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		switch (libipw_is_valid_channel(priv->ieee, priv->channel)) {
ieee             6459 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->ieee->wpa_enabled = value;
ieee             6465 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	struct libipw_device *ieee = priv->ieee;
ieee             6473 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		ieee->open_wep = 0;
ieee             6476 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		ieee->open_wep = 1;
ieee             6479 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		ieee->open_wep = 1;
ieee             6483 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (ieee->set_security)
ieee             6484 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		ieee->set_security(ieee->dev, &sec);
ieee             6517 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	struct libipw_device *ieee = priv->ieee;
ieee             6532 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		kfree(ieee->wpa_ie);
ieee             6533 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		ieee->wpa_ie = buf;
ieee             6534 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		ieee->wpa_ie_len = wrqu->data.length;
ieee             6536 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		kfree(ieee->wpa_ie);
ieee             6537 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		ieee->wpa_ie = NULL;
ieee             6538 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		ieee->wpa_ie_len = 0;
ieee             6541 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	ipw_wpa_assoc_frame(priv, ieee->wpa_ie, ieee->wpa_ie_len);
ieee             6552 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	struct libipw_device *ieee = priv->ieee;
ieee             6555 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (ieee->wpa_ie_len == 0 || ieee->wpa_ie == NULL) {
ieee             6560 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (wrqu->data.length < ieee->wpa_ie_len) {
ieee             6565 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	wrqu->data.length = ieee->wpa_ie_len;
ieee             6566 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	memcpy(extra, ieee->wpa_ie, ieee->wpa_ie_len);
ieee             6595 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	struct libipw_device *ieee = priv->ieee;
ieee             6619 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		crypt = priv->ieee->crypt_info.crypt[priv->ieee->crypt_info.tx_keyidx];
ieee             6650 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			priv->ieee->drop_unencrypted = param->value;
ieee             6661 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			if (priv->ieee->set_security)
ieee             6662 drivers/net/wireless/intel/ipw2x00/ipw2200.c 				priv->ieee->set_security(priv->ieee->dev, &sec);
ieee             6676 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		ieee->ieee802_1x = param->value;
ieee             6680 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		ieee->privacy_invoked = param->value;
ieee             6695 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	struct libipw_device *ieee = priv->ieee;
ieee             6710 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		crypt = priv->ieee->crypt_info.crypt[priv->ieee->crypt_info.tx_keyidx];
ieee             6720 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		param->value = ieee->drop_unencrypted;
ieee             6724 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		param->value = ieee->sec.auth_mode;
ieee             6728 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		param->value = ieee->wpa_enabled;
ieee             6732 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		param->value = ieee->ieee802_1x;
ieee             6737 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		param->value = ieee->privacy_invoked;
ieee             6759 drivers/net/wireless/intel/ipw2x00/ipw2200.c 				priv->ieee->host_mc_decrypt = 1;
ieee             6761 drivers/net/wireless/intel/ipw2x00/ipw2200.c 				priv->ieee->host_encrypt = 0;
ieee             6762 drivers/net/wireless/intel/ipw2x00/ipw2200.c 				priv->ieee->host_encrypt_msdu = 1;
ieee             6763 drivers/net/wireless/intel/ipw2x00/ipw2200.c 				priv->ieee->host_decrypt = 1;
ieee             6766 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			priv->ieee->host_encrypt = 0;
ieee             6767 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			priv->ieee->host_encrypt_msdu = 0;
ieee             6768 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			priv->ieee->host_decrypt = 0;
ieee             6769 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			priv->ieee->host_mc_decrypt = 0;
ieee             6773 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	return libipw_wx_set_encodeext(priv->ieee, info, wrqu, extra);
ieee             6782 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	return libipw_wx_get_encodeext(priv->ieee, info, wrqu, extra);
ieee             6825 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		spin_lock_irqsave(&priv->ieee->lock, flags);
ieee             6827 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		spin_unlock_irqrestore(&priv->ieee->lock, flags);
ieee             6829 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		mode = priv->ieee->mode;
ieee             6863 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		if ((priv->ieee->mode == IEEE_B) || (network->mode == IEEE_B))
ieee             6879 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	    (priv->ieee->iw_mode == IW_MODE_ADHOC) && (active_network == 0)) {
ieee             6928 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	} else if (priv->ieee->iw_mode == IW_MODE_ADHOC) {
ieee             6947 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		spin_lock_irqsave(&priv->ieee->lock, flags);
ieee             6953 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		spin_unlock_irqrestore(&priv->ieee->lock, flags);
ieee             7012 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	switch (priv->ieee->iw_mode) {
ieee             7063 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if ((priv->ieee->iw_mode != IW_MODE_INFRA))
ieee             7066 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	spin_lock_irqsave(&priv->ieee->lock, flags);
ieee             7079 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		if ((network->mode == IEEE_B) || (priv->ieee->mode == IEEE_B))
ieee             7090 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	spin_unlock_irqrestore(&priv->ieee->lock, flags);
ieee             7105 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (!(priv->ieee->modulation & LIBIPW_OFDM_MODULATION))
ieee             7168 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->iw_mode == IW_MODE_ADHOC) {
ieee             7294 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	    (priv->ieee->sec.auth_mode == WLAN_AUTH_SHARED_KEY)) {
ieee             7296 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->assoc_request.auth_key = priv->ieee->sec.active_key;
ieee             7298 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		if (priv->ieee->sec.level == SEC_LEVEL_1)
ieee             7302 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		   (priv->ieee->sec.auth_mode == WLAN_AUTH_LEAP))
ieee             7307 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->wpa_ie_len) {
ieee             7309 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		ipw_set_rsn_capa(priv, priv->ieee->wpa_ie,
ieee             7310 drivers/net/wireless/intel/ipw2x00/ipw2200.c 				 priv->ieee->wpa_ie_len);
ieee             7318 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (network->mode & priv->ieee->mode & IEEE_A)
ieee             7320 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	else if (network->mode & priv->ieee->mode & IEEE_G)
ieee             7322 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	else if (network->mode & priv->ieee->mode & IEEE_B)
ieee             7338 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->iw_mode == IW_MODE_ADHOC)
ieee             7358 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			'1' + priv->ieee->sec.active_key : '.',
ieee             7362 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if ((priv->ieee->iw_mode == IW_MODE_ADHOC) &&
ieee             7378 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->iw_mode == IW_MODE_ADHOC) {
ieee             7403 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->iw_mode == IW_MODE_ADHOC)
ieee             7486 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		spin_lock_irqsave(&priv->ieee->lock, flags);
ieee             7487 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		list_for_each_entry(network, &priv->ieee->network_list, list) {
ieee             7491 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		spin_unlock_irqrestore(&priv->ieee->lock, flags);
ieee             7535 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->iw_mode == IW_MODE_MONITOR) {
ieee             7565 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	spin_lock_irqsave(&priv->ieee->lock, flags);
ieee             7566 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	list_for_each_entry(network, &priv->ieee->network_list, list)
ieee             7573 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	    priv->ieee->iw_mode == IW_MODE_ADHOC &&
ieee             7578 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		if (list_empty(&priv->ieee->network_free_list)) {
ieee             7582 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			list_for_each_entry(target, &priv->ieee->network_list, list) {
ieee             7595 drivers/net/wireless/intel/ipw2x00/ipw2200.c 				      &priv->ieee->network_free_list);
ieee             7598 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		element = priv->ieee->network_free_list.next;
ieee             7603 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		list_add_tail(&network->list, &priv->ieee->network_list);
ieee             7605 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	spin_unlock_irqrestore(&priv->ieee->lock, flags);
ieee             7650 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	switch (priv->ieee->sec.level) {
ieee             7671 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		       priv->ieee->sec.level);
ieee             7712 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->iw_mode != IW_MODE_MONITOR &&
ieee             7714 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	     !priv->ieee->host_mc_decrypt : !priv->ieee->host_decrypt))
ieee             7717 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (!libipw_rx(priv->ieee, rxb->skb, stats))
ieee             7874 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (!libipw_rx(priv->ieee, rxb->skb, stats))
ieee             8080 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (!libipw_rx(priv->prom_priv->ieee, skb, stats)) {
ieee             8092 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	switch (priv->ieee->iw_mode) {
ieee             8134 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	switch (priv->ieee->iw_mode) {
ieee             8207 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	libipw_rx_mgt(priv->ieee, header, stats);
ieee             8209 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->iw_mode == IW_MODE_ADHOC &&
ieee             8232 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		skb->dev = priv->ieee->dev;
ieee             8322 drivers/net/wireless/intel/ipw2x00/ipw2200.c 				if (priv->ieee->iw_mode == IW_MODE_MONITOR) {
ieee             8464 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	int old_mode = priv->ieee->iw_mode;
ieee             8506 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->iw_mode = IW_MODE_ADHOC;
ieee             8512 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->iw_mode = IW_MODE_MONITOR;
ieee             8523 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->iw_mode = IW_MODE_INFRA;
ieee             8528 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->host_encrypt = 0;
ieee             8529 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->host_encrypt_msdu = 0;
ieee             8530 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->host_decrypt = 0;
ieee             8531 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->host_mc_decrypt = 0;
ieee             8536 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->ieee->host_open_frag = 0;
ieee             8544 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->abg_true = 1;
ieee             8549 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->mode = IEEE_A | IEEE_G | IEEE_B;
ieee             8556 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->abg_true = 0;
ieee             8561 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->mode = IEEE_G | IEEE_B;
ieee             8564 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->ieee->freq_band = band;
ieee             8565 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->ieee->modulation = modulation;
ieee             8580 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	return old_mode == priv->ieee->iw_mode;
ieee             8616 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->iw_mode == IW_MODE_MONITOR) {
ieee             8650 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	const struct libipw_geo *geo = libipw_get_geo(priv->ieee);
ieee             8665 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		channel = libipw_freq_to_channel(priv->ieee, fwrq->m);
ieee             8671 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (!(band = libipw_is_valid_channel(priv->ieee, channel)))
ieee             8674 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->iw_mode == IW_MODE_ADHOC) {
ieee             8675 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		i = libipw_channel_to_index(priv->ieee, channel);
ieee             8709 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		i = libipw_channel_to_index(priv->ieee, priv->channel);
ieee             8713 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		switch (libipw_is_valid_channel(priv->ieee, priv->channel)) {
ieee             8715 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			wrqu->freq.m = priv->ieee->geo.a[i].freq * 100000;
ieee             8719 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			wrqu->freq.m = priv->ieee->geo.bg[i].freq * 100000;
ieee             8755 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (wrqu->mode == priv->ieee->iw_mode)
ieee             8763 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->iw_mode == IW_MODE_MONITOR)
ieee             8778 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->ieee->iw_mode = wrqu->mode;
ieee             8791 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	wrqu->mode = priv->ieee->iw_mode;
ieee             8820 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	const struct libipw_geo *geo = libipw_get_geo(priv->ieee);
ieee             8861 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->mode & (IEEE_B | IEEE_G)) {
ieee             8863 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			if ((priv->ieee->iw_mode == IW_MODE_ADHOC) &&
ieee             8874 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->mode & IEEE_A) {
ieee             8876 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			if ((priv->ieee->iw_mode == IW_MODE_ADHOC) &&
ieee             9212 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		ipw_set_fixed_rate(priv, priv->ieee->mode);
ieee             9342 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->fts = DEFAULT_FTS;
ieee             9350 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->fts = wrqu->frag.value & ~0x1;
ieee             9365 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	wrqu->frag.value = priv->ieee->fts;
ieee             9479 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	return libipw_wx_get_scan(priv->ieee, info, wrqu, extra);
ieee             9491 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	ret = libipw_wx_set_encode(priv->ieee, info, wrqu, key);
ieee             9496 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	    priv->ieee->iw_mode == IW_MODE_ADHOC &&
ieee             9509 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	return libipw_wx_get_encode(priv->ieee, info, wrqu, key);
ieee             9652 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->abg_true = 1;
ieee             9657 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			priv->ieee->abg_true = 0;
ieee             9666 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->abg_true = 0;
ieee             9673 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->abg_true = 0;
ieee             9679 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->abg_true = 0;
ieee             9681 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->ieee->mode = mode;
ieee             9682 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->ieee->freq_band = band;
ieee             9683 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->ieee->modulation = modulation;
ieee             9709 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	switch (priv->ieee->mode) {
ieee             9803 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		if (priv->ieee->iw_mode != IW_MODE_MONITOR) {
ieee             9814 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		if (priv->ieee->iw_mode != IW_MODE_MONITOR) {
ieee             9864 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	libipw_wx_set_encode(priv->ieee, info, &wrqu_sec, NULL);
ieee             10038 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	wstats->discard.code = priv->ieee->ieee_stats.rx_discards_undecryptable;
ieee             10113 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	switch (priv->ieee->iw_mode) {
ieee             10162 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (txb->encrypted && !priv->ieee->host_encrypt) {
ieee             10163 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		switch (priv->ieee->sec.level) {
ieee             10189 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			tfd->u.data.key_index = priv->ieee->crypt_info.tx_keyidx;
ieee             10190 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			if (priv->ieee->sec.key_sizes[priv->ieee->crypt_info.tx_keyidx] <=
ieee             10200 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			       priv->ieee->sec.level);
ieee             10365 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		else if (priv->ieee->mode == IEEE_B) /* 802.11b */
ieee             10378 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		if (!libipw_rx(priv->prom_priv->ieee, dst, &dummystats))
ieee             10697 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			priv->ieee->sec.encode_alg[i] = sec->encode_alg[i];
ieee             10698 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			priv->ieee->sec.key_sizes[i] = sec->key_sizes[i];
ieee             10700 drivers/net/wireless/intel/ipw2x00/ipw2200.c 				priv->ieee->sec.flags &= ~(1 << i);
ieee             10702 drivers/net/wireless/intel/ipw2x00/ipw2200.c 				memcpy(priv->ieee->sec.keys[i], sec->keys[i],
ieee             10704 drivers/net/wireless/intel/ipw2x00/ipw2200.c 				priv->ieee->sec.flags |= (1 << i);
ieee             10708 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			priv->ieee->sec.flags &= ~(1 << i);
ieee             10712 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->sec.active_key = sec->active_key;
ieee             10713 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->sec.flags |= SEC_ACTIVE_KEY;
ieee             10716 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->sec.flags &= ~SEC_ACTIVE_KEY;
ieee             10719 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	    (priv->ieee->sec.auth_mode != sec->auth_mode)) {
ieee             10720 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->sec.auth_mode = sec->auth_mode;
ieee             10721 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->sec.flags |= SEC_AUTH_MODE;
ieee             10729 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (sec->flags & SEC_ENABLED && priv->ieee->sec.enabled != sec->enabled) {
ieee             10730 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->sec.flags |= SEC_ENABLED;
ieee             10731 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->sec.enabled = sec->enabled;
ieee             10740 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->sec.encrypt = sec->encrypt;
ieee             10742 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (sec->flags & SEC_LEVEL && priv->ieee->sec.level != sec->level) {
ieee             10743 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->sec.level = sec->level;
ieee             10744 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		priv->ieee->sec.flags |= SEC_LEVEL;
ieee             10748 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (!priv->ieee->host_encrypt && (sec->flags & SEC_ENCRYPT))
ieee             10774 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	switch (priv->ieee->freq_band) {
ieee             10787 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		if (priv->ieee->modulation & LIBIPW_OFDM_MODULATION) {
ieee             10834 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->iw_mode == IW_MODE_ADHOC)
ieee             10871 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	    (priv->ieee->sec.level == SEC_LEVEL_1) &&
ieee             10872 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	    !(priv->ieee->host_encrypt || priv->ieee->host_decrypt))
ieee             11159 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	libipw_set_geo(priv->ieee, &ipw_geos[j]);
ieee             11169 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		libipw_networks_age(priv->ieee, priv->suspend_time);
ieee             11326 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	const struct libipw_geo *geo = libipw_get_geo(priv->ieee);
ieee             11327 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	struct wireless_dev *wdev = &priv->ieee->wdev;
ieee             11333 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		struct ieee80211_supported_band *bg_band = &priv->ieee->bg_band;
ieee             11372 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		struct ieee80211_supported_band *a_band = &priv->ieee->a_band;
ieee             11494 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->iw_mode != IW_MODE_MONITOR) {
ieee             11513 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	if (priv->ieee->iw_mode != IW_MODE_MONITOR) {
ieee             11553 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->prom_priv->ieee = netdev_priv(priv->prom_net_dev);
ieee             11565 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->prom_priv->ieee->iw_mode = IW_MODE_MONITOR;
ieee             11617 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->ieee = netdev_priv(net_dev);
ieee             11686 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->ieee->hard_start_xmit = ipw_net_hard_start_xmit;
ieee             11687 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->ieee->set_security = shim__set_security;
ieee             11688 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->ieee->is_queue_full = ipw_net_is_queue_full;
ieee             11691 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->ieee->is_qos_active = ipw_is_qos_active;
ieee             11692 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->ieee->handle_probe_response = ipw_handle_beacon;
ieee             11693 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->ieee->handle_beacon = ipw_handle_probe_response;
ieee             11694 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->ieee->handle_assoc_response = ipw_handle_assoc_response;
ieee             11697 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->ieee->perfect_rssi = -20;
ieee             11698 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->ieee->worst_rssi = -85;
ieee             11701 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	priv->wireless_data.spy_data = &priv->ieee->spy_data;
ieee             11750 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	       priv->ieee->geo.name, priv->ieee->geo.bg_channels,
ieee             11751 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	       priv->ieee->geo.a_channels);
ieee             11756 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	wiphy_unregister(priv->ieee->wdev.wiphy);
ieee             11757 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	kfree(priv->ieee->a_band.channels);
ieee             11758 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	kfree(priv->ieee->bg_band.channels);
ieee             11850 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	wiphy_unregister(priv->ieee->wdev.wiphy);
ieee             11851 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	kfree(priv->ieee->a_band.channels);
ieee             11852 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	kfree(priv->ieee->bg_band.channels);
ieee             1131 drivers/net/wireless/intel/ipw2x00/ipw2200.h 	struct libipw_device *ieee;
ieee             1162 drivers/net/wireless/intel/ipw2x00/ipw2200.h 	struct libipw_device *ieee;
ieee              846 drivers/net/wireless/intel/ipw2x00/libipw.h static inline int libipw_is_valid_mode(struct libipw_device *ieee,
ieee              856 drivers/net/wireless/intel/ipw2x00/libipw.h 	    (ieee->modulation & LIBIPW_OFDM_MODULATION) &&
ieee              857 drivers/net/wireless/intel/ipw2x00/libipw.h 	    (ieee->freq_band & LIBIPW_52GHZ_BAND))
ieee              861 drivers/net/wireless/intel/ipw2x00/libipw.h 	    (ieee->modulation & LIBIPW_OFDM_MODULATION) &&
ieee              862 drivers/net/wireless/intel/ipw2x00/libipw.h 	    (ieee->freq_band & LIBIPW_24GHZ_BAND))
ieee              866 drivers/net/wireless/intel/ipw2x00/libipw.h 	    (ieee->modulation & LIBIPW_CCK_MODULATION) &&
ieee              867 drivers/net/wireless/intel/ipw2x00/libipw.h 	    (ieee->freq_band & LIBIPW_24GHZ_BAND))
ieee              948 drivers/net/wireless/intel/ipw2x00/libipw.h void libipw_networks_age(struct libipw_device *ieee, unsigned long age_secs);
ieee              950 drivers/net/wireless/intel/ipw2x00/libipw.h int libipw_set_encryption(struct libipw_device *ieee);
ieee              957 drivers/net/wireless/intel/ipw2x00/libipw.h void libipw_rx_any(struct libipw_device *ieee, struct sk_buff *skb,
ieee              959 drivers/net/wireless/intel/ipw2x00/libipw.h int libipw_rx(struct libipw_device *ieee, struct sk_buff *skb,
ieee              962 drivers/net/wireless/intel/ipw2x00/libipw.h void libipw_rx_mgt(struct libipw_device *ieee, struct libipw_hdr_4addr *header,
ieee              966 drivers/net/wireless/intel/ipw2x00/libipw.h const struct libipw_geo *libipw_get_geo(struct libipw_device *ieee);
ieee              967 drivers/net/wireless/intel/ipw2x00/libipw.h void libipw_set_geo(struct libipw_device *ieee, const struct libipw_geo *geo);
ieee              969 drivers/net/wireless/intel/ipw2x00/libipw.h int libipw_is_valid_channel(struct libipw_device *ieee, u8 channel);
ieee              970 drivers/net/wireless/intel/ipw2x00/libipw.h int libipw_channel_to_index(struct libipw_device *ieee, u8 channel);
ieee              971 drivers/net/wireless/intel/ipw2x00/libipw.h u8 libipw_freq_to_channel(struct libipw_device *ieee, u32 freq);
ieee              972 drivers/net/wireless/intel/ipw2x00/libipw.h u8 libipw_get_channel_flags(struct libipw_device *ieee, u8 channel);
ieee              973 drivers/net/wireless/intel/ipw2x00/libipw.h const struct libipw_channel *libipw_get_channel(struct libipw_device *ieee,
ieee              975 drivers/net/wireless/intel/ipw2x00/libipw.h u32 libipw_channel_to_freq(struct libipw_device *ieee, u8 channel);
ieee              978 drivers/net/wireless/intel/ipw2x00/libipw.h int libipw_wx_get_scan(struct libipw_device *ieee, struct iw_request_info *info,
ieee              980 drivers/net/wireless/intel/ipw2x00/libipw.h int libipw_wx_set_encode(struct libipw_device *ieee,
ieee              983 drivers/net/wireless/intel/ipw2x00/libipw.h int libipw_wx_get_encode(struct libipw_device *ieee,
ieee              986 drivers/net/wireless/intel/ipw2x00/libipw.h int libipw_wx_set_encodeext(struct libipw_device *ieee,
ieee              989 drivers/net/wireless/intel/ipw2x00/libipw.h int libipw_wx_get_encodeext(struct libipw_device *ieee,
ieee              993 drivers/net/wireless/intel/ipw2x00/libipw.h static inline void libipw_increment_scans(struct libipw_device *ieee)
ieee              995 drivers/net/wireless/intel/ipw2x00/libipw.h 	ieee->scans++;
ieee              998 drivers/net/wireless/intel/ipw2x00/libipw.h static inline int libipw_get_scans(struct libipw_device *ieee)
ieee             1000 drivers/net/wireless/intel/ipw2x00/libipw.h 	return ieee->scans;
ieee               31 drivers/net/wireless/intel/ipw2x00/libipw_geo.c int libipw_is_valid_channel(struct libipw_device *ieee, u8 channel)
ieee               37 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0)
ieee               40 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	if (ieee->freq_band & LIBIPW_24GHZ_BAND)
ieee               41 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 		for (i = 0; i < ieee->geo.bg_channels; i++)
ieee               45 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 			if ((ieee->geo.bg[i].channel == channel) &&
ieee               46 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 			    !(ieee->geo.bg[i].flags & LIBIPW_CH_INVALID) &&
ieee               47 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 			    (!(ieee->mode & IEEE_G) ||
ieee               48 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 			     !(ieee->geo.bg[i].flags & LIBIPW_CH_B_ONLY)))
ieee               51 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	if (ieee->freq_band & LIBIPW_52GHZ_BAND)
ieee               52 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 		for (i = 0; i < ieee->geo.a_channels; i++)
ieee               53 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 			if ((ieee->geo.a[i].channel == channel) &&
ieee               54 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 			    !(ieee->geo.a[i].flags & LIBIPW_CH_INVALID))
ieee               60 drivers/net/wireless/intel/ipw2x00/libipw_geo.c int libipw_channel_to_index(struct libipw_device *ieee, u8 channel)
ieee               66 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0)
ieee               69 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	if (ieee->freq_band & LIBIPW_24GHZ_BAND)
ieee               70 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 		for (i = 0; i < ieee->geo.bg_channels; i++)
ieee               71 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 			if (ieee->geo.bg[i].channel == channel)
ieee               74 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	if (ieee->freq_band & LIBIPW_52GHZ_BAND)
ieee               75 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 		for (i = 0; i < ieee->geo.a_channels; i++)
ieee               76 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 			if (ieee->geo.a[i].channel == channel)
ieee               82 drivers/net/wireless/intel/ipw2x00/libipw_geo.c u32 libipw_channel_to_freq(struct libipw_device * ieee, u8 channel)
ieee               88 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0)
ieee               91 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	ch = libipw_get_channel(ieee, channel);
ieee               97 drivers/net/wireless/intel/ipw2x00/libipw_geo.c u8 libipw_freq_to_channel(struct libipw_device * ieee, u32 freq)
ieee              103 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0)
ieee              108 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	if (ieee->freq_band & LIBIPW_24GHZ_BAND)
ieee              109 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 		for (i = 0; i < ieee->geo.bg_channels; i++)
ieee              110 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 			if (ieee->geo.bg[i].freq == freq)
ieee              111 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 				return ieee->geo.bg[i].channel;
ieee              113 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	if (ieee->freq_band & LIBIPW_52GHZ_BAND)
ieee              114 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 		for (i = 0; i < ieee->geo.a_channels; i++)
ieee              115 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 			if (ieee->geo.a[i].freq == freq)
ieee              116 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 				return ieee->geo.a[i].channel;
ieee              121 drivers/net/wireless/intel/ipw2x00/libipw_geo.c void libipw_set_geo(struct libipw_device *ieee,
ieee              124 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	memcpy(ieee->geo.name, geo->name, 3);
ieee              125 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	ieee->geo.name[3] = '\0';
ieee              126 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	ieee->geo.bg_channels = geo->bg_channels;
ieee              127 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	ieee->geo.a_channels = geo->a_channels;
ieee              128 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	memcpy(ieee->geo.bg, geo->bg, geo->bg_channels *
ieee              130 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	memcpy(ieee->geo.a, geo->a, ieee->geo.a_channels *
ieee              134 drivers/net/wireless/intel/ipw2x00/libipw_geo.c const struct libipw_geo *libipw_get_geo(struct libipw_device *ieee)
ieee              136 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	return &ieee->geo;
ieee              139 drivers/net/wireless/intel/ipw2x00/libipw_geo.c u8 libipw_get_channel_flags(struct libipw_device * ieee, u8 channel)
ieee              141 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	int index = libipw_channel_to_index(ieee, channel);
ieee              147 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 		return ieee->geo.bg[index].flags;
ieee              149 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	return ieee->geo.a[index].flags;
ieee              159 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 						      *ieee, u8 channel)
ieee              161 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	int index = libipw_channel_to_index(ieee, channel);
ieee              167 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 		return &ieee->geo.bg[index];
ieee              169 drivers/net/wireless/intel/ipw2x00/libipw_geo.c 	return &ieee->geo.a[index];
ieee               55 drivers/net/wireless/intel/ipw2x00/libipw_module.c static int libipw_networks_allocate(struct libipw_device *ieee)
ieee               60 drivers/net/wireless/intel/ipw2x00/libipw_module.c 		ieee->networks[i] = kzalloc(sizeof(struct libipw_network),
ieee               62 drivers/net/wireless/intel/ipw2x00/libipw_module.c 		if (!ieee->networks[i]) {
ieee               65 drivers/net/wireless/intel/ipw2x00/libipw_module.c 				kfree(ieee->networks[j]);
ieee               73 drivers/net/wireless/intel/ipw2x00/libipw_module.c static inline void libipw_networks_free(struct libipw_device *ieee)
ieee               78 drivers/net/wireless/intel/ipw2x00/libipw_module.c 		kfree(ieee->networks[i]);
ieee               81 drivers/net/wireless/intel/ipw2x00/libipw_module.c void libipw_networks_age(struct libipw_device *ieee,
ieee               88 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee               89 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	list_for_each_entry(network, &ieee->network_list, list) {
ieee               92 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee               96 drivers/net/wireless/intel/ipw2x00/libipw_module.c static void libipw_networks_initialize(struct libipw_device *ieee)
ieee              100 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	INIT_LIST_HEAD(&ieee->network_free_list);
ieee              101 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	INIT_LIST_HEAD(&ieee->network_list);
ieee              103 drivers/net/wireless/intel/ipw2x00/libipw_module.c 		list_add_tail(&ieee->networks[i]->list,
ieee              104 drivers/net/wireless/intel/ipw2x00/libipw_module.c 			      &ieee->network_free_list);
ieee              109 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	struct libipw_device *ieee;
ieee              119 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	ieee = netdev_priv(dev);
ieee              121 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	ieee->dev = dev;
ieee              124 drivers/net/wireless/intel/ipw2x00/libipw_module.c 		ieee->wdev.wiphy = wiphy_new(&libipw_config_ops, 0);
ieee              125 drivers/net/wireless/intel/ipw2x00/libipw_module.c 		if (!ieee->wdev.wiphy) {
ieee              130 drivers/net/wireless/intel/ipw2x00/libipw_module.c 		ieee->dev->ieee80211_ptr = &ieee->wdev;
ieee              131 drivers/net/wireless/intel/ipw2x00/libipw_module.c 		ieee->wdev.iftype = NL80211_IFTYPE_STATION;
ieee              136 drivers/net/wireless/intel/ipw2x00/libipw_module.c 		ieee->wdev.wiphy->privid = libipw_wiphy_privid;
ieee              138 drivers/net/wireless/intel/ipw2x00/libipw_module.c 		ieee->wdev.wiphy->max_scan_ssids = 1;
ieee              139 drivers/net/wireless/intel/ipw2x00/libipw_module.c 		ieee->wdev.wiphy->max_scan_ie_len = 0;
ieee              140 drivers/net/wireless/intel/ipw2x00/libipw_module.c 		ieee->wdev.wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION)
ieee              144 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	err = libipw_networks_allocate(ieee);
ieee              149 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	libipw_networks_initialize(ieee);
ieee              152 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	ieee->fts = DEFAULT_FTS;
ieee              153 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	ieee->rts = DEFAULT_FTS;
ieee              154 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	ieee->scan_age = DEFAULT_MAX_SCAN_AGE;
ieee              155 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	ieee->open_wep = 1;
ieee              158 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	ieee->host_encrypt = 1;
ieee              159 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	ieee->host_decrypt = 1;
ieee              160 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	ieee->host_mc_decrypt = 1;
ieee              167 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	ieee->host_open_frag = 1;
ieee              168 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	ieee->ieee802_1x = 1;	/* Default to supporting 802.1x */
ieee              170 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	spin_lock_init(&ieee->lock);
ieee              172 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	lib80211_crypt_info_init(&ieee->crypt_info, dev->name, &ieee->lock);
ieee              174 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	ieee->wpa_enabled = 0;
ieee              175 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	ieee->drop_unencrypted = 0;
ieee              176 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	ieee->privacy_invoked = 0;
ieee              182 drivers/net/wireless/intel/ipw2x00/libipw_module.c 		wiphy_free(ieee->wdev.wiphy);
ieee              192 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	struct libipw_device *ieee = netdev_priv(dev);
ieee              194 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	lib80211_crypt_info_free(&ieee->crypt_info);
ieee              196 drivers/net/wireless/intel/ipw2x00/libipw_module.c 	libipw_networks_free(ieee);
ieee              200 drivers/net/wireless/intel/ipw2x00/libipw_module.c 		wiphy_free(ieee->wdev.wiphy);
ieee               35 drivers/net/wireless/intel/ipw2x00/libipw_rx.c static void libipw_monitor_rx(struct libipw_device *ieee,
ieee               42 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	skb->dev = ieee->dev;
ieee               54 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 							      *ieee,
ieee               64 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		entry = &ieee->frag_cache[i];
ieee               85 drivers/net/wireless/intel/ipw2x00/libipw_rx.c static struct sk_buff *libipw_frag_cache_get(struct libipw_device *ieee,
ieee               99 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		skb = dev_alloc_skb(ieee->dev->mtu +
ieee              107 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		entry = &ieee->frag_cache[ieee->frag_next_idx];
ieee              108 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		ieee->frag_next_idx++;
ieee              109 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		if (ieee->frag_next_idx >= LIBIPW_FRAG_CACHE_LEN)
ieee              110 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			ieee->frag_next_idx = 0;
ieee              124 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		entry = libipw_frag_cache_find(ieee, seq, frag, hdr->addr2,
ieee              136 drivers/net/wireless/intel/ipw2x00/libipw_rx.c static int libipw_frag_cache_invalidate(struct libipw_device *ieee,
ieee              146 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	entry = libipw_frag_cache_find(ieee, seq, -1, hdr->addr2,
ieee              166 drivers/net/wireless/intel/ipw2x00/libipw_rx.c libipw_rx_frame_mgmt(struct libipw_device *ieee, struct sk_buff *skb,
ieee              170 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if (ieee->iw_mode == IW_MODE_MASTER) {
ieee              172 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		       ieee->dev->name);
ieee              179 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if (ieee->hostapd && type == WLAN_FC_TYPE_MGMT) {
ieee              181 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		    ieee->iw_mode == IW_MODE_MASTER) {
ieee              192 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		ieee->apdevstats.rx_packets++;
ieee              193 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		ieee->apdevstats.rx_bytes += skb->len;
ieee              194 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		prism2_rx_80211(ieee->apdev, skb, rx_stats, PRISM2_RX_MGMT);
ieee              198 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if (ieee->iw_mode == IW_MODE_MASTER) {
ieee              227 drivers/net/wireless/intel/ipw2x00/libipw_rx.c static int libipw_is_eapol_frame(struct libipw_device *ieee,
ieee              230 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	struct net_device *dev = ieee->dev;
ieee              268 drivers/net/wireless/intel/ipw2x00/libipw_rx.c libipw_rx_frame_decrypt(struct libipw_device *ieee, struct sk_buff *skb,
ieee              290 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		ieee->ieee_stats.rx_discards_undecryptable++;
ieee              299 drivers/net/wireless/intel/ipw2x00/libipw_rx.c libipw_rx_frame_decrypt_msdu(struct libipw_device *ieee,
ieee              317 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		       " (SA=%pM keyidx=%d)\n", ieee->dev->name, hdr->addr2,
ieee              328 drivers/net/wireless/intel/ipw2x00/libipw_rx.c int libipw_rx(struct libipw_device *ieee, struct sk_buff *skb,
ieee              331 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	struct net_device *dev = ieee->dev;
ieee              376 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if (ieee->spy_data.spy_number > 0) {
ieee              399 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		wireless_spy_update(ieee->dev, hdr->addr2, &wstats);
ieee              408 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if (ieee->iw_mode == IW_MODE_MONITOR) {
ieee              411 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		libipw_monitor_rx(ieee, skb, rx_stats);
ieee              417 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	    ieee->host_mc_decrypt : ieee->host_decrypt;
ieee              429 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		crypt = ieee->crypt_info.crypt[keyidx];
ieee              459 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			ieee->ieee_stats.rx_discards_undecryptable++;
ieee              466 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		    fc & IEEE80211_FCTL_PROTECTED && ieee->host_decrypt &&
ieee              467 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		    (keyidx = hostap_rx_frame_decrypt(ieee, skb, crypt)) < 0) {
ieee              475 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		if (libipw_rx_frame_mgmt(ieee, skb, rx_stats, type, stype))
ieee              482 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if (sc == ieee->prev_seq_ctl)
ieee              485 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		ieee->prev_seq_ctl = sc;
ieee              513 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if (hostap_rx_frame_wds(ieee, hdr, fc, &wds))
ieee              520 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if (ieee->iw_mode == IW_MODE_MASTER && !wds &&
ieee              522 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	    IEEE80211_FCTL_FROMDS && ieee->stadev &&
ieee              523 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	    ether_addr_equal(hdr->addr2, ieee->assoc_ap_addr)) {
ieee              525 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		skb->dev = dev = ieee->stadev;
ieee              532 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if ((ieee->iw_mode == IW_MODE_MASTER ||
ieee              533 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	     ieee->iw_mode == IW_MODE_REPEAT) && !from_assoc_ap) {
ieee              534 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		switch (hostap_handle_sta_rx(ieee, dev, skb, rx_stats,
ieee              570 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	    (keyidx = libipw_rx_frame_decrypt(ieee, skb, crypt)) < 0)
ieee              580 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		struct sk_buff *frag_skb = libipw_frag_cache_get(ieee, hdr);
ieee              600 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			libipw_frag_cache_invalidate(ieee, hdr);
ieee              628 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		libipw_frag_cache_invalidate(ieee, hdr);
ieee              634 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	    libipw_rx_frame_decrypt_msdu(ieee, skb, keyidx, crypt))
ieee              638 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if (crypt && !(fc & IEEE80211_FCTL_PROTECTED) && !ieee->open_wep) {
ieee              640 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			   libipw_is_eapol_frame(ieee, skb)) {
ieee              651 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if (crypt && !(fc & IEEE80211_FCTL_PROTECTED) && !ieee->open_wep &&
ieee              652 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	    !libipw_is_eapol_frame(ieee, skb)) {
ieee              662 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	    ieee->host_strip_iv_icv) {
ieee              674 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		switch (ieee->sec.encode_alg[keyidx]) {
ieee              712 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if (ieee->ieee802_1x && ieee->iw_mode == IW_MODE_MASTER) {
ieee              716 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			if (ieee->hostapd && ieee->apdev) {
ieee              719 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 				prism2_rx_80211(ieee->apdev, skb, rx_stats,
ieee              721 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 				ieee->apdevstats.rx_packets++;
ieee              722 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 				ieee->apdevstats.rx_bytes += skb->len;
ieee              770 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if (ieee->iw_mode == IW_MODE_MASTER && !wds && ieee->ap->bridge_packets) {
ieee              774 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			ieee->ap->bridged_multicast++;
ieee              779 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		} else if (hostap_is_sta_assoc(ieee->ap, dst)) {
ieee              782 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			ieee->ap->bridged_unicast++;
ieee              832 drivers/net/wireless/intel/ipw2x00/libipw_rx.c void libipw_rx_any(struct libipw_device *ieee,
ieee              839 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if (ieee->iw_mode == IW_MODE_MONITOR) {
ieee              840 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		if (!libipw_rx(ieee, skb, stats))
ieee              858 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		libipw_rx_mgt(ieee, hdr, stats);
ieee              870 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	switch (ieee->iw_mode) {
ieee              873 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		if (ether_addr_equal(hdr->addr3, ieee->bssid))
ieee              876 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			if (ieee->dev->flags & IFF_PROMISC)
ieee              879 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			else if (ether_addr_equal(hdr->addr1, ieee->dev->dev_addr))
ieee              888 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		if (ether_addr_equal(hdr->addr2, ieee->bssid))
ieee              891 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			if (ieee->dev->flags & IFF_PROMISC)
ieee              894 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			else if (ether_addr_equal(hdr->addr1, ieee->dev->dev_addr))
ieee              899 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 				if (!ether_addr_equal(hdr->addr3, ieee->dev->dev_addr))
ieee              910 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		if (!libipw_rx(ieee, skb, stats))
ieee              916 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	ieee->dev->stats.rx_dropped++;
ieee             1322 drivers/net/wireless/intel/ipw2x00/libipw_rx.c static int libipw_handle_assoc_resp(struct libipw_device *ieee, struct libipw_assoc_response
ieee             1327 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	struct net_device *dev = ieee->dev;
ieee             1372 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if (ieee->handle_assoc_response != NULL)
ieee             1373 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		ieee->handle_assoc_response(dev, frame, network);
ieee             1380 drivers/net/wireless/intel/ipw2x00/libipw_rx.c static int libipw_network_init(struct libipw_device *ieee, struct libipw_probe_response
ieee             1527 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 						    *ieee, struct
ieee             1532 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	struct net_device *dev = ieee->dev;
ieee             1561 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if (libipw_network_init(ieee, beacon, &network, stats)) {
ieee             1580 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             1582 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	list_for_each_entry(target, &ieee->network_list, list) {
ieee             1593 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	if (&target->list == &ieee->network_list) {
ieee             1594 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		if (list_empty(&ieee->network_free_list)) {
ieee             1603 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			target = list_entry(ieee->network_free_list.next,
ieee             1605 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			list_del(ieee->network_free_list.next);
ieee             1616 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		list_add_tail(&target->list, &ieee->network_list);
ieee             1626 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             1629 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		if (ieee->handle_beacon != NULL)
ieee             1630 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			ieee->handle_beacon(dev, beacon, target);
ieee             1632 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		if (ieee->handle_probe_response != NULL)
ieee             1633 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			ieee->handle_probe_response(dev, beacon, target);
ieee             1637 drivers/net/wireless/intel/ipw2x00/libipw_rx.c void libipw_rx_mgt(struct libipw_device *ieee,
ieee             1646 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		libipw_handle_assoc_resp(ieee,
ieee             1662 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		if (ieee->handle_probe_request != NULL)
ieee             1663 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			ieee->handle_probe_request(ieee->dev,
ieee             1674 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		libipw_process_probe_response(ieee,
ieee             1685 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		libipw_process_probe_response(ieee,
ieee             1696 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		if (ieee->handle_auth != NULL)
ieee             1697 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			ieee->handle_auth(ieee->dev,
ieee             1702 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		if (ieee->handle_disassoc != NULL)
ieee             1703 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			ieee->handle_disassoc(ieee->dev,
ieee             1710 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		if (ieee->handle_action)
ieee             1711 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			ieee->handle_action(ieee->dev,
ieee             1722 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 				     ieee->dev->name);
ieee             1723 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		if (ieee->handle_reassoc_request != NULL)
ieee             1724 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			ieee->handle_reassoc_request(ieee->dev,
ieee             1735 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 				     ieee->dev->name);
ieee             1736 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		if (ieee->handle_assoc_request != NULL)
ieee             1737 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			ieee->handle_assoc_request(ieee->dev);
ieee             1742 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 		if (ieee->handle_deauth != NULL)
ieee             1743 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 			ieee->handle_deauth(ieee->dev,
ieee             1752 drivers/net/wireless/intel/ipw2x00/libipw_rx.c 				     ieee->dev->name,
ieee              138 drivers/net/wireless/intel/ipw2x00/libipw_tx.c static int libipw_encrypt_fragment(struct libipw_device *ieee,
ieee              142 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 		ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx];
ieee              158 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 		       ieee->dev->name, frag->len);
ieee              159 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 		ieee->ieee_stats.tx_discards++;
ieee              243 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	struct libipw_device *ieee = netdev_priv(dev);
ieee              263 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	if (ieee->is_queue_full && (*ieee->is_queue_full) (dev, priority))
ieee              266 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee              270 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	if (!ieee->hard_start_xmit) {
ieee              271 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 		printk(KERN_WARNING "%s: No xmit handler.\n", ieee->dev->name);
ieee              277 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 		       ieee->dev->name, skb->len);
ieee              283 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx];
ieee              285 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	encrypt = !(ether_type == htons(ETH_P_PAE) && ieee->ieee802_1x) &&
ieee              286 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	    ieee->sec.encrypt;
ieee              288 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	host_encrypt = ieee->host_encrypt && encrypt && crypt;
ieee              289 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	host_encrypt_msdu = ieee->host_encrypt_msdu && encrypt && crypt;
ieee              291 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	if (!encrypt && ieee->ieee802_1x &&
ieee              292 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	    ieee->drop_unencrypted && ether_type != htons(ETH_P_PAE)) {
ieee              307 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	if (ieee->iw_mode == IW_MODE_INFRA) {
ieee              310 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 		memcpy(header.addr1, ieee->bssid, ETH_ALEN);
ieee              313 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	} else if (ieee->iw_mode == IW_MODE_ADHOC) {
ieee              317 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 		memcpy(header.addr3, ieee->bssid, ETH_ALEN);
ieee              321 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	if (ieee->is_qos_active && ieee->is_qos_active(dev, skb)) {
ieee              366 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	if (host_encrypt || ieee->host_open_frag) {
ieee              373 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 			frag_size = ieee->fts;
ieee              380 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 		if (ieee->config &
ieee              404 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	rts_required = (frag_size > ieee->rts
ieee              405 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 			&& ieee->config & CFG_LIBIPW_RTS);
ieee              413 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 				  ieee->tx_headroom, GFP_ATOMIC);
ieee              416 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 		       ieee->dev->name);
ieee              442 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 		if (ieee->config &
ieee              486 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 			libipw_encrypt_fragment(ieee, skb_frag, hdr_len);
ieee              488 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 		if (ieee->config &
ieee              494 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee              499 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 		netdev_tx_t ret = (*ieee->hard_start_xmit)(txb, dev, priority);
ieee              512 drivers/net/wireless/intel/ipw2x00/libipw_tx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee               45 drivers/net/wireless/intel/ipw2x00/libipw_wx.c static char *libipw_translate_scan(struct libipw_device *ieee,
ieee               93 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	iwe.u.freq.m = libipw_channel_to_freq(ieee, network->channel);
ieee              151 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		if (ieee->perfect_rssi == ieee->worst_rssi)
ieee              156 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 			     (ieee->perfect_rssi - ieee->worst_rssi) *
ieee              157 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 			     (ieee->perfect_rssi - ieee->worst_rssi) -
ieee              158 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 			     (ieee->perfect_rssi - network->stats.rssi) *
ieee              159 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 			     (15 * (ieee->perfect_rssi - ieee->worst_rssi) +
ieee              160 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 			      62 * (ieee->perfect_rssi -
ieee              162 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 			    ((ieee->perfect_rssi -
ieee              163 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 			      ieee->worst_rssi) * (ieee->perfect_rssi -
ieee              164 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 						   ieee->worst_rssi));
ieee              228 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	if (libipw_get_channel_flags(ieee, network->channel) &
ieee              234 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	if (libipw_get_channel_flags(ieee, network->channel) &
ieee              250 drivers/net/wireless/intel/ipw2x00/libipw_wx.c int libipw_wx_get_scan(struct libipw_device *ieee,
ieee              264 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee              266 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	list_for_each_entry(network, &ieee->network_list, list) {
ieee              273 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		if (ieee->scan_age == 0 ||
ieee              274 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		    time_after(network->last_scanned + ieee->scan_age, jiffies))
ieee              275 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 			ev = libipw_translate_scan(ieee, ev, stop, network,
ieee              286 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee              296 drivers/net/wireless/intel/ipw2x00/libipw_wx.c int libipw_wx_set_encode(struct libipw_device *ieee,
ieee              301 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	struct net_device *dev = ieee->dev;
ieee              307 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	int host_crypto = ieee->host_encrypt || ieee->host_decrypt;
ieee              319 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		key = ieee->crypt_info.tx_keyidx;
ieee              325 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	crypt = &ieee->crypt_info.crypt[key];
ieee              331 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 			lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt);
ieee              338 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 			if (ieee->crypt_info.crypt[i] != NULL) {
ieee              341 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 				lib80211_crypt_delayed_deinit(&ieee->crypt_info,
ieee              342 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 							       &ieee->crypt_info.crypt[i]);
ieee              364 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt);
ieee              434 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 			ieee->crypt_info.tx_keyidx = key;
ieee              440 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		ieee->open_wep = !(erq->flags & IW_ENCODE_RESTRICTED);
ieee              441 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		sec.auth_mode = ieee->open_wep ? WLAN_AUTH_OPEN :
ieee              456 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	if (ieee->set_security)
ieee              457 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		ieee->set_security(dev, &sec);
ieee              462 drivers/net/wireless/intel/ipw2x00/libipw_wx.c int libipw_wx_get_encode(struct libipw_device *ieee,
ieee              468 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	struct libipw_security *sec = &ieee->sec;
ieee              478 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		key = ieee->crypt_info.tx_keyidx;
ieee              494 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	if (ieee->open_wep)
ieee              502 drivers/net/wireless/intel/ipw2x00/libipw_wx.c int libipw_wx_set_encodeext(struct libipw_device *ieee,
ieee              506 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	struct net_device *dev = ieee->dev;
ieee              525 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		idx = ieee->crypt_info.tx_keyidx;
ieee              528 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		crypt = &ieee->crypt_info.crypt[idx];
ieee              534 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		if (ieee->iw_mode == IW_MODE_INFRA)
ieee              535 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 			crypt = &ieee->crypt_info.crypt[idx];
ieee              544 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 			lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt);
ieee              547 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 			if (ieee->crypt_info.crypt[i] != NULL)
ieee              562 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	if (group_key ? !ieee->host_mc_decrypt :
ieee              563 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	    !(ieee->host_encrypt || ieee->host_decrypt ||
ieee              564 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	      ieee->host_encrypt_msdu))
ieee              602 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt);
ieee              630 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		ieee->crypt_info.tx_keyidx = idx;
ieee              657 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	if (ieee->set_security)
ieee              658 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		ieee->set_security(dev, &sec);
ieee              663 drivers/net/wireless/intel/ipw2x00/libipw_wx.c int libipw_wx_get_encodeext(struct libipw_device *ieee,
ieee              669 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 	struct libipw_security *sec = &ieee->sec;
ieee              682 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		idx = ieee->crypt_info.tx_keyidx;
ieee              686 drivers/net/wireless/intel/ipw2x00/libipw_wx.c 		if (idx != 0 || ieee->iw_mode != IW_MODE_INFRA)
ieee             1627 drivers/net/wireless/intel/iwlegacy/3945-mac.c 		rates[i].bitrate = il3945_rates[i].ieee * 5;
ieee             6265 drivers/net/wireless/intel/iwlegacy/4965-mac.c 		rates[i].bitrate = il_rates[i].ieee * 5;
ieee             2736 drivers/net/wireless/intel/iwlegacy/4965-rs.c 			    il_rates[lq_sta->last_txrate_idx].ieee >> 1);
ieee             2458 drivers/net/wireless/intel/iwlegacy/common.h 	u8 ieee;		/* MAC header:  RATE_6M_IEEE, etc. */
ieee             2469 drivers/net/wireless/intel/iwlegacy/common.h 	u8 ieee;		/* MAC header:  RATE_6M_IEEE, etc. */
ieee             3244 drivers/net/wireless/intel/iwlwifi/dvm/rs.c 				iwl_rates[lq_sta->last_txrate_idx].ieee >> 1);
ieee               26 drivers/net/wireless/intel/iwlwifi/dvm/rs.h 	u8 ieee;	/* MAC header:  IWL_RATE_6M_IEEE, etc. */
ieee             1474 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h 	u8 ieee;	/* MAC header:  IWL_RATE_6M_IEEE, etc. */
ieee               38 drivers/staging/rtl8192e/dot11d.c void dot11d_init(struct rtllib_device *ieee)
ieee               40 drivers/staging/rtl8192e/dot11d.c 	struct rt_dot11d_info *dot11d_info = GET_DOT11D_INFO(ieee);
ieee               48 drivers/staging/rtl8192e/dot11d.c 	RESET_CIE_WATCHDOG(ieee);
ieee               52 drivers/staging/rtl8192e/dot11d.c void dot11d_channel_map(u8 channel_plan, struct rtllib_device *ieee)
ieee               56 drivers/staging/rtl8192e/dot11d.c 	ieee->global_domain = false;
ieee               59 drivers/staging/rtl8192e/dot11d.c 		memset(GET_DOT11D_INFO(ieee)->channel_map, 0,
ieee               60 drivers/staging/rtl8192e/dot11d.c 		       sizeof(GET_DOT11D_INFO(ieee)->channel_map));
ieee               65 drivers/staging/rtl8192e/dot11d.c 			GET_DOT11D_INFO(ieee)->channel_map[channel_array
ieee               72 drivers/staging/rtl8192e/dot11d.c 		ieee->global_domain = true;
ieee               74 drivers/staging/rtl8192e/dot11d.c 			GET_DOT11D_INFO(ieee)->channel_map[i] = 2;
ieee               75 drivers/staging/rtl8192e/dot11d.c 		ieee->bss_start_channel = 10;
ieee               76 drivers/staging/rtl8192e/dot11d.c 		ieee->ibss_maxjoin_chal = 11;
ieee               81 drivers/staging/rtl8192e/dot11d.c 			GET_DOT11D_INFO(ieee)->channel_map[i] = 2;
ieee               82 drivers/staging/rtl8192e/dot11d.c 		ieee->bss_start_channel = 10;
ieee               83 drivers/staging/rtl8192e/dot11d.c 		ieee->ibss_maxjoin_chal = 11;
ieee               87 drivers/staging/rtl8192e/dot11d.c 		ieee->bss_start_channel = 1;
ieee               88 drivers/staging/rtl8192e/dot11d.c 		ieee->ibss_maxjoin_chal = 14;
ieee               94 drivers/staging/rtl8192e/dot11d.c void dot11d_reset(struct rtllib_device *ieee)
ieee               96 drivers/staging/rtl8192e/dot11d.c 	struct rt_dot11d_info *dot11d_info = GET_DOT11D_INFO(ieee);
ieee              107 drivers/staging/rtl8192e/dot11d.c 	RESET_CIE_WATCHDOG(ieee);
ieee               78 drivers/staging/rtl8192e/dot11d.h void dot11d_channel_map(u8 channel_plan, struct rtllib_device *ieee);
ieee              971 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	struct rtllib_device *ieee = priv->rtllib;
ieee              976 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	if (ieee->state == RTLLIB_LINKED) {
ieee              979 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 		if ((ieee->pairwise_key_type == KEY_TYPE_WEP40) ||
ieee              980 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 		    (ieee->pairwise_key_type == KEY_TYPE_WEP104))
ieee              987 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	if (ieee->iw_mode == IW_MODE_INFRA || ieee->iw_mode == IW_MODE_ADHOC) {
ieee              992 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 			if (ieee->IntelPromiscuousModeInfo.bPromiscuousOn)
ieee             2124 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	struct rtllib_device *ieee = priv->rtllib;
ieee             2125 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	u8 *pMcsRate = ieee->dot11HTOperationalRateSet;
ieee             2132 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	switch (ieee->mode) {
ieee             2145 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 		if (ieee->pHTInfo->PeerMimoPs == 0) {
ieee             2158 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	if (ieee->pHTInfo->bCurTxBW40MHz &&
ieee             2159 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	    ieee->pHTInfo->bCurShortGI40MHz)
ieee             2161 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	else if (!ieee->pHTInfo->bCurTxBW40MHz &&
ieee             2162 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 		  ieee->pHTInfo->bCurShortGI20MHz)
ieee             2342 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	struct rtllib_device *ieee = priv->rtllib;
ieee             2344 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	if (ieee->rtllib_ap_sec_type &&
ieee             2345 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	   (ieee->rtllib_ap_sec_type(priv->rtllib)&(SEC_ALG_WEP |
ieee             2356 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	struct rtllib_device *ieee = priv->rtllib;
ieee             2358 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c 	return ieee->bHalfWirelessN24GMode;
ieee              809 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c 	struct rtllib_device *ieee = priv->rtllib;
ieee              826 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c 		_rtl92e_phy_set_sw_chnl_cmd_array(dev, ieee->PreCommonCmd,
ieee              831 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c 		_rtl92e_phy_set_sw_chnl_cmd_array(dev, ieee->PreCommonCmd,
ieee              838 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c 		_rtl92e_phy_set_sw_chnl_cmd_array(dev, ieee->PostCommonCmd,
ieee              853 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c 							  ieee->RfDependCmd,
ieee              861 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c 							  ieee->RfDependCmd,
ieee              875 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c 							  ieee->RfDependCmd,
ieee              882 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c 							  ieee->RfDependCmd,
ieee              900 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c 				CurrentCmd = &ieee->PreCommonCmd[*step];
ieee              903 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c 				CurrentCmd = &ieee->RfDependCmd[*step];
ieee              906 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c 				CurrentCmd = &ieee->PostCommonCmd[*step];
ieee               28 drivers/staging/rtl8192e/rtl8192e/rtl_cam.c 	struct rtllib_device *ieee = priv->rtllib;
ieee               31 drivers/staging/rtl8192e/rtl8192e/rtl_cam.c 	if (((ieee->pairwise_key_type == KEY_TYPE_WEP40) ||
ieee               32 drivers/staging/rtl8192e/rtl8192e/rtl_cam.c 	     (ieee->pairwise_key_type == KEY_TYPE_WEP104)) &&
ieee               36 drivers/staging/rtl8192e/rtl8192e/rtl_cam.c 	} else if ((ieee->iw_mode == IW_MODE_ADHOC) &&
ieee               37 drivers/staging/rtl8192e/rtl8192e/rtl_cam.c 		   (ieee->pairwise_key_type & (KEY_TYPE_CCMP |
ieee               44 drivers/staging/rtl8192e/rtl8192e/rtl_cam.c 	ieee->hwsec_active = 1;
ieee               45 drivers/staging/rtl8192e/rtl8192e/rtl_cam.c 	if ((ieee->pHTInfo->IOTAction&HT_IOT_ACT_PURE_N_MODE) || !hwwep) {
ieee               46 drivers/staging/rtl8192e/rtl8192e/rtl_cam.c 		ieee->hwsec_active = 0;
ieee               51 drivers/staging/rtl8192e/rtl8192e/rtl_cam.c 		 __func__, ieee->hwsec_active, ieee->pairwise_key_type,
ieee               61 drivers/staging/rtl8192e/rtl8192e/rtl_cam.c 	struct rtllib_device *ieee = priv->rtllib;
ieee               71 drivers/staging/rtl8192e/rtl8192e/rtl_cam.c 		ieee->swcamtable[EntryNo].bused = true;
ieee               72 drivers/staging/rtl8192e/rtl8192e/rtl_cam.c 		ieee->swcamtable[EntryNo].key_index = KeyIndex;
ieee               73 drivers/staging/rtl8192e/rtl8192e/rtl_cam.c 		ieee->swcamtable[EntryNo].key_type = KeyType;
ieee               74 drivers/staging/rtl8192e/rtl8192e/rtl_cam.c 		memcpy(ieee->swcamtable[EntryNo].macaddr, MacAddr, 6);
ieee               75 drivers/staging/rtl8192e/rtl8192e/rtl_cam.c 		ieee->swcamtable[EntryNo].useDK = DefaultKey;
ieee               76 drivers/staging/rtl8192e/rtl8192e/rtl_cam.c 		memcpy(ieee->swcamtable[EntryNo].key_buf, (u8 *)KeyContent, 16);
ieee              140 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	struct rtllib_device *ieee = priv->rtllib;
ieee              210 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 				if (ieee->state == RTLLIB_LINKED)
ieee              242 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 					 &ieee->associate_procedure_wq, 0);
ieee              372 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	struct rtllib_device *ieee = priv->rtllib;
ieee              373 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	struct rtllib_network *net = &ieee->current_network;
ieee              375 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	if (ieee->pHTInfo->bCurrentHTSupport)
ieee              376 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		HT_update_self_and_peer_setting(ieee, net);
ieee              377 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	ieee->pHTInfo->bCurrentRT2RTLongSlotTime =
ieee              379 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	ieee->pHTInfo->RT2RT_HT_Mode = net->bssht.RT2RT_HT_Mode;
ieee              648 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	struct rtllib_device *ieee = priv->rtllib;
ieee              650 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	if (ieee->mode == WIRELESS_MODE_N_24G ||
ieee              651 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	    ieee->mode == WIRELESS_MODE_N_5G) {
ieee              652 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		memcpy(ieee->Regdot11HTOperationalRateSet,
ieee              653 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		       ieee->RegHTSuppRateSet, 16);
ieee              654 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		memcpy(ieee->Regdot11TxHTOperationalRateSet,
ieee              655 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		       ieee->RegHTSuppRateSet, 16);
ieee              658 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		memset(ieee->Regdot11HTOperationalRateSet, 0, 16);
ieee             1216 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	struct rtllib_device *ieee = priv->rtllib;
ieee             1263 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		rtllib_stop_scan_syncro(ieee);
ieee             1265 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		if (ieee->state == RTLLIB_LINKED) {
ieee             1266 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			mutex_lock(&ieee->wx_mutex);
ieee             1269 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			del_timer_sync(&ieee->associate_timer);
ieee             1270 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			cancel_delayed_work(&ieee->associate_retry_wq);
ieee             1271 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			rtllib_stop_scan(ieee);
ieee             1273 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			mutex_unlock(&ieee->wx_mutex);
ieee             1302 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		ieee->is_silent_reset = 1;
ieee             1310 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		if (ieee->state == RTLLIB_LINKED && ieee->iw_mode ==
ieee             1312 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			ieee->set_chan(ieee->dev,
ieee             1313 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 				       ieee->current_network.channel);
ieee             1315 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			schedule_work(&ieee->associate_complete_wq);
ieee             1317 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		} else if (ieee->state == RTLLIB_LINKED && ieee->iw_mode ==
ieee             1319 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			ieee->set_chan(ieee->dev,
ieee             1320 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 				       ieee->current_network.channel);
ieee             1321 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			ieee->link_change(ieee->dev);
ieee             1323 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			notify_wx_assoc_event(ieee);
ieee             1325 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			rtllib_start_send_beacons(ieee);
ieee             1327 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			netif_carrier_on(ieee->dev);
ieee             1371 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	struct rtllib_device *ieee = priv->rtllib;
ieee             1395 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		if ((ieee->iw_mode == IW_MODE_INFRA) && (ieee->state ==
ieee             1397 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		     (ieee->eRFPowerState == eRfOn) && !ieee->is_set_key &&
ieee             1398 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		     (!ieee->proto_stoppping) && !ieee->wx_set_enc) {
ieee             1399 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			if ((ieee->PowerSaveControl.ReturnPoint ==
ieee             1401 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			     (!ieee->bNetPromiscuousMode)) {
ieee             1408 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	if ((ieee->state == RTLLIB_LINKED) && (ieee->iw_mode ==
ieee             1409 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	     IW_MODE_INFRA) && (!ieee->bNetPromiscuousMode)) {
ieee             1410 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		if (ieee->LinkDetectInfo.NumRxOkInPeriod > 100 ||
ieee             1411 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		ieee->LinkDetectInfo.NumTxOkInPeriod > 100)
ieee             1415 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		if (ieee->LinkDetectInfo.NumRxOkInPeriod > 4000 ||
ieee             1416 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		    ieee->LinkDetectInfo.NumTxOkInPeriod > 4000) {
ieee             1418 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			if (ieee->LinkDetectInfo.NumRxOkInPeriod > 5000)
ieee             1424 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		if (((ieee->LinkDetectInfo.NumRxUnicastOkInPeriod +
ieee             1425 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		    ieee->LinkDetectInfo.NumTxOkInPeriod) > 8) ||
ieee             1426 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		    (ieee->LinkDetectInfo.NumRxUnicastOkInPeriod > 2))
ieee             1431 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		if (ieee->current_network.beacon_interval < 95)
ieee             1444 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	ieee->LinkDetectInfo.NumRxOkInPeriod = 0;
ieee             1445 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	ieee->LinkDetectInfo.NumTxOkInPeriod = 0;
ieee             1446 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	ieee->LinkDetectInfo.NumRxUnicastOkInPeriod = 0;
ieee             1447 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	ieee->LinkDetectInfo.bBusyTraffic = bBusyTraffic;
ieee             1449 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	ieee->LinkDetectInfo.bHigherBusyTraffic = bHigherBusyTraffic;
ieee             1450 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	ieee->LinkDetectInfo.bHigherBusyRxTraffic = bHigherBusyRxTraffic;
ieee             1452 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	if (ieee->state == RTLLIB_LINKED && ieee->iw_mode == IW_MODE_INFRA) {
ieee             1465 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			if (ieee->eRFPowerState == eRfOff)
ieee             1472 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			ieee->state = RTLLIB_ASSOCIATING;
ieee             1476 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			ieee->is_roaming = true;
ieee             1477 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			ieee->is_set_key = false;
ieee             1478 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			ieee->link_change(dev);
ieee             1479 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			if (ieee->LedControlHandler)
ieee             1480 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 				ieee->LedControlHandler(ieee->dev,
ieee             1483 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			notify_wx_assoc_event(ieee);
ieee             1485 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			if (!(ieee->rtllib_ap_sec_type(ieee) &
ieee             1488 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 					&ieee->associate_procedure_wq, 0);
ieee             1492 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		ieee->LinkDetectInfo.NumRecvBcnInPeriod = 0;
ieee             1493 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		ieee->LinkDetectInfo.NumRecvDataInPeriod = 0;
ieee             1498 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	if ((check_reset_cnt++ >= 3) && (!ieee->is_roaming) &&
ieee             2109 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 	struct rtllib_device *ieee = priv->rtllib;
ieee             2115 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 		while ((!skb_queue_empty(&ieee->skb_waitQ[queue_index])) &&
ieee             2117 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			skb = skb_dequeue(&ieee->skb_waitQ[queue_index]);
ieee             2118 drivers/staging/rtl8192e/rtl8192e/rtl_core.c 			ieee->softmac_data_hard_start_xmit(skb, dev, 0);
ieee             2500 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c 	struct rtllib_device *ieee = priv->rtllib;
ieee             2502 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c 	ieee->softmac_stats.CurrentShowTxate = rtl92e_readb(dev,
ieee             2505 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c 	ieee->softmac_stats.last_packet_rate = rtl92e_readb(dev,
ieee             2508 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c 	ieee->softmac_stats.txretrycount = rtl92e_readl(dev,
ieee               38 drivers/staging/rtl8192e/rtl8192e/rtl_ps.c 	struct rtllib_device *ieee = container_of_dwork_rsl(data,
ieee               40 drivers/staging/rtl8192e/rtl8192e/rtl_ps.c 	struct net_device *dev = ieee->dev;
ieee               66 drivers/staging/rtl8192e/rtl8192e/rtl_ps.c 	struct rtllib_device *ieee = container_of_dwork_rsl(data,
ieee               68 drivers/staging/rtl8192e/rtl8192e/rtl_ps.c 	struct net_device *dev = ieee->dev;
ieee              166 drivers/staging/rtl8192e/rtl8192e/rtl_ps.c 	struct rtllib_device *ieee = container_of_work_rsl(data,
ieee              168 drivers/staging/rtl8192e/rtl8192e/rtl_ps.c 	struct net_device *dev = ieee->dev;
ieee              166 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	struct rtllib_device *ieee = priv->rtllib;
ieee              181 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 		ieee->ps = *extra;
ieee              248 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	struct rtllib_device *ieee = netdev_priv_rsl(dev);
ieee              258 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	    ieee->bNetPromiscuousMode) {
ieee              381 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	struct rtllib_device *ieee = priv->rtllib;
ieee              385 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	if (!(ieee->softmac_features & IEEE_SOFTMAC_SCAN)) {
ieee              386 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 		if ((ieee->state >= RTLLIB_ASSOCIATING) &&
ieee              387 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 		    (ieee->state <= RTLLIB_ASSOCIATING_AUTHENTICATED))
ieee              409 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 			ieee->current_network.ssid_len = req->essid_len;
ieee              410 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 			memcpy(ieee->current_network.ssid, req->essid,
ieee              445 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 			if (ieee->ScanOperationBackupHandler)
ieee              446 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 				ieee->ScanOperationBackupHandler(ieee->dev,
ieee              451 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 			if (ieee->ScanOperationBackupHandler)
ieee              452 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 				ieee->ScanOperationBackupHandler(ieee->dev,
ieee              661 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	struct rtllib_device *ieee = priv->rtllib;
ieee              688 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 		ieee->pairwise_key_type = ieee->group_key_type = KEY_TYPE_NA;
ieee              708 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 			key_idx = ieee->crypt_info.tx_keyidx;
ieee              726 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 			ieee->pairwise_key_type = KEY_TYPE_WEP40;
ieee              731 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 			ieee->pairwise_key_type = KEY_TYPE_WEP104;
ieee              870 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	struct rtllib_device *ieee = priv->rtllib;
ieee              882 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	ret = rtllib_wx_set_encode_ext(ieee, info, wrqu, extra);
ieee              893 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 			ieee->pairwise_key_type = ieee->group_key_type
ieee              907 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 		if ((!group) || (ieee->iw_mode == IW_MODE_ADHOC) ||
ieee              911 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 			ieee->pairwise_key_type = alg;
ieee              916 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 		if ((alg & KEY_TYPE_WEP40) && (ieee->auth_mode != 2)) {
ieee              918 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 				ieee->pairwise_key_type = alg = KEY_TYPE_WEP104;
ieee              922 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 			ieee->group_key_type = alg;
ieee              928 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 			if ((ieee->pairwise_key_type == KEY_TYPE_CCMP) &&
ieee              929 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 			     ieee->pHTInfo->bCurrentHTSupport)
ieee              932 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 				       (u8 *)ieee->ap_mac_addr, 0, key);
ieee              934 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 					 (u8 *)ieee->ap_mac_addr, 0, key, 0);
ieee             1001 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	struct rtllib_device *ieee = priv->rtllib;
ieee             1003 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	if (ieee->wpa_ie_len == 0 || ieee->wpa_ie == NULL) {
ieee             1008 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	if (data->data.length < ieee->wpa_ie_len)
ieee             1011 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	data->data.length = ieee->wpa_ie_len;
ieee             1012 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	memcpy(extra, ieee->wpa_ie, ieee->wpa_ie_len);
ieee             1023 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	struct rtllib_device *ieee = priv->rtllib;
ieee             1039 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 		ieee->IntelPromiscuousModeInfo.bPromiscuousOn =
ieee             1041 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 		ieee->IntelPromiscuousModeInfo.bFilterSourceStationFrame =
ieee             1063 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	struct rtllib_device *ieee = priv->rtllib;
ieee             1068 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 		 ieee->IntelPromiscuousModeInfo.bPromiscuousOn,
ieee             1069 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 		 ieee->IntelPromiscuousModeInfo.bFilterSourceStationFrame);
ieee             1183 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	struct rtllib_device *ieee = priv->rtllib;
ieee             1189 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	if (ieee->state < RTLLIB_LINKED) {
ieee             1197 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	tmp_level = (&ieee->current_network)->stats.rssi;
ieee             1198 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	tmp_qual = (&ieee->current_network)->stats.signal;
ieee             1199 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c 	tmp_noise = (&ieee->current_network)->stats.noise;
ieee               13 drivers/staging/rtl8192e/rtl819x_BAProc.c static void ActivateBAEntry(struct rtllib_device *ieee, struct ba_record *pBA,
ieee               21 drivers/staging/rtl8192e/rtl819x_BAProc.c static void DeActivateBAEntry(struct rtllib_device *ieee, struct ba_record *pBA)
ieee               27 drivers/staging/rtl8192e/rtl819x_BAProc.c static u8 TxTsDeleteBA(struct rtllib_device *ieee, struct tx_ts_record *pTxTs)
ieee               34 drivers/staging/rtl8192e/rtl819x_BAProc.c 		DeActivateBAEntry(ieee, pPendingBa);
ieee               39 drivers/staging/rtl8192e/rtl819x_BAProc.c 		DeActivateBAEntry(ieee, pAdmittedBa);
ieee               45 drivers/staging/rtl8192e/rtl819x_BAProc.c static u8 RxTsDeleteBA(struct rtllib_device *ieee, struct rx_ts_record *pRxTs)
ieee               51 drivers/staging/rtl8192e/rtl819x_BAProc.c 		DeActivateBAEntry(ieee, pBa);
ieee               66 drivers/staging/rtl8192e/rtl819x_BAProc.c static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *Dst,
ieee               73 drivers/staging/rtl8192e/rtl819x_BAProc.c 	u16 len = ieee->tx_headroom + 9;
ieee               75 drivers/staging/rtl8192e/rtl819x_BAProc.c 	netdev_dbg(ieee->dev, "%s(): frame(%d) sentd to: %pM, ieee->dev:%p\n",
ieee               76 drivers/staging/rtl8192e/rtl819x_BAProc.c 		   __func__, type, Dst, ieee->dev);
ieee               79 drivers/staging/rtl8192e/rtl819x_BAProc.c 		netdev_warn(ieee->dev, "pBA is NULL\n");
ieee               88 drivers/staging/rtl8192e/rtl819x_BAProc.c 	skb_reserve(skb, ieee->tx_headroom);
ieee               93 drivers/staging/rtl8192e/rtl819x_BAProc.c 	ether_addr_copy(BAReq->addr2, ieee->dev->dev_addr);
ieee               95 drivers/staging/rtl8192e/rtl819x_BAProc.c 	ether_addr_copy(BAReq->addr3, ieee->current_network.bssid);
ieee              128 drivers/staging/rtl8192e/rtl819x_BAProc.c static struct sk_buff *rtllib_DELBA(struct rtllib_device *ieee, u8 *dst,
ieee              136 drivers/staging/rtl8192e/rtl819x_BAProc.c 	u16 len = 6 + ieee->tx_headroom;
ieee              139 drivers/staging/rtl8192e/rtl819x_BAProc.c 		netdev_dbg(ieee->dev, "%s(): ReasonCode(%d) sentd to: %pM\n",
ieee              151 drivers/staging/rtl8192e/rtl819x_BAProc.c 	skb_reserve(skb, ieee->tx_headroom);
ieee              156 drivers/staging/rtl8192e/rtl819x_BAProc.c 	ether_addr_copy(Delba->addr2, ieee->dev->dev_addr);
ieee              157 drivers/staging/rtl8192e/rtl819x_BAProc.c 	ether_addr_copy(Delba->addr3, ieee->current_network.bssid);
ieee              179 drivers/staging/rtl8192e/rtl819x_BAProc.c static void rtllib_send_ADDBAReq(struct rtllib_device *ieee, u8 *dst,
ieee              184 drivers/staging/rtl8192e/rtl819x_BAProc.c 	skb = rtllib_ADDBA(ieee, dst, pBA, 0, ACT_ADDBAREQ);
ieee              188 drivers/staging/rtl8192e/rtl819x_BAProc.c 		softmac_mgmt_xmit(skb, ieee);
ieee              190 drivers/staging/rtl8192e/rtl819x_BAProc.c 		netdev_dbg(ieee->dev, "Failed to generate ADDBAReq packet.\n");
ieee              194 drivers/staging/rtl8192e/rtl819x_BAProc.c static void rtllib_send_ADDBARsp(struct rtllib_device *ieee, u8 *dst,
ieee              199 drivers/staging/rtl8192e/rtl819x_BAProc.c 	skb = rtllib_ADDBA(ieee, dst, pBA, StatusCode, ACT_ADDBARSP);
ieee              201 drivers/staging/rtl8192e/rtl819x_BAProc.c 		softmac_mgmt_xmit(skb, ieee);
ieee              203 drivers/staging/rtl8192e/rtl819x_BAProc.c 		netdev_dbg(ieee->dev, "Failed to generate ADDBARsp packet.\n");
ieee              206 drivers/staging/rtl8192e/rtl819x_BAProc.c static void rtllib_send_DELBA(struct rtllib_device *ieee, u8 *dst,
ieee              212 drivers/staging/rtl8192e/rtl819x_BAProc.c 	skb = rtllib_DELBA(ieee, dst, pBA, TxRxSelect, ReasonCode);
ieee              214 drivers/staging/rtl8192e/rtl819x_BAProc.c 		softmac_mgmt_xmit(skb, ieee);
ieee              216 drivers/staging/rtl8192e/rtl819x_BAProc.c 		netdev_dbg(ieee->dev, "Failed to generate DELBA packet.\n");
ieee              219 drivers/staging/rtl8192e/rtl819x_BAProc.c int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb)
ieee              231 drivers/staging/rtl8192e/rtl819x_BAProc.c 		netdev_warn(ieee->dev, "Invalid skb len in BAREQ(%d / %d)\n",
ieee              252 drivers/staging/rtl8192e/rtl819x_BAProc.c 	if (!ieee->current_network.qos_data.active ||
ieee              253 drivers/staging/rtl8192e/rtl819x_BAProc.c 	    !ieee->pHTInfo->bCurrentHTSupport ||
ieee              254 drivers/staging/rtl8192e/rtl819x_BAProc.c 	    (ieee->pHTInfo->IOTAction & HT_IOT_ACT_REJECT_ADDBA_REQ)) {
ieee              256 drivers/staging/rtl8192e/rtl819x_BAProc.c 		netdev_warn(ieee->dev,
ieee              258 drivers/staging/rtl8192e/rtl819x_BAProc.c 			    ieee->current_network.qos_data.active,
ieee              259 drivers/staging/rtl8192e/rtl819x_BAProc.c 			    ieee->pHTInfo->bCurrentHTSupport);
ieee              262 drivers/staging/rtl8192e/rtl819x_BAProc.c 	if (!GetTs(ieee, (struct ts_common_info **)(&pTS), dst,
ieee              265 drivers/staging/rtl8192e/rtl819x_BAProc.c 		netdev_warn(ieee->dev, "%s(): can't get TS\n", __func__);
ieee              272 drivers/staging/rtl8192e/rtl819x_BAProc.c 		netdev_warn(ieee->dev, "%s(): BA Policy is not correct\n",
ieee              277 drivers/staging/rtl8192e/rtl819x_BAProc.c 	rtllib_FlushRxTsPendingPkts(ieee, pTS);
ieee              279 drivers/staging/rtl8192e/rtl819x_BAProc.c 	DeActivateBAEntry(ieee, pBA);
ieee              285 drivers/staging/rtl8192e/rtl819x_BAProc.c 	if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev) ||
ieee              286 drivers/staging/rtl8192e/rtl819x_BAProc.c 	   (ieee->pHTInfo->IOTAction & HT_IOT_ACT_ALLOW_PEER_AGG_ONE_PKT))
ieee              291 drivers/staging/rtl8192e/rtl819x_BAProc.c 	ActivateBAEntry(ieee, pBA, 0);
ieee              292 drivers/staging/rtl8192e/rtl819x_BAProc.c 	rtllib_send_ADDBARsp(ieee, dst, pBA, ADDBA_STATUS_SUCCESS);
ieee              304 drivers/staging/rtl8192e/rtl819x_BAProc.c 		rtllib_send_ADDBARsp(ieee, dst, &BA, rc);
ieee              309 drivers/staging/rtl8192e/rtl819x_BAProc.c int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)
ieee              320 drivers/staging/rtl8192e/rtl819x_BAProc.c 		netdev_warn(ieee->dev, "Invalid skb len in BARSP(%d / %d)\n",
ieee              335 drivers/staging/rtl8192e/rtl819x_BAProc.c 	if (!ieee->current_network.qos_data.active ||
ieee              336 drivers/staging/rtl8192e/rtl819x_BAProc.c 	    !ieee->pHTInfo->bCurrentHTSupport ||
ieee              337 drivers/staging/rtl8192e/rtl819x_BAProc.c 	    !ieee->pHTInfo->bCurrentAMPDUEnable) {
ieee              338 drivers/staging/rtl8192e/rtl819x_BAProc.c 		netdev_warn(ieee->dev,
ieee              340 drivers/staging/rtl8192e/rtl819x_BAProc.c 			    ieee->current_network.qos_data.active,
ieee              341 drivers/staging/rtl8192e/rtl819x_BAProc.c 			    ieee->pHTInfo->bCurrentHTSupport,
ieee              342 drivers/staging/rtl8192e/rtl819x_BAProc.c 			    ieee->pHTInfo->bCurrentAMPDUEnable);
ieee              348 drivers/staging/rtl8192e/rtl819x_BAProc.c 	if (!GetTs(ieee, (struct ts_common_info **)(&pTS), dst,
ieee              350 drivers/staging/rtl8192e/rtl819x_BAProc.c 		netdev_warn(ieee->dev, "%s(): can't get TS\n", __func__);
ieee              361 drivers/staging/rtl8192e/rtl819x_BAProc.c 		netdev_dbg(ieee->dev, "%s(): ADDBA response already admitted\n",
ieee              366 drivers/staging/rtl8192e/rtl819x_BAProc.c 		netdev_warn(ieee->dev,
ieee              372 drivers/staging/rtl8192e/rtl819x_BAProc.c 		netdev_dbg(ieee->dev,
ieee              375 drivers/staging/rtl8192e/rtl819x_BAProc.c 		DeActivateBAEntry(ieee, pPendingBA);
ieee              382 drivers/staging/rtl8192e/rtl819x_BAProc.c 			DeActivateBAEntry(ieee, pAdmittedBA);
ieee              392 drivers/staging/rtl8192e/rtl819x_BAProc.c 		DeActivateBAEntry(ieee, pAdmittedBA);
ieee              393 drivers/staging/rtl8192e/rtl819x_BAProc.c 		ActivateBAEntry(ieee, pAdmittedBA, *pBaTimeoutVal);
ieee              408 drivers/staging/rtl8192e/rtl819x_BAProc.c 		rtllib_send_DELBA(ieee, dst, &BA, TX_DIR, ReasonCode);
ieee              413 drivers/staging/rtl8192e/rtl819x_BAProc.c int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb)
ieee              420 drivers/staging/rtl8192e/rtl819x_BAProc.c 		netdev_warn(ieee->dev, "Invalid skb len in DELBA(%d / %d)\n",
ieee              426 drivers/staging/rtl8192e/rtl819x_BAProc.c 	if (!ieee->current_network.qos_data.active ||
ieee              427 drivers/staging/rtl8192e/rtl819x_BAProc.c 		!ieee->pHTInfo->bCurrentHTSupport) {
ieee              428 drivers/staging/rtl8192e/rtl819x_BAProc.c 		netdev_warn(ieee->dev,
ieee              430 drivers/staging/rtl8192e/rtl819x_BAProc.c 			    ieee->current_network. qos_data.active,
ieee              431 drivers/staging/rtl8192e/rtl819x_BAProc.c 			    ieee->pHTInfo->bCurrentHTSupport);
ieee              446 drivers/staging/rtl8192e/rtl819x_BAProc.c 		if (!GetTs(ieee, (struct ts_common_info **)&pRxTs, dst,
ieee              448 drivers/staging/rtl8192e/rtl819x_BAProc.c 			netdev_warn(ieee->dev,
ieee              455 drivers/staging/rtl8192e/rtl819x_BAProc.c 		RxTsDeleteBA(ieee, pRxTs);
ieee              459 drivers/staging/rtl8192e/rtl819x_BAProc.c 		if (!GetTs(ieee, (struct ts_common_info **)&pTxTs, dst,
ieee              461 drivers/staging/rtl8192e/rtl819x_BAProc.c 			netdev_warn(ieee->dev, "%s(): can't get TS for TXTS\n",
ieee              470 drivers/staging/rtl8192e/rtl819x_BAProc.c 		TxTsDeleteBA(ieee, pTxTs);
ieee              475 drivers/staging/rtl8192e/rtl819x_BAProc.c void TsInitAddBA(struct rtllib_device *ieee, struct tx_ts_record *pTS,
ieee              483 drivers/staging/rtl8192e/rtl819x_BAProc.c 	DeActivateBAEntry(ieee, pBA);
ieee              494 drivers/staging/rtl8192e/rtl819x_BAProc.c 	ActivateBAEntry(ieee, pBA, BA_SETUP_TIMEOUT);
ieee              496 drivers/staging/rtl8192e/rtl819x_BAProc.c 	rtllib_send_ADDBAReq(ieee, pTS->TsCommonInfo.Addr, pBA);
ieee              499 drivers/staging/rtl8192e/rtl819x_BAProc.c void TsInitDelBA(struct rtllib_device *ieee,
ieee              507 drivers/staging/rtl8192e/rtl819x_BAProc.c 		if (TxTsDeleteBA(ieee, pTxTs))
ieee              508 drivers/staging/rtl8192e/rtl819x_BAProc.c 			rtllib_send_DELBA(ieee, pTsCommonInfo->Addr,
ieee              516 drivers/staging/rtl8192e/rtl819x_BAProc.c 		if (RxTsDeleteBA(ieee, pRxTs))
ieee              517 drivers/staging/rtl8192e/rtl819x_BAProc.c 			rtllib_send_DELBA(ieee, pTsCommonInfo->Addr,
ieee              537 drivers/staging/rtl8192e/rtl819x_BAProc.c 	struct rtllib_device *ieee = container_of(pTxTs, struct rtllib_device,
ieee              539 drivers/staging/rtl8192e/rtl819x_BAProc.c 	TxTsDeleteBA(ieee, pTxTs);
ieee              540 drivers/staging/rtl8192e/rtl819x_BAProc.c 	rtllib_send_DELBA(ieee, pTxTs->TsCommonInfo.Addr,
ieee              549 drivers/staging/rtl8192e/rtl819x_BAProc.c 	struct rtllib_device *ieee = container_of(pRxTs, struct rtllib_device,
ieee              552 drivers/staging/rtl8192e/rtl819x_BAProc.c 	RxTsDeleteBA(ieee, pRxTs);
ieee              553 drivers/staging/rtl8192e/rtl819x_BAProc.c 	rtllib_send_DELBA(ieee, pRxTs->TsCommonInfo.Addr,
ieee               70 drivers/staging/rtl8192e/rtl819x_HTProc.c void HTUpdateDefaultSetting(struct rtllib_device *ieee)
ieee               72 drivers/staging/rtl8192e/rtl819x_HTProc.c 	struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
ieee               96 drivers/staging/rtl8192e/rtl819x_HTProc.c 	ieee->bTxDisableRateFallBack = 0;
ieee               97 drivers/staging/rtl8192e/rtl819x_HTProc.c 	ieee->bTxUseDriverAssingedRate = 0;
ieee               99 drivers/staging/rtl8192e/rtl819x_HTProc.c 	ieee->bTxEnableFwCalcDur = 1;
ieee              108 drivers/staging/rtl8192e/rtl819x_HTProc.c static u16 HTMcsToDataRate(struct rtllib_device *ieee, u8 nMcsRate)
ieee              110 drivers/staging/rtl8192e/rtl819x_HTProc.c 	struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
ieee              119 drivers/staging/rtl8192e/rtl819x_HTProc.c u16  TxCountToDataRate(struct rtllib_device *ieee, u8 nDataRate)
ieee              144 drivers/staging/rtl8192e/rtl819x_HTProc.c bool IsHTHalfNmodeAPs(struct rtllib_device *ieee)
ieee              147 drivers/staging/rtl8192e/rtl819x_HTProc.c 	struct rtllib_network *net = &ieee->current_network;
ieee              169 drivers/staging/rtl8192e/rtl819x_HTProc.c static void HTIOTPeerDetermine(struct rtllib_device *ieee)
ieee              171 drivers/staging/rtl8192e/rtl819x_HTProc.c 	struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
ieee              172 drivers/staging/rtl8192e/rtl819x_HTProc.c 	struct rtllib_network *net = &ieee->current_network;
ieee              208 drivers/staging/rtl8192e/rtl819x_HTProc.c 	netdev_dbg(ieee->dev, "IOTPEER: %x\n", pHTInfo->IOTPeer);
ieee              211 drivers/staging/rtl8192e/rtl819x_HTProc.c static u8 HTIOTActIsDisableMCS14(struct rtllib_device *ieee, u8 *PeerMacAddr)
ieee              217 drivers/staging/rtl8192e/rtl819x_HTProc.c static bool HTIOTActIsDisableMCS15(struct rtllib_device *ieee)
ieee              222 drivers/staging/rtl8192e/rtl819x_HTProc.c static bool HTIOTActIsDisableMCSTwoSpatialStream(struct rtllib_device *ieee)
ieee              227 drivers/staging/rtl8192e/rtl819x_HTProc.c static u8 HTIOTActIsDisableEDCATurbo(struct rtllib_device *ieee,
ieee              233 drivers/staging/rtl8192e/rtl819x_HTProc.c static u8 HTIOTActIsMgntUseCCK6M(struct rtllib_device *ieee,
ieee              239 drivers/staging/rtl8192e/rtl819x_HTProc.c 	if (ieee->pHTInfo->IOTPeer == HT_IOT_PEER_BROADCOM)
ieee              245 drivers/staging/rtl8192e/rtl819x_HTProc.c static u8 HTIOTActIsCCDFsync(struct rtllib_device *ieee)
ieee              249 drivers/staging/rtl8192e/rtl819x_HTProc.c 	if (ieee->pHTInfo->IOTPeer == HT_IOT_PEER_BROADCOM)
ieee              254 drivers/staging/rtl8192e/rtl819x_HTProc.c static void HTIOTActDetermineRaFunc(struct rtllib_device *ieee, bool bPeerRx2ss)
ieee              256 drivers/staging/rtl8192e/rtl819x_HTProc.c 	struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
ieee              275 drivers/staging/rtl8192e/rtl819x_HTProc.c void HTConstructCapabilityElement(struct rtllib_device *ieee, u8 *posHTCap,
ieee              278 drivers/staging/rtl8192e/rtl819x_HTProc.c 	struct rt_hi_throughput *pHT = ieee->pHTInfo;
ieee              282 drivers/staging/rtl8192e/rtl819x_HTProc.c 		netdev_warn(ieee->dev,
ieee              300 drivers/staging/rtl8192e/rtl819x_HTProc.c 	if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev))
ieee              319 drivers/staging/rtl8192e/rtl819x_HTProc.c 	netdev_dbg(ieee->dev,
ieee              331 drivers/staging/rtl8192e/rtl819x_HTProc.c 	memcpy(pCapELE->MCS, ieee->Regdot11HTOperationalRateSet, 16);
ieee              350 drivers/staging/rtl8192e/rtl819x_HTProc.c 		if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev)) {
ieee              357 drivers/staging/rtl8192e/rtl819x_HTProc.c void HTConstructInfoElement(struct rtllib_device *ieee, u8 *posHTInfo,
ieee              360 drivers/staging/rtl8192e/rtl819x_HTProc.c 	struct rt_hi_throughput *pHT = ieee->pHTInfo;
ieee              364 drivers/staging/rtl8192e/rtl819x_HTProc.c 		netdev_warn(ieee->dev,
ieee              371 drivers/staging/rtl8192e/rtl819x_HTProc.c 	if ((ieee->iw_mode == IW_MODE_ADHOC) ||
ieee              372 drivers/staging/rtl8192e/rtl819x_HTProc.c 	    (ieee->iw_mode == IW_MODE_MASTER)) {
ieee              373 drivers/staging/rtl8192e/rtl819x_HTProc.c 		pHTInfoEle->ControlChl	= ieee->current_network.channel;
ieee              376 drivers/staging/rtl8192e/rtl819x_HTProc.c 					    (ieee->current_network.channel <= 6)
ieee              401 drivers/staging/rtl8192e/rtl819x_HTProc.c void HTConstructRT2RTAggElement(struct rtllib_device *ieee, u8 *posRT2RTAgg,
ieee              405 drivers/staging/rtl8192e/rtl819x_HTProc.c 		netdev_warn(ieee->dev, "%s(): posRT2RTAgg is null\n", __func__);
ieee              417 drivers/staging/rtl8192e/rtl819x_HTProc.c 	if (ieee->bSupportRemoteWakeUp)
ieee              423 drivers/staging/rtl8192e/rtl819x_HTProc.c static u8 HT_PickMCSRate(struct rtllib_device *ieee, u8 *pOperateMCS)
ieee              428 drivers/staging/rtl8192e/rtl819x_HTProc.c 		netdev_warn(ieee->dev, "%s(): pOperateMCS is null\n", __func__);
ieee              432 drivers/staging/rtl8192e/rtl819x_HTProc.c 	switch (ieee->mode) {
ieee              453 drivers/staging/rtl8192e/rtl819x_HTProc.c u8 HTGetHighestMCSRate(struct rtllib_device *ieee, u8 *pMCSRateSet,
ieee              462 drivers/staging/rtl8192e/rtl819x_HTProc.c 		netdev_warn(ieee->dev,
ieee              482 drivers/staging/rtl8192e/rtl819x_HTProc.c 					if (HTMcsToDataRate(ieee, (8*i+j)) >
ieee              483 drivers/staging/rtl8192e/rtl819x_HTProc.c 					    HTMcsToDataRate(ieee, mcsRate))
ieee              493 drivers/staging/rtl8192e/rtl819x_HTProc.c static u8 HTFilterMCSRate(struct rtllib_device *ieee, u8 *pSupportMCS,
ieee              500 drivers/staging/rtl8192e/rtl819x_HTProc.c 		pOperateMCS[i] = ieee->Regdot11TxHTOperationalRateSet[i] &
ieee              503 drivers/staging/rtl8192e/rtl819x_HTProc.c 	HT_PickMCSRate(ieee, pOperateMCS);
ieee              505 drivers/staging/rtl8192e/rtl819x_HTProc.c 	if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev))
ieee              514 drivers/staging/rtl8192e/rtl819x_HTProc.c void HTSetConnectBwMode(struct rtllib_device *ieee,
ieee              518 drivers/staging/rtl8192e/rtl819x_HTProc.c void HTOnAssocRsp(struct rtllib_device *ieee)
ieee              520 drivers/staging/rtl8192e/rtl819x_HTProc.c 	struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
ieee              530 drivers/staging/rtl8192e/rtl819x_HTProc.c 		netdev_warn(ieee->dev, "%s(): HT_DISABLE\n", __func__);
ieee              533 drivers/staging/rtl8192e/rtl819x_HTProc.c 	netdev_dbg(ieee->dev, "%s(): HT_ENABLE\n", __func__);
ieee              551 drivers/staging/rtl8192e/rtl819x_HTProc.c 	HTSetConnectBwMode(ieee, (enum ht_channel_width)(pPeerHTCap->ChlWidth),
ieee              578 drivers/staging/rtl8192e/rtl819x_HTProc.c 	if (ieee->rtllib_ap_sec_type &&
ieee              579 drivers/staging/rtl8192e/rtl819x_HTProc.c 	   (ieee->rtllib_ap_sec_type(ieee)&(SEC_ALG_WEP|SEC_ALG_TKIP))) {
ieee              593 drivers/staging/rtl8192e/rtl819x_HTProc.c 		if (ieee->current_network.bssht.bdRT2RTAggregation) {
ieee              594 drivers/staging/rtl8192e/rtl819x_HTProc.c 			if (ieee->pairwise_key_type != KEY_TYPE_NA)
ieee              621 drivers/staging/rtl8192e/rtl819x_HTProc.c 	HTIOTActDetermineRaFunc(ieee, ((pPeerHTCap->MCS[1]) != 0));
ieee              623 drivers/staging/rtl8192e/rtl819x_HTProc.c 	HTFilterMCSRate(ieee, pPeerHTCap->MCS, ieee->dot11HTOperationalRateSet);
ieee              630 drivers/staging/rtl8192e/rtl819x_HTProc.c 	ieee->HTHighestOperaRate = HTGetHighestMCSRate(ieee,
ieee              631 drivers/staging/rtl8192e/rtl819x_HTProc.c 				   ieee->dot11HTOperationalRateSet, pMcsFilter);
ieee              632 drivers/staging/rtl8192e/rtl819x_HTProc.c 	ieee->HTCurrentOperaRate = ieee->HTHighestOperaRate;
ieee              637 drivers/staging/rtl8192e/rtl819x_HTProc.c void HTInitializeHTInfo(struct rtllib_device *ieee)
ieee              639 drivers/staging/rtl8192e/rtl819x_HTProc.c 	struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
ieee              641 drivers/staging/rtl8192e/rtl819x_HTProc.c 	netdev_vdbg(ieee->dev, "%s()\n", __func__);
ieee              680 drivers/staging/rtl8192e/rtl819x_HTProc.c 		u8 *RegHTSuppRateSets = &(ieee->RegHTSuppRateSet[0]);
ieee              704 drivers/staging/rtl8192e/rtl819x_HTProc.c void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,
ieee              707 drivers/staging/rtl8192e/rtl819x_HTProc.c 	struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
ieee              710 drivers/staging/rtl8192e/rtl819x_HTProc.c 	netdev_vdbg(ieee->dev, "%s()\n", __func__);
ieee              743 drivers/staging/rtl8192e/rtl819x_HTProc.c 		HTIOTPeerDetermine(ieee);
ieee              746 drivers/staging/rtl8192e/rtl819x_HTProc.c 		bIOTAction = HTIOTActIsDisableMCS14(ieee, pNetwork->bssid);
ieee              750 drivers/staging/rtl8192e/rtl819x_HTProc.c 		bIOTAction = HTIOTActIsDisableMCS15(ieee);
ieee              754 drivers/staging/rtl8192e/rtl819x_HTProc.c 		bIOTAction = HTIOTActIsDisableMCSTwoSpatialStream(ieee);
ieee              759 drivers/staging/rtl8192e/rtl819x_HTProc.c 		bIOTAction = HTIOTActIsDisableEDCATurbo(ieee, pNetwork->bssid);
ieee              763 drivers/staging/rtl8192e/rtl819x_HTProc.c 		bIOTAction = HTIOTActIsMgntUseCCK6M(ieee, pNetwork);
ieee              766 drivers/staging/rtl8192e/rtl819x_HTProc.c 		bIOTAction = HTIOTActIsCCDFsync(ieee);
ieee              780 drivers/staging/rtl8192e/rtl819x_HTProc.c void HT_update_self_and_peer_setting(struct rtllib_device *ieee,
ieee              783 drivers/staging/rtl8192e/rtl819x_HTProc.c 	struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
ieee              794 drivers/staging/rtl8192e/rtl819x_HTProc.c void HTUseDefaultSetting(struct rtllib_device *ieee)
ieee              796 drivers/staging/rtl8192e/rtl819x_HTProc.c 	struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
ieee              807 drivers/staging/rtl8192e/rtl819x_HTProc.c 		if (ieee->iw_mode == IW_MODE_ADHOC)
ieee              808 drivers/staging/rtl8192e/rtl819x_HTProc.c 			ieee->current_network.qos_data.active =
ieee              809 drivers/staging/rtl8192e/rtl819x_HTProc.c 				 ieee->current_network.qos_data.supported;
ieee              818 drivers/staging/rtl8192e/rtl819x_HTProc.c 		HTFilterMCSRate(ieee, ieee->Regdot11TxHTOperationalRateSet,
ieee              819 drivers/staging/rtl8192e/rtl819x_HTProc.c 				ieee->dot11HTOperationalRateSet);
ieee              820 drivers/staging/rtl8192e/rtl819x_HTProc.c 		ieee->HTHighestOperaRate = HTGetHighestMCSRate(ieee,
ieee              821 drivers/staging/rtl8192e/rtl819x_HTProc.c 					   ieee->dot11HTOperationalRateSet,
ieee              823 drivers/staging/rtl8192e/rtl819x_HTProc.c 		ieee->HTCurrentOperaRate = ieee->HTHighestOperaRate;
ieee              830 drivers/staging/rtl8192e/rtl819x_HTProc.c u8 HTCCheck(struct rtllib_device *ieee, u8 *pFrame)
ieee              832 drivers/staging/rtl8192e/rtl819x_HTProc.c 	if (ieee->pHTInfo->bCurrentHTSupport) {
ieee              834 drivers/staging/rtl8192e/rtl819x_HTProc.c 			netdev_dbg(ieee->dev, "HT CONTROL FILED EXIST!!\n");
ieee              841 drivers/staging/rtl8192e/rtl819x_HTProc.c static void HTSetConnectBwModeCallback(struct rtllib_device *ieee)
ieee              843 drivers/staging/rtl8192e/rtl819x_HTProc.c 	struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
ieee              845 drivers/staging/rtl8192e/rtl819x_HTProc.c 	netdev_vdbg(ieee->dev, "%s()\n", __func__);
ieee              849 drivers/staging/rtl8192e/rtl819x_HTProc.c 			ieee->set_chan(ieee->dev,
ieee              850 drivers/staging/rtl8192e/rtl819x_HTProc.c 				       ieee->current_network.channel + 2);
ieee              853 drivers/staging/rtl8192e/rtl819x_HTProc.c 			ieee->set_chan(ieee->dev,
ieee              854 drivers/staging/rtl8192e/rtl819x_HTProc.c 				       ieee->current_network.channel - 2);
ieee              856 drivers/staging/rtl8192e/rtl819x_HTProc.c 			ieee->set_chan(ieee->dev,
ieee              857 drivers/staging/rtl8192e/rtl819x_HTProc.c 				       ieee->current_network.channel);
ieee              859 drivers/staging/rtl8192e/rtl819x_HTProc.c 		ieee->SetBWModeHandler(ieee->dev, HT_CHANNEL_WIDTH_20_40,
ieee              862 drivers/staging/rtl8192e/rtl819x_HTProc.c 		ieee->set_chan(ieee->dev, ieee->current_network.channel);
ieee              863 drivers/staging/rtl8192e/rtl819x_HTProc.c 		ieee->SetBWModeHandler(ieee->dev, HT_CHANNEL_WIDTH_20,
ieee              870 drivers/staging/rtl8192e/rtl819x_HTProc.c void HTSetConnectBwMode(struct rtllib_device *ieee,
ieee              874 drivers/staging/rtl8192e/rtl819x_HTProc.c 	struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
ieee              879 drivers/staging/rtl8192e/rtl819x_HTProc.c 	if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev))
ieee              887 drivers/staging/rtl8192e/rtl819x_HTProc.c 		if (ieee->current_network.channel < 2 &&
ieee              903 drivers/staging/rtl8192e/rtl819x_HTProc.c 	netdev_dbg(ieee->dev, "%s():pHTInfo->bCurBW40MHz:%x\n", __func__,
ieee              908 drivers/staging/rtl8192e/rtl819x_HTProc.c 	HTSetConnectBwModeCallback(ieee);
ieee               23 drivers/staging/rtl8192e/rtl819x_TSProc.c 	struct rtllib_device *ieee = container_of(pRxTs, struct rtllib_device,
ieee               32 drivers/staging/rtl8192e/rtl819x_TSProc.c 	spin_lock_irqsave(&(ieee->reorder_spinlock), flags);
ieee               52 drivers/staging/rtl8192e/rtl819x_TSProc.c 				netdev_dbg(ieee->dev,
ieee               55 drivers/staging/rtl8192e/rtl819x_TSProc.c 				ieee->stats_IndicateArray[index] =
ieee               60 drivers/staging/rtl8192e/rtl819x_TSProc.c 					      &ieee->RxReorder_Unused_List);
ieee               72 drivers/staging/rtl8192e/rtl819x_TSProc.c 			netdev_warn(ieee->dev,
ieee               75 drivers/staging/rtl8192e/rtl819x_TSProc.c 			spin_unlock_irqrestore(&(ieee->reorder_spinlock),
ieee               79 drivers/staging/rtl8192e/rtl819x_TSProc.c 		rtllib_indicate_packets(ieee, ieee->stats_IndicateArray, index);
ieee               86 drivers/staging/rtl8192e/rtl819x_TSProc.c 			  msecs_to_jiffies(ieee->pHTInfo->RxReorderPendingTime)
ieee               89 drivers/staging/rtl8192e/rtl819x_TSProc.c 	spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags);
ieee               96 drivers/staging/rtl8192e/rtl819x_TSProc.c 	struct rtllib_device *ieee = container_of(pTxTs, struct rtllib_device,
ieee               99 drivers/staging/rtl8192e/rtl819x_TSProc.c 	TsInitAddBA(ieee, pTxTs, BA_POLICY_IMMEDIATE, false);
ieee              100 drivers/staging/rtl8192e/rtl819x_TSProc.c 	netdev_dbg(ieee->dev, "%s(): ADDBA Req is started\n", __func__);
ieee              132 drivers/staging/rtl8192e/rtl819x_TSProc.c void TSInitialize(struct rtllib_device *ieee)
ieee              134 drivers/staging/rtl8192e/rtl819x_TSProc.c 	struct tx_ts_record *pTxTS  = ieee->TxTsRecord;
ieee              135 drivers/staging/rtl8192e/rtl819x_TSProc.c 	struct rx_ts_record *pRxTS  = ieee->RxTsRecord;
ieee              136 drivers/staging/rtl8192e/rtl819x_TSProc.c 	struct rx_reorder_entry *pRxReorderEntry = ieee->RxReorderEntry;
ieee              139 drivers/staging/rtl8192e/rtl819x_TSProc.c 	netdev_vdbg(ieee->dev, "%s()\n", __func__);
ieee              140 drivers/staging/rtl8192e/rtl819x_TSProc.c 	INIT_LIST_HEAD(&ieee->Tx_TS_Admit_List);
ieee              141 drivers/staging/rtl8192e/rtl819x_TSProc.c 	INIT_LIST_HEAD(&ieee->Tx_TS_Pending_List);
ieee              142 drivers/staging/rtl8192e/rtl819x_TSProc.c 	INIT_LIST_HEAD(&ieee->Tx_TS_Unused_List);
ieee              161 drivers/staging/rtl8192e/rtl819x_TSProc.c 				&ieee->Tx_TS_Unused_List);
ieee              165 drivers/staging/rtl8192e/rtl819x_TSProc.c 	INIT_LIST_HEAD(&ieee->Rx_TS_Admit_List);
ieee              166 drivers/staging/rtl8192e/rtl819x_TSProc.c 	INIT_LIST_HEAD(&ieee->Rx_TS_Pending_List);
ieee              167 drivers/staging/rtl8192e/rtl819x_TSProc.c 	INIT_LIST_HEAD(&ieee->Rx_TS_Unused_List);
ieee              185 drivers/staging/rtl8192e/rtl819x_TSProc.c 			      &ieee->Rx_TS_Unused_List);
ieee              188 drivers/staging/rtl8192e/rtl819x_TSProc.c 	INIT_LIST_HEAD(&ieee->RxReorder_Unused_List);
ieee              191 drivers/staging/rtl8192e/rtl819x_TSProc.c 			      &ieee->RxReorder_Unused_List);
ieee              194 drivers/staging/rtl8192e/rtl819x_TSProc.c 		pRxReorderEntry = &ieee->RxReorderEntry[count+1];
ieee              199 drivers/staging/rtl8192e/rtl819x_TSProc.c static void AdmitTS(struct rtllib_device *ieee,
ieee              210 drivers/staging/rtl8192e/rtl819x_TSProc.c static struct ts_common_info *SearchAdmitTRStream(struct rtllib_device *ieee,
ieee              219 drivers/staging/rtl8192e/rtl819x_TSProc.c 	if (ieee->iw_mode == IW_MODE_MASTER) {
ieee              227 drivers/staging/rtl8192e/rtl819x_TSProc.c 	} else if (ieee->iw_mode == IW_MODE_ADHOC) {
ieee              245 drivers/staging/rtl8192e/rtl819x_TSProc.c 		psearch_list = &ieee->Tx_TS_Admit_List;
ieee              247 drivers/staging/rtl8192e/rtl819x_TSProc.c 		psearch_list = &ieee->Rx_TS_Admit_List;
ieee              291 drivers/staging/rtl8192e/rtl819x_TSProc.c bool GetTs(struct rtllib_device *ieee, struct ts_common_info **ppTS,
ieee              302 drivers/staging/rtl8192e/rtl819x_TSProc.c 		netdev_warn(ieee->dev, "Get TS for Broadcast or Multicast\n");
ieee              305 drivers/staging/rtl8192e/rtl819x_TSProc.c 	if (ieee->current_network.qos_data.supported == 0) {
ieee              326 drivers/staging/rtl8192e/rtl819x_TSProc.c 			netdev_warn(ieee->dev, "%s(): TID(%d) is not valid\n",
ieee              332 drivers/staging/rtl8192e/rtl819x_TSProc.c 	*ppTS = SearchAdmitTRStream(ieee, Addr, UP, TxRxSelect);
ieee              337 drivers/staging/rtl8192e/rtl819x_TSProc.c 		netdev_dbg(ieee->dev, "add new TS failed(tid:%d)\n", UP);
ieee              342 drivers/staging/rtl8192e/rtl819x_TSProc.c 				(&ieee->Tx_TS_Unused_List) :
ieee              343 drivers/staging/rtl8192e/rtl819x_TSProc.c 				(&ieee->Rx_TS_Unused_List);
ieee              346 drivers/staging/rtl8192e/rtl819x_TSProc.c 				(&ieee->Tx_TS_Admit_List) :
ieee              347 drivers/staging/rtl8192e/rtl819x_TSProc.c 				(&ieee->Rx_TS_Admit_List);
ieee              349 drivers/staging/rtl8192e/rtl819x_TSProc.c 	Dir = (ieee->iw_mode == IW_MODE_MASTER) ?
ieee              371 drivers/staging/rtl8192e/rtl819x_TSProc.c 		netdev_dbg(ieee->dev,
ieee              385 drivers/staging/rtl8192e/rtl819x_TSProc.c 		AdmitTS(ieee, *ppTS, 0);
ieee              391 drivers/staging/rtl8192e/rtl819x_TSProc.c 	netdev_warn(ieee->dev,
ieee              397 drivers/staging/rtl8192e/rtl819x_TSProc.c static void RemoveTsEntry(struct rtllib_device *ieee,
ieee              402 drivers/staging/rtl8192e/rtl819x_TSProc.c 	TsInitDelBA(ieee, pTs, TxRxSelect);
ieee              415 drivers/staging/rtl8192e/rtl819x_TSProc.c 			netdev_dbg(ieee->dev,  "%s(): Delete SeqNum %d!\n",
ieee              430 drivers/staging/rtl8192e/rtl819x_TSProc.c 				      &ieee->RxReorder_Unused_List);
ieee              439 drivers/staging/rtl8192e/rtl819x_TSProc.c void RemovePeerTS(struct rtllib_device *ieee, u8 *Addr)
ieee              443 drivers/staging/rtl8192e/rtl819x_TSProc.c 	netdev_info(ieee->dev, "===========>RemovePeerTS, %pM\n", Addr);
ieee              445 drivers/staging/rtl8192e/rtl819x_TSProc.c 	list_for_each_entry_safe(pTS, pTmpTS, &ieee->Tx_TS_Pending_List, List) {
ieee              447 drivers/staging/rtl8192e/rtl819x_TSProc.c 			RemoveTsEntry(ieee, pTS, TX_DIR);
ieee              449 drivers/staging/rtl8192e/rtl819x_TSProc.c 			list_add_tail(&pTS->List, &ieee->Tx_TS_Unused_List);
ieee              453 drivers/staging/rtl8192e/rtl819x_TSProc.c 	list_for_each_entry_safe(pTS, pTmpTS, &ieee->Tx_TS_Admit_List, List) {
ieee              455 drivers/staging/rtl8192e/rtl819x_TSProc.c 			netdev_info(ieee->dev,
ieee              457 drivers/staging/rtl8192e/rtl819x_TSProc.c 			RemoveTsEntry(ieee, pTS, TX_DIR);
ieee              459 drivers/staging/rtl8192e/rtl819x_TSProc.c 			list_add_tail(&pTS->List, &ieee->Tx_TS_Unused_List);
ieee              463 drivers/staging/rtl8192e/rtl819x_TSProc.c 	list_for_each_entry_safe(pTS, pTmpTS, &ieee->Rx_TS_Pending_List, List) {
ieee              465 drivers/staging/rtl8192e/rtl819x_TSProc.c 			RemoveTsEntry(ieee, pTS, RX_DIR);
ieee              467 drivers/staging/rtl8192e/rtl819x_TSProc.c 			list_add_tail(&pTS->List, &ieee->Rx_TS_Unused_List);
ieee              471 drivers/staging/rtl8192e/rtl819x_TSProc.c 	list_for_each_entry_safe(pTS, pTmpTS, &ieee->Rx_TS_Admit_List, List) {
ieee              473 drivers/staging/rtl8192e/rtl819x_TSProc.c 			RemoveTsEntry(ieee, pTS, RX_DIR);
ieee              475 drivers/staging/rtl8192e/rtl819x_TSProc.c 			list_add_tail(&pTS->List, &ieee->Rx_TS_Unused_List);
ieee              481 drivers/staging/rtl8192e/rtl819x_TSProc.c void RemoveAllTS(struct rtllib_device *ieee)
ieee              485 drivers/staging/rtl8192e/rtl819x_TSProc.c 	list_for_each_entry_safe(pTS, pTmpTS, &ieee->Tx_TS_Pending_List, List) {
ieee              486 drivers/staging/rtl8192e/rtl819x_TSProc.c 		RemoveTsEntry(ieee, pTS, TX_DIR);
ieee              488 drivers/staging/rtl8192e/rtl819x_TSProc.c 		list_add_tail(&pTS->List, &ieee->Tx_TS_Unused_List);
ieee              491 drivers/staging/rtl8192e/rtl819x_TSProc.c 	list_for_each_entry_safe(pTS, pTmpTS, &ieee->Tx_TS_Admit_List, List) {
ieee              492 drivers/staging/rtl8192e/rtl819x_TSProc.c 		RemoveTsEntry(ieee, pTS, TX_DIR);
ieee              494 drivers/staging/rtl8192e/rtl819x_TSProc.c 		list_add_tail(&pTS->List, &ieee->Tx_TS_Unused_List);
ieee              497 drivers/staging/rtl8192e/rtl819x_TSProc.c 	list_for_each_entry_safe(pTS, pTmpTS, &ieee->Rx_TS_Pending_List, List) {
ieee              498 drivers/staging/rtl8192e/rtl819x_TSProc.c 		RemoveTsEntry(ieee, pTS, RX_DIR);
ieee              500 drivers/staging/rtl8192e/rtl819x_TSProc.c 		list_add_tail(&pTS->List, &ieee->Rx_TS_Unused_List);
ieee              503 drivers/staging/rtl8192e/rtl819x_TSProc.c 	list_for_each_entry_safe(pTS, pTmpTS, &ieee->Rx_TS_Admit_List, List) {
ieee              504 drivers/staging/rtl8192e/rtl819x_TSProc.c 		RemoveTsEntry(ieee, pTS, RX_DIR);
ieee              506 drivers/staging/rtl8192e/rtl819x_TSProc.c 		list_add_tail(&pTS->List, &ieee->Rx_TS_Unused_List);
ieee              510 drivers/staging/rtl8192e/rtl819x_TSProc.c void TsStartAddBaProcess(struct rtllib_device *ieee, struct tx_ts_record *pTxTS)
ieee              516 drivers/staging/rtl8192e/rtl819x_TSProc.c 			netdev_dbg(ieee->dev, "Start ADDBA after 60 sec!!\n");
ieee              520 drivers/staging/rtl8192e/rtl819x_TSProc.c 			netdev_dbg(ieee->dev, "Immediately Start ADDBA\n");
ieee              524 drivers/staging/rtl8192e/rtl819x_TSProc.c 		netdev_dbg(ieee->dev, "BA timer is already added\n");
ieee             1773 drivers/staging/rtl8192e/rtllib.h 	u8   (*rtllib_ap_sec_type)(struct rtllib_device *ieee);
ieee             1937 drivers/staging/rtl8192e/rtllib.h 	struct rtllib_device *ieee,
ieee             1945 drivers/staging/rtl8192e/rtllib.h int rtllib_rx(struct rtllib_device *ieee, struct sk_buff *skb,
ieee             1947 drivers/staging/rtl8192e/rtllib.h void rtllib_rx_probe_rq(struct rtllib_device *ieee,
ieee             1952 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_get_scan(struct rtllib_device *ieee,
ieee             1955 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_set_encode(struct rtllib_device *ieee,
ieee             1958 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_get_encode(struct rtllib_device *ieee,
ieee             1961 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_set_encode_ext(struct rtllib_device *ieee,
ieee             1964 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_set_auth(struct rtllib_device *ieee,
ieee             1967 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_set_mlme(struct rtllib_device *ieee,
ieee             1970 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_set_gen_ie(struct rtllib_device *ieee, u8 *ie, size_t len);
ieee             1973 drivers/staging/rtl8192e/rtllib.h int rtllib_rx_frame_softmac(struct rtllib_device *ieee, struct sk_buff *skb,
ieee             1976 drivers/staging/rtl8192e/rtllib.h void rtllib_softmac_new_net(struct rtllib_device *ieee,
ieee             1979 drivers/staging/rtl8192e/rtllib.h void SendDisassociation(struct rtllib_device *ieee, bool deauth, u16 asRsn);
ieee             1980 drivers/staging/rtl8192e/rtllib.h void rtllib_softmac_xmit(struct rtllib_txb *txb, struct rtllib_device *ieee);
ieee             1982 drivers/staging/rtl8192e/rtllib.h void rtllib_stop_send_beacons(struct rtllib_device *ieee);
ieee             1983 drivers/staging/rtl8192e/rtllib.h void notify_wx_assoc_event(struct rtllib_device *ieee);
ieee             1984 drivers/staging/rtl8192e/rtllib.h void rtllib_start_ibss(struct rtllib_device *ieee);
ieee             1985 drivers/staging/rtl8192e/rtllib.h void rtllib_softmac_init(struct rtllib_device *ieee);
ieee             1986 drivers/staging/rtl8192e/rtllib.h void rtllib_softmac_free(struct rtllib_device *ieee);
ieee             1987 drivers/staging/rtl8192e/rtllib.h void rtllib_disassociate(struct rtllib_device *ieee);
ieee             1988 drivers/staging/rtl8192e/rtllib.h void rtllib_stop_scan(struct rtllib_device *ieee);
ieee             1989 drivers/staging/rtl8192e/rtllib.h bool rtllib_act_scanning(struct rtllib_device *ieee, bool sync_scan);
ieee             1990 drivers/staging/rtl8192e/rtllib.h void rtllib_stop_scan_syncro(struct rtllib_device *ieee);
ieee             1991 drivers/staging/rtl8192e/rtllib.h void rtllib_start_scan_syncro(struct rtllib_device *ieee, u8 is_mesh);
ieee             1992 drivers/staging/rtl8192e/rtllib.h void rtllib_sta_ps_send_null_frame(struct rtllib_device *ieee, short pwr);
ieee             1993 drivers/staging/rtl8192e/rtllib.h void rtllib_sta_ps_send_pspoll_frame(struct rtllib_device *ieee);
ieee             1994 drivers/staging/rtl8192e/rtllib.h void rtllib_start_protocol(struct rtllib_device *ieee);
ieee             1995 drivers/staging/rtl8192e/rtllib.h void rtllib_stop_protocol(struct rtllib_device *ieee, u8 shutdown);
ieee             2002 drivers/staging/rtl8192e/rtllib.h void rtllib_softmac_stop_protocol(struct rtllib_device *ieee,
ieee             2004 drivers/staging/rtl8192e/rtllib.h void rtllib_softmac_start_protocol(struct rtllib_device *ieee, u8 mesh_flag);
ieee             2006 drivers/staging/rtl8192e/rtllib.h void rtllib_reset_queue(struct rtllib_device *ieee);
ieee             2007 drivers/staging/rtl8192e/rtllib.h void rtllib_wake_all_queues(struct rtllib_device *ieee);
ieee             2008 drivers/staging/rtl8192e/rtllib.h void rtllib_stop_all_queues(struct rtllib_device *ieee);
ieee             2009 drivers/staging/rtl8192e/rtllib.h struct sk_buff *rtllib_get_beacon(struct rtllib_device *ieee);
ieee             2010 drivers/staging/rtl8192e/rtllib.h void rtllib_start_send_beacons(struct rtllib_device *ieee);
ieee             2011 drivers/staging/rtl8192e/rtllib.h void rtllib_stop_send_beacons(struct rtllib_device *ieee);
ieee             2013 drivers/staging/rtl8192e/rtllib.h void notify_wx_assoc_event(struct rtllib_device *ieee);
ieee             2014 drivers/staging/rtl8192e/rtllib.h void rtllib_ps_tx_ack(struct rtllib_device *ieee, short success);
ieee             2016 drivers/staging/rtl8192e/rtllib.h void softmac_mgmt_xmit(struct sk_buff *skb, struct rtllib_device *ieee);
ieee             2017 drivers/staging/rtl8192e/rtllib.h u8 rtllib_ap_sec_type(struct rtllib_device *ieee);
ieee             2021 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_get_wap(struct rtllib_device *ieee, struct iw_request_info *info,
ieee             2024 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_set_wap(struct rtllib_device *ieee, struct iw_request_info *info,
ieee             2027 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_get_essid(struct rtllib_device *ieee, struct iw_request_info *a,
ieee             2030 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_set_rate(struct rtllib_device *ieee, struct iw_request_info *info,
ieee             2033 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_get_rate(struct rtllib_device *ieee, struct iw_request_info *info,
ieee             2036 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_set_mode(struct rtllib_device *ieee, struct iw_request_info *a,
ieee             2039 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_set_scan(struct rtllib_device *ieee, struct iw_request_info *a,
ieee             2042 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_set_essid(struct rtllib_device *ieee, struct iw_request_info *a,
ieee             2045 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_get_mode(struct rtllib_device *ieee, struct iw_request_info *a,
ieee             2048 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_set_freq(struct rtllib_device *ieee, struct iw_request_info *a,
ieee             2051 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_get_freq(struct rtllib_device *ieee, struct iw_request_info *a,
ieee             2055 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_set_rawtx(struct rtllib_device *ieee,
ieee             2059 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_get_name(struct rtllib_device *ieee, struct iw_request_info *info,
ieee             2062 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_set_power(struct rtllib_device *ieee,
ieee             2066 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_get_power(struct rtllib_device *ieee,
ieee             2070 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_set_rts(struct rtllib_device *ieee, struct iw_request_info *info,
ieee             2073 drivers/staging/rtl8192e/rtllib.h int rtllib_wx_get_rts(struct rtllib_device *ieee, struct iw_request_info *info,
ieee             2077 drivers/staging/rtl8192e/rtllib.h void HTSetConnectBwMode(struct rtllib_device *ieee,
ieee             2080 drivers/staging/rtl8192e/rtllib.h void HTUpdateDefaultSetting(struct rtllib_device *ieee);
ieee             2081 drivers/staging/rtl8192e/rtllib.h void HTConstructCapabilityElement(struct rtllib_device *ieee,
ieee             2084 drivers/staging/rtl8192e/rtllib.h void HTConstructInfoElement(struct rtllib_device *ieee,
ieee             2086 drivers/staging/rtl8192e/rtllib.h void HTConstructRT2RTAggElement(struct rtllib_device *ieee,
ieee             2088 drivers/staging/rtl8192e/rtllib.h void HTOnAssocRsp(struct rtllib_device *ieee);
ieee             2089 drivers/staging/rtl8192e/rtllib.h void HTInitializeHTInfo(struct rtllib_device *ieee);
ieee             2091 drivers/staging/rtl8192e/rtllib.h void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,
ieee             2093 drivers/staging/rtl8192e/rtllib.h void HT_update_self_and_peer_setting(struct rtllib_device *ieee,
ieee             2095 drivers/staging/rtl8192e/rtllib.h u8 HTGetHighestMCSRate(struct rtllib_device *ieee, u8 *pMCSRateSet,
ieee             2099 drivers/staging/rtl8192e/rtllib.h u8 HTCCheck(struct rtllib_device *ieee, u8 *pFrame);
ieee             2101 drivers/staging/rtl8192e/rtllib.h bool IsHTHalfNmodeAPs(struct rtllib_device *ieee);
ieee             2102 drivers/staging/rtl8192e/rtllib.h u16  TxCountToDataRate(struct rtllib_device *ieee, u8 nDataRate);
ieee             2103 drivers/staging/rtl8192e/rtllib.h int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb);
ieee             2104 drivers/staging/rtl8192e/rtllib.h int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb);
ieee             2105 drivers/staging/rtl8192e/rtllib.h int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb);
ieee             2106 drivers/staging/rtl8192e/rtllib.h void TsInitAddBA(struct rtllib_device *ieee, struct tx_ts_record *pTS,
ieee             2108 drivers/staging/rtl8192e/rtllib.h void TsInitDelBA(struct rtllib_device *ieee,
ieee             2115 drivers/staging/rtl8192e/rtllib.h bool GetTs(struct rtllib_device *ieee, struct ts_common_info **ppTS, u8 *Addr,
ieee             2117 drivers/staging/rtl8192e/rtllib.h void TSInitialize(struct rtllib_device *ieee);
ieee             2118 drivers/staging/rtl8192e/rtllib.h void TsStartAddBaProcess(struct rtllib_device *ieee,
ieee             2120 drivers/staging/rtl8192e/rtllib.h void RemovePeerTS(struct rtllib_device *ieee, u8 *Addr);
ieee             2121 drivers/staging/rtl8192e/rtllib.h void RemoveAllTS(struct rtllib_device *ieee);
ieee             2145 drivers/staging/rtl8192e/rtllib.h void rtllib_FlushRxTsPendingPkts(struct rtllib_device *ieee,
ieee             2147 drivers/staging/rtl8192e/rtllib.h int rtllib_parse_info_param(struct rtllib_device *ieee,
ieee             2153 drivers/staging/rtl8192e/rtllib.h void rtllib_indicate_packets(struct rtllib_device *ieee,
ieee             2155 drivers/staging/rtl8192e/rtllib.h void HTUseDefaultSetting(struct rtllib_device *ieee);
ieee             2157 drivers/staging/rtl8192e/rtllib.h u8 MgntQuery_TxRateExcludeCCKRates(struct rtllib_device *ieee);
ieee               40 drivers/staging/rtl8192e/rtllib_module.c static inline int rtllib_networks_allocate(struct rtllib_device *ieee)
ieee               42 drivers/staging/rtl8192e/rtllib_module.c 	if (ieee->networks)
ieee               45 drivers/staging/rtl8192e/rtllib_module.c 	ieee->networks = kcalloc(MAX_NETWORK_COUNT,
ieee               47 drivers/staging/rtl8192e/rtllib_module.c 	if (!ieee->networks)
ieee               53 drivers/staging/rtl8192e/rtllib_module.c static inline void rtllib_networks_free(struct rtllib_device *ieee)
ieee               55 drivers/staging/rtl8192e/rtllib_module.c 	if (!ieee->networks)
ieee               57 drivers/staging/rtl8192e/rtllib_module.c 	kfree(ieee->networks);
ieee               58 drivers/staging/rtl8192e/rtllib_module.c 	ieee->networks = NULL;
ieee               61 drivers/staging/rtl8192e/rtllib_module.c static inline void rtllib_networks_initialize(struct rtllib_device *ieee)
ieee               65 drivers/staging/rtl8192e/rtllib_module.c 	INIT_LIST_HEAD(&ieee->network_free_list);
ieee               66 drivers/staging/rtl8192e/rtllib_module.c 	INIT_LIST_HEAD(&ieee->network_list);
ieee               68 drivers/staging/rtl8192e/rtllib_module.c 		list_add_tail(&ieee->networks[i].list,
ieee               69 drivers/staging/rtl8192e/rtllib_module.c 			      &ieee->network_free_list);
ieee               74 drivers/staging/rtl8192e/rtllib_module.c 	struct rtllib_device *ieee = NULL;
ieee               85 drivers/staging/rtl8192e/rtllib_module.c 	ieee = (struct rtllib_device *)netdev_priv_rsl(dev);
ieee               86 drivers/staging/rtl8192e/rtllib_module.c 	ieee->dev = dev;
ieee               88 drivers/staging/rtl8192e/rtllib_module.c 	err = rtllib_networks_allocate(ieee);
ieee               93 drivers/staging/rtl8192e/rtllib_module.c 	rtllib_networks_initialize(ieee);
ieee               96 drivers/staging/rtl8192e/rtllib_module.c 	ieee->fts = DEFAULT_FTS;
ieee               97 drivers/staging/rtl8192e/rtllib_module.c 	ieee->scan_age = DEFAULT_MAX_SCAN_AGE;
ieee               98 drivers/staging/rtl8192e/rtllib_module.c 	ieee->open_wep = 1;
ieee              101 drivers/staging/rtl8192e/rtllib_module.c 	ieee->host_encrypt = 1;
ieee              102 drivers/staging/rtl8192e/rtllib_module.c 	ieee->host_decrypt = 1;
ieee              103 drivers/staging/rtl8192e/rtllib_module.c 	ieee->ieee802_1x = 1; /* Default to supporting 802.1x */
ieee              105 drivers/staging/rtl8192e/rtllib_module.c 	ieee->rtllib_ap_sec_type = rtllib_ap_sec_type;
ieee              107 drivers/staging/rtl8192e/rtllib_module.c 	spin_lock_init(&ieee->lock);
ieee              108 drivers/staging/rtl8192e/rtllib_module.c 	spin_lock_init(&ieee->wpax_suitlist_lock);
ieee              109 drivers/staging/rtl8192e/rtllib_module.c 	spin_lock_init(&ieee->reorder_spinlock);
ieee              110 drivers/staging/rtl8192e/rtllib_module.c 	atomic_set(&(ieee->atm_swbw), 0);
ieee              113 drivers/staging/rtl8192e/rtllib_module.c 	lib80211_crypt_info_init(&ieee->crypt_info, "RTLLIB", &ieee->lock);
ieee              115 drivers/staging/rtl8192e/rtllib_module.c 	ieee->wpa_enabled = 0;
ieee              116 drivers/staging/rtl8192e/rtllib_module.c 	ieee->tkip_countermeasures = 0;
ieee              117 drivers/staging/rtl8192e/rtllib_module.c 	ieee->drop_unencrypted = 0;
ieee              118 drivers/staging/rtl8192e/rtllib_module.c 	ieee->privacy_invoked = 0;
ieee              119 drivers/staging/rtl8192e/rtllib_module.c 	ieee->ieee802_1x = 1;
ieee              120 drivers/staging/rtl8192e/rtllib_module.c 	ieee->raw_tx = 0;
ieee              121 drivers/staging/rtl8192e/rtllib_module.c 	ieee->hwsec_active = 0;
ieee              123 drivers/staging/rtl8192e/rtllib_module.c 	memset(ieee->swcamtable, 0, sizeof(struct sw_cam_table) * 32);
ieee              124 drivers/staging/rtl8192e/rtllib_module.c 	rtllib_softmac_init(ieee);
ieee              126 drivers/staging/rtl8192e/rtllib_module.c 	ieee->pHTInfo = kzalloc(sizeof(struct rt_hi_throughput), GFP_KERNEL);
ieee              127 drivers/staging/rtl8192e/rtllib_module.c 	if (!ieee->pHTInfo)
ieee              130 drivers/staging/rtl8192e/rtllib_module.c 	HTUpdateDefaultSetting(ieee);
ieee              131 drivers/staging/rtl8192e/rtllib_module.c 	HTInitializeHTInfo(ieee);
ieee              132 drivers/staging/rtl8192e/rtllib_module.c 	TSInitialize(ieee);
ieee              134 drivers/staging/rtl8192e/rtllib_module.c 		INIT_LIST_HEAD(&ieee->ibss_mac_hash[i]);
ieee              137 drivers/staging/rtl8192e/rtllib_module.c 		ieee->last_rxseq_num[i] = -1;
ieee              138 drivers/staging/rtl8192e/rtllib_module.c 		ieee->last_rxfrag_num[i] = -1;
ieee              139 drivers/staging/rtl8192e/rtllib_module.c 		ieee->last_packet_time[i] = 0;
ieee              152 drivers/staging/rtl8192e/rtllib_module.c 	struct rtllib_device *ieee = (struct rtllib_device *)
ieee              155 drivers/staging/rtl8192e/rtllib_module.c 	kfree(ieee->pHTInfo);
ieee              156 drivers/staging/rtl8192e/rtllib_module.c 	ieee->pHTInfo = NULL;
ieee              157 drivers/staging/rtl8192e/rtllib_module.c 	rtllib_softmac_free(ieee);
ieee              159 drivers/staging/rtl8192e/rtllib_module.c 	lib80211_crypt_info_free(&ieee->crypt_info);
ieee              161 drivers/staging/rtl8192e/rtllib_module.c 	rtllib_networks_free(ieee);
ieee               39 drivers/staging/rtl8192e/rtllib_rx.c static void rtllib_rx_mgt(struct rtllib_device *ieee, struct sk_buff *skb,
ieee               42 drivers/staging/rtl8192e/rtllib_rx.c static inline void rtllib_monitor_rx(struct rtllib_device *ieee,
ieee               47 drivers/staging/rtl8192e/rtllib_rx.c 	skb->dev = ieee->dev;
ieee               58 drivers/staging/rtl8192e/rtllib_rx.c rtllib_frag_cache_find(struct rtllib_device *ieee, unsigned int seq,
ieee               65 drivers/staging/rtl8192e/rtllib_rx.c 		entry = &ieee->frag_cache[tid][i];
ieee               68 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev,
ieee               87 drivers/staging/rtl8192e/rtllib_rx.c rtllib_frag_cache_get(struct rtllib_device *ieee,
ieee              117 drivers/staging/rtl8192e/rtllib_rx.c 		skb = dev_alloc_skb(ieee->dev->mtu +
ieee              128 drivers/staging/rtl8192e/rtllib_rx.c 		entry = &ieee->frag_cache[tid][ieee->frag_next_idx[tid]];
ieee              129 drivers/staging/rtl8192e/rtllib_rx.c 		ieee->frag_next_idx[tid]++;
ieee              130 drivers/staging/rtl8192e/rtllib_rx.c 		if (ieee->frag_next_idx[tid] >= RTLLIB_FRAG_CACHE_LEN)
ieee              131 drivers/staging/rtl8192e/rtllib_rx.c 			ieee->frag_next_idx[tid] = 0;
ieee              146 drivers/staging/rtl8192e/rtllib_rx.c 		entry = rtllib_frag_cache_find(ieee, seq, frag, tid, hdr->addr2,
ieee              159 drivers/staging/rtl8192e/rtllib_rx.c static int rtllib_frag_cache_invalidate(struct rtllib_device *ieee,
ieee              185 drivers/staging/rtl8192e/rtllib_rx.c 	entry = rtllib_frag_cache_find(ieee, seq, -1, tid, hdr->addr2,
ieee              189 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev,
ieee              206 drivers/staging/rtl8192e/rtllib_rx.c rtllib_rx_frame_mgmt(struct rtllib_device *ieee, struct sk_buff *skb,
ieee              217 drivers/staging/rtl8192e/rtllib_rx.c 	rtllib_rx_mgt(ieee, skb, rx_stats);
ieee              218 drivers/staging/rtl8192e/rtllib_rx.c 	if ((memcmp(hdr->addr1, ieee->dev->dev_addr, ETH_ALEN))) {
ieee              222 drivers/staging/rtl8192e/rtllib_rx.c 	rtllib_rx_frame_softmac(ieee, skb, rx_stats, type, stype);
ieee              242 drivers/staging/rtl8192e/rtllib_rx.c static int rtllib_is_eapol_frame(struct rtllib_device *ieee,
ieee              245 drivers/staging/rtl8192e/rtllib_rx.c 	struct net_device *dev = ieee->dev;
ieee              283 drivers/staging/rtl8192e/rtllib_rx.c rtllib_rx_frame_decrypt(struct rtllib_device *ieee, struct sk_buff *skb,
ieee              292 drivers/staging/rtl8192e/rtllib_rx.c 	if (ieee->hwsec_active) {
ieee              298 drivers/staging/rtl8192e/rtllib_rx.c 		if (ieee->need_sw_enc)
ieee              309 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev, "decryption failed (SA= %pM) res=%d\n",
ieee              312 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev,
ieee              324 drivers/staging/rtl8192e/rtllib_rx.c rtllib_rx_frame_decrypt_msdu(struct rtllib_device *ieee, struct sk_buff *skb,
ieee              332 drivers/staging/rtl8192e/rtllib_rx.c 	if (ieee->hwsec_active) {
ieee              338 drivers/staging/rtl8192e/rtllib_rx.c 		if (ieee->need_sw_enc)
ieee              349 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev,
ieee              361 drivers/staging/rtl8192e/rtllib_rx.c static int is_duplicate_packet(struct rtllib_device *ieee,
ieee              389 drivers/staging/rtl8192e/rtllib_rx.c 	switch (ieee->iw_mode) {
ieee              397 drivers/staging/rtl8192e/rtllib_rx.c 		list_for_each(p, &ieee->ibss_mac_hash[index]) {
ieee              402 drivers/staging/rtl8192e/rtllib_rx.c 		if (p == &ieee->ibss_mac_hash[index]) {
ieee              412 drivers/staging/rtl8192e/rtllib_rx.c 			list_add(&entry->list, &ieee->ibss_mac_hash[index]);
ieee              422 drivers/staging/rtl8192e/rtllib_rx.c 		last_seq = &ieee->last_rxseq_num[tid];
ieee              423 drivers/staging/rtl8192e/rtllib_rx.c 		last_frag = &ieee->last_rxfrag_num[tid];
ieee              424 drivers/staging/rtl8192e/rtllib_rx.c 		last_time = &ieee->last_packet_time[tid];
ieee              474 drivers/staging/rtl8192e/rtllib_rx.c void rtllib_indicate_packets(struct rtllib_device *ieee,
ieee              477 drivers/staging/rtl8192e/rtllib_rx.c 	struct net_device_stats *stats = &ieee->stats;
ieee              518 drivers/staging/rtl8192e/rtllib_rx.c 								   ieee->dev);
ieee              519 drivers/staging/rtl8192e/rtllib_rx.c 				sub_skb->dev = ieee->dev;
ieee              524 drivers/staging/rtl8192e/rtllib_rx.c 				ieee->last_rx_ps_time = jiffies;
ieee              533 drivers/staging/rtl8192e/rtllib_rx.c void rtllib_FlushRxTsPendingPkts(struct rtllib_device *ieee,
ieee              542 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_info(ieee->dev,
ieee              551 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev, "%s(): Indicate SeqNum %d!\n", __func__,
ieee              555 drivers/staging/rtl8192e/rtllib_rx.c 		ieee->RfdArray[RfdCnt] = pRxReorderEntry->prxb;
ieee              559 drivers/staging/rtl8192e/rtllib_rx.c 			      &ieee->RxReorder_Unused_List);
ieee              561 drivers/staging/rtl8192e/rtllib_rx.c 	rtllib_indicate_packets(ieee, ieee->RfdArray, RfdCnt);
ieee              566 drivers/staging/rtl8192e/rtllib_rx.c static void RxReorderIndicatePacket(struct rtllib_device *ieee,
ieee              570 drivers/staging/rtl8192e/rtllib_rx.c 	struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
ieee              578 drivers/staging/rtl8192e/rtllib_rx.c 	netdev_dbg(ieee->dev,
ieee              582 drivers/staging/rtl8192e/rtllib_rx.c 	spin_lock_irqsave(&(ieee->reorder_spinlock), flags);
ieee              591 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev,
ieee              603 drivers/staging/rtl8192e/rtllib_rx.c 		spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags);
ieee              620 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev,
ieee              637 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev,
ieee              640 drivers/staging/rtl8192e/rtllib_rx.c 		ieee->prxbIndicateArray[0] = prxb;
ieee              644 drivers/staging/rtl8192e/rtllib_rx.c 		if (!list_empty(&ieee->RxReorder_Unused_List)) {
ieee              646 drivers/staging/rtl8192e/rtllib_rx.c 					list_entry(ieee->RxReorder_Unused_List.next,
ieee              659 drivers/staging/rtl8192e/rtllib_rx.c 				netdev_dbg(ieee->dev,
ieee              664 drivers/staging/rtl8192e/rtllib_rx.c 					      &ieee->RxReorder_Unused_List);
ieee              671 drivers/staging/rtl8192e/rtllib_rx.c 				netdev_dbg(ieee->dev,
ieee              681 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_err(ieee->dev,
ieee              697 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev, "%s(): start RREORDER indicate\n",
ieee              708 drivers/staging/rtl8192e/rtllib_rx.c 				netdev_err(ieee->dev,
ieee              721 drivers/staging/rtl8192e/rtllib_rx.c 			ieee->prxbIndicateArray[index] = pReorderEntry->prxb;
ieee              722 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev, "%s(): Indicate SeqNum %d!\n",
ieee              727 drivers/staging/rtl8192e/rtllib_rx.c 				      &ieee->RxReorder_Unused_List);
ieee              743 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_err(ieee->dev,
ieee              746 drivers/staging/rtl8192e/rtllib_rx.c 			spin_unlock_irqrestore(&(ieee->reorder_spinlock),
ieee              750 drivers/staging/rtl8192e/rtllib_rx.c 		rtllib_indicate_packets(ieee, ieee->prxbIndicateArray, index);
ieee              755 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev, "%s(): SET rx timeout timer\n", __func__);
ieee              760 drivers/staging/rtl8192e/rtllib_rx.c 	spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags);
ieee              763 drivers/staging/rtl8192e/rtllib_rx.c static u8 parse_subframe(struct rtllib_device *ieee, struct sk_buff *skb,
ieee              794 drivers/staging/rtl8192e/rtllib_rx.c 	ieee->bIsAggregateFrame = bIsAggregateFrame;
ieee              812 drivers/staging/rtl8192e/rtllib_rx.c 		sub_skb->dev = ieee->dev;
ieee              818 drivers/staging/rtl8192e/rtllib_rx.c 		rxb->subframes[0]->dev = ieee->dev;
ieee              832 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_info(ieee->dev,
ieee              835 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_info(ieee->dev,
ieee              838 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_info(ieee->dev,
ieee              841 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_info(ieee->dev,
ieee              865 drivers/staging/rtl8192e/rtllib_rx.c 		sub_skb->dev = ieee->dev;
ieee              868 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev,
ieee              891 drivers/staging/rtl8192e/rtllib_rx.c static size_t rtllib_rx_get_hdrlen(struct rtllib_device *ieee,
ieee              900 drivers/staging/rtl8192e/rtllib_rx.c 	if (HTCCheck(ieee, skb->data)) {
ieee              902 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_info(ieee->dev, "%s: find HTCControl!\n",
ieee              914 drivers/staging/rtl8192e/rtllib_rx.c static int rtllib_rx_check_duplicate(struct rtllib_device *ieee,
ieee              927 drivers/staging/rtl8192e/rtllib_rx.c 	if ((ieee->pHTInfo->bCurRxReorderEnable == false) ||
ieee              928 drivers/staging/rtl8192e/rtllib_rx.c 		!ieee->current_network.qos_data.active ||
ieee              933 drivers/staging/rtl8192e/rtllib_rx.c 			if (is_duplicate_packet(ieee, hdr))
ieee              939 drivers/staging/rtl8192e/rtllib_rx.c 		if (GetTs(ieee, (struct ts_common_info **) &pRxTS, hdr->addr2,
ieee              947 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_warn(ieee->dev, "%s(): No TS! Skip the check!\n",
ieee              956 drivers/staging/rtl8192e/rtllib_rx.c static void rtllib_rx_extract_addr(struct rtllib_device *ieee,
ieee              976 drivers/staging/rtl8192e/rtllib_rx.c 		ether_addr_copy(bssid, ieee->current_network.bssid);
ieee              986 drivers/staging/rtl8192e/rtllib_rx.c static int rtllib_rx_data_filter(struct rtllib_device *ieee, u16 fc,
ieee              996 drivers/staging/rtl8192e/rtllib_rx.c 	    !ether_addr_equal(ieee->current_network.bssid, bssid) &&
ieee              997 drivers/staging/rtl8192e/rtllib_rx.c 	    !is_zero_ether_addr(ieee->current_network.bssid)) {
ieee             1002 drivers/staging/rtl8192e/rtllib_rx.c 	if (ieee->IntelPromiscuousModeInfo.bPromiscuousOn  &&
ieee             1003 drivers/staging/rtl8192e/rtllib_rx.c 		ieee->IntelPromiscuousModeInfo.bFilterSourceStationFrame) {
ieee             1005 drivers/staging/rtl8192e/rtllib_rx.c 		    !ether_addr_equal(dst, ieee->current_network.bssid) &&
ieee             1006 drivers/staging/rtl8192e/rtllib_rx.c 		    ether_addr_equal(bssid, ieee->current_network.bssid)) {
ieee             1014 drivers/staging/rtl8192e/rtllib_rx.c 	if (!ieee->IntelPromiscuousModeInfo.bPromiscuousOn) {
ieee             1021 drivers/staging/rtl8192e/rtllib_rx.c 				netdev_dbg(ieee->dev,
ieee             1028 drivers/staging/rtl8192e/rtllib_rx.c 	if (ieee->iw_mode != IW_MODE_MESH) {
ieee             1030 drivers/staging/rtl8192e/rtllib_rx.c 		if (!memcmp(src, ieee->dev->dev_addr, ETH_ALEN))
ieee             1035 drivers/staging/rtl8192e/rtllib_rx.c 			if (memcmp(bssid, ieee->current_network.bssid,
ieee             1043 drivers/staging/rtl8192e/rtllib_rx.c static int rtllib_rx_get_crypt(struct rtllib_device *ieee, struct sk_buff *skb,
ieee             1050 drivers/staging/rtl8192e/rtllib_rx.c 	if (ieee->host_decrypt) {
ieee             1054 drivers/staging/rtl8192e/rtllib_rx.c 		*crypt = ieee->crypt_info.crypt[idx];
ieee             1068 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev,
ieee             1078 drivers/staging/rtl8192e/rtllib_rx.c static int rtllib_rx_decrypt(struct rtllib_device *ieee, struct sk_buff *skb,
ieee             1093 drivers/staging/rtl8192e/rtllib_rx.c 		ieee->need_sw_enc = 1;
ieee             1095 drivers/staging/rtl8192e/rtllib_rx.c 		ieee->need_sw_enc = 0;
ieee             1097 drivers/staging/rtl8192e/rtllib_rx.c 	keyidx = rtllib_rx_frame_decrypt(ieee, skb, crypt);
ieee             1098 drivers/staging/rtl8192e/rtllib_rx.c 	if (ieee->host_decrypt && (fc & RTLLIB_FCTL_WEP) && (keyidx < 0)) {
ieee             1099 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_info(ieee->dev, "%s: decrypt frame error\n", __func__);
ieee             1106 drivers/staging/rtl8192e/rtllib_rx.c 		struct sk_buff *frag_skb = rtllib_frag_cache_get(ieee, hdr);
ieee             1108 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev, "Rx Fragment received (%u)\n", frag);
ieee             1111 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev,
ieee             1122 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_warn(ieee->dev,
ieee             1125 drivers/staging/rtl8192e/rtllib_rx.c 			rtllib_frag_cache_invalidate(ieee, hdr);
ieee             1156 drivers/staging/rtl8192e/rtllib_rx.c 		rtllib_frag_cache_invalidate(ieee, hdr);
ieee             1162 drivers/staging/rtl8192e/rtllib_rx.c 	if (ieee->host_decrypt && (fc & RTLLIB_FCTL_WEP) &&
ieee             1163 drivers/staging/rtl8192e/rtllib_rx.c 		rtllib_rx_frame_decrypt_msdu(ieee, skb, keyidx, crypt)) {
ieee             1164 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_info(ieee->dev, "%s: ==>decrypt msdu error\n", __func__);
ieee             1169 drivers/staging/rtl8192e/rtllib_rx.c 	if (crypt && !(fc & RTLLIB_FCTL_WEP) && !ieee->open_wep) {
ieee             1171 drivers/staging/rtl8192e/rtllib_rx.c 		    rtllib_is_eapol_frame(ieee, skb, hdrlen)) {
ieee             1178 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev,
ieee             1182 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev,
ieee             1190 drivers/staging/rtl8192e/rtllib_rx.c 	    rtllib_is_eapol_frame(ieee, skb, hdrlen)) {
ieee             1193 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev, "RX: IEEE 802.1X EAPOL frame: %s\n",
ieee             1197 drivers/staging/rtl8192e/rtllib_rx.c 	if (crypt && !(fc & RTLLIB_FCTL_WEP) && !ieee->open_wep &&
ieee             1198 drivers/staging/rtl8192e/rtllib_rx.c 	    !rtllib_is_eapol_frame(ieee, skb, hdrlen)) {
ieee             1199 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev,
ieee             1208 drivers/staging/rtl8192e/rtllib_rx.c static void rtllib_rx_check_leave_lps(struct rtllib_device *ieee, u8 unicast,
ieee             1213 drivers/staging/rtl8192e/rtllib_rx.c 		if (ieee->state == RTLLIB_LINKED) {
ieee             1214 drivers/staging/rtl8192e/rtllib_rx.c 			if (((ieee->LinkDetectInfo.NumRxUnicastOkInPeriod +
ieee             1215 drivers/staging/rtl8192e/rtllib_rx.c 			    ieee->LinkDetectInfo.NumTxOkInPeriod) > 8) ||
ieee             1216 drivers/staging/rtl8192e/rtllib_rx.c 			    (ieee->LinkDetectInfo.NumRxUnicastOkInPeriod > 2)) {
ieee             1217 drivers/staging/rtl8192e/rtllib_rx.c 				if (ieee->LeisurePSLeave)
ieee             1218 drivers/staging/rtl8192e/rtllib_rx.c 					ieee->LeisurePSLeave(ieee->dev);
ieee             1222 drivers/staging/rtl8192e/rtllib_rx.c 	ieee->last_rx_ps_time = jiffies;
ieee             1225 drivers/staging/rtl8192e/rtllib_rx.c static void rtllib_rx_indicate_pkt_legacy(struct rtllib_device *ieee,
ieee             1231 drivers/staging/rtl8192e/rtllib_rx.c 	struct net_device *dev = ieee->dev;
ieee             1273 drivers/staging/rtl8192e/rtllib_rx.c 			ieee->stats.rx_packets++;
ieee             1274 drivers/staging/rtl8192e/rtllib_rx.c 			ieee->stats.rx_bytes += sub_skb->len;
ieee             1277 drivers/staging/rtl8192e/rtllib_rx.c 				ieee->stats.multicast++;
ieee             1293 drivers/staging/rtl8192e/rtllib_rx.c static int rtllib_rx_InfraAdhoc(struct rtllib_device *ieee, struct sk_buff *skb,
ieee             1296 drivers/staging/rtl8192e/rtllib_rx.c 	struct net_device *dev = ieee->dev;
ieee             1320 drivers/staging/rtl8192e/rtllib_rx.c 		if (ieee->bNetPromiscuousMode)
ieee             1327 drivers/staging/rtl8192e/rtllib_rx.c 	hdrlen = rtllib_rx_get_hdrlen(ieee, skb, rx_stats);
ieee             1336 drivers/staging/rtl8192e/rtllib_rx.c 	ret = rtllib_rx_check_duplicate(ieee, skb, multicast);
ieee             1348 drivers/staging/rtl8192e/rtllib_rx.c 		if (rtllib_rx_frame_mgmt(ieee, skb, rx_stats, type, stype))
ieee             1358 drivers/staging/rtl8192e/rtllib_rx.c 		ieee->LinkDetectInfo.NumRecvDataInPeriod++;
ieee             1359 drivers/staging/rtl8192e/rtllib_rx.c 		ieee->LinkDetectInfo.NumRxOkInPeriod++;
ieee             1363 drivers/staging/rtl8192e/rtllib_rx.c 	rtllib_rx_extract_addr(ieee, hdr, dst, src, bssid);
ieee             1366 drivers/staging/rtl8192e/rtllib_rx.c 	ret = rtllib_rx_data_filter(ieee, fc, dst, src, bssid, hdr->addr2);
ieee             1374 drivers/staging/rtl8192e/rtllib_rx.c 	if ((ieee->iw_mode == IW_MODE_INFRA)  &&
ieee             1375 drivers/staging/rtl8192e/rtllib_rx.c 	    (ieee->sta_sleep == LPS_IS_SLEEP) &&
ieee             1376 drivers/staging/rtl8192e/rtllib_rx.c 	    (ieee->polling) && (!bToOtherSTA)) {
ieee             1381 drivers/staging/rtl8192e/rtllib_rx.c 			rtllib_sta_ps_send_pspoll_frame(ieee);
ieee             1383 drivers/staging/rtl8192e/rtllib_rx.c 			ieee->polling =  false;
ieee             1388 drivers/staging/rtl8192e/rtllib_rx.c 	ret = rtllib_rx_get_crypt(ieee, skb, &crypt, hdrlen);
ieee             1393 drivers/staging/rtl8192e/rtllib_rx.c 	ret = rtllib_rx_decrypt(ieee, skb, rx_stats, crypt, hdrlen);
ieee             1401 drivers/staging/rtl8192e/rtllib_rx.c 	if (ieee->current_network.qos_data.active && IsQoSDataFrame(skb->data)
ieee             1406 drivers/staging/rtl8192e/rtllib_rx.c 		GetTs(ieee, (struct ts_common_info **) &pTS, hdr->addr2, TID,
ieee             1409 drivers/staging/rtl8192e/rtllib_rx.c 			ieee->bis_any_nonbepkts = true;
ieee             1420 drivers/staging/rtl8192e/rtllib_rx.c 	if (parse_subframe(ieee, skb, rx_stats, rxb, src, dst) == 0) {
ieee             1435 drivers/staging/rtl8192e/rtllib_rx.c 		if (ieee->bIsAggregateFrame)
ieee             1440 drivers/staging/rtl8192e/rtllib_rx.c 			ieee->LinkDetectInfo.NumRxUnicastOkInPeriod += nr_subframes;
ieee             1441 drivers/staging/rtl8192e/rtllib_rx.c 		rtllib_rx_check_leave_lps(ieee, unicast, nr_subframes);
ieee             1445 drivers/staging/rtl8192e/rtllib_rx.c 	if (ieee->pHTInfo->bCurRxReorderEnable == false || pTS == NULL ||
ieee             1447 drivers/staging/rtl8192e/rtllib_rx.c 		rtllib_rx_indicate_pkt_legacy(ieee, rx_stats, rxb, dst, src);
ieee             1449 drivers/staging/rtl8192e/rtllib_rx.c 		RxReorderIndicatePacket(ieee, rxb, pTS, SeqNum);
ieee             1457 drivers/staging/rtl8192e/rtllib_rx.c 	ieee->stats.rx_dropped++;
ieee             1466 drivers/staging/rtl8192e/rtllib_rx.c static int rtllib_rx_Master(struct rtllib_device *ieee, struct sk_buff *skb,
ieee             1472 drivers/staging/rtl8192e/rtllib_rx.c static int rtllib_rx_Monitor(struct rtllib_device *ieee, struct sk_buff *skb,
ieee             1480 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_info(ieee->dev,
ieee             1486 drivers/staging/rtl8192e/rtllib_rx.c 	if (HTCCheck(ieee, skb->data)) {
ieee             1488 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_info(ieee->dev, "%s: Find HTCControl!\n",
ieee             1493 drivers/staging/rtl8192e/rtllib_rx.c 	rtllib_monitor_rx(ieee, skb, rx_stats, hdrlen);
ieee             1494 drivers/staging/rtl8192e/rtllib_rx.c 	ieee->stats.rx_packets++;
ieee             1495 drivers/staging/rtl8192e/rtllib_rx.c 	ieee->stats.rx_bytes += skb->len;
ieee             1500 drivers/staging/rtl8192e/rtllib_rx.c static int rtllib_rx_Mesh(struct rtllib_device *ieee, struct sk_buff *skb,
ieee             1510 drivers/staging/rtl8192e/rtllib_rx.c int rtllib_rx(struct rtllib_device *ieee, struct sk_buff *skb,
ieee             1515 drivers/staging/rtl8192e/rtllib_rx.c 	if (!ieee || !skb || !rx_stats) {
ieee             1520 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_info(ieee->dev, "%s: SKB length < 10\n", __func__);
ieee             1524 drivers/staging/rtl8192e/rtllib_rx.c 	switch (ieee->iw_mode) {
ieee             1527 drivers/staging/rtl8192e/rtllib_rx.c 		ret = rtllib_rx_InfraAdhoc(ieee, skb, rx_stats);
ieee             1531 drivers/staging/rtl8192e/rtllib_rx.c 		ret = rtllib_rx_Master(ieee, skb, rx_stats);
ieee             1534 drivers/staging/rtl8192e/rtllib_rx.c 		ret = rtllib_rx_Monitor(ieee, skb, rx_stats);
ieee             1537 drivers/staging/rtl8192e/rtllib_rx.c 		ret = rtllib_rx_Mesh(ieee, skb, rx_stats);
ieee             1540 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_info(ieee->dev, "%s: ERR iw mode!!!\n", __func__);
ieee             1547 drivers/staging/rtl8192e/rtllib_rx.c 	if (ieee)
ieee             1548 drivers/staging/rtl8192e/rtllib_rx.c 		ieee->stats.rx_dropped++;
ieee             1693 drivers/staging/rtl8192e/rtllib_rx.c static int rtllib_parse_qos_info_param_IE(struct rtllib_device *ieee,
ieee             1721 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev, "QoS is supported\n");
ieee             1788 drivers/staging/rtl8192e/rtllib_rx.c 	struct rtllib_device *ieee,
ieee             1793 drivers/staging/rtl8192e/rtllib_rx.c 	if (IS_DOT11D_ENABLE(ieee)) {
ieee             1799 drivers/staging/rtl8192e/rtllib_rx.c 			if (!IS_COUNTRY_IE_VALID(ieee)) {
ieee             1800 drivers/staging/rtl8192e/rtllib_rx.c 				if (rtllib_act_scanning(ieee, false) &&
ieee             1801 drivers/staging/rtl8192e/rtllib_rx.c 				    ieee->FirstIe_InScan)
ieee             1802 drivers/staging/rtl8192e/rtllib_rx.c 					netdev_info(ieee->dev,
ieee             1805 drivers/staging/rtl8192e/rtllib_rx.c 				dot11d_update_country(ieee, addr2,
ieee             1811 drivers/staging/rtl8192e/rtllib_rx.c 		if (IS_EQUAL_CIE_SRC(ieee, addr2))
ieee             1812 drivers/staging/rtl8192e/rtllib_rx.c 			UPDATE_CIE_WATCHDOG(ieee);
ieee             1816 drivers/staging/rtl8192e/rtllib_rx.c static void rtllib_parse_mife_generic(struct rtllib_device *ieee,
ieee             1825 drivers/staging/rtl8192e/rtllib_rx.c 	if (!rtllib_parse_qos_info_param_IE(ieee, info_element, network))
ieee             2009 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev, "MFIE_TYPE_WZC: %d bytes\n",
ieee             2043 drivers/staging/rtl8192e/rtllib_rx.c int rtllib_parse_info_param(struct rtllib_device *ieee,
ieee             2058 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev,
ieee             2085 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev, "MFIE_TYPE_SSID: '%s' len=%d.\n",
ieee             2113 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev, "MFIE_TYPE_RATES: '%s' (%d)\n",
ieee             2136 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev, "MFIE_TYPE_RATES_EX: '%s' (%d)\n",
ieee             2141 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev, "MFIE_TYPE_DS_SET: %d\n",
ieee             2147 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev, "MFIE_TYPE_FH_SET: ignored\n");
ieee             2151 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev, "MFIE_TYPE_CF_SET: ignored\n");
ieee             2162 drivers/staging/rtl8192e/rtllib_rx.c 			if (ieee->state != RTLLIB_LINKED)
ieee             2175 drivers/staging/rtl8192e/rtllib_rx.c 			if (ieee->assoc_id < 8*offset ||
ieee             2176 drivers/staging/rtl8192e/rtllib_rx.c 			    ieee->assoc_id > 8*(offset + info_element->len - 3))
ieee             2179 drivers/staging/rtl8192e/rtllib_rx.c 			offset = (ieee->assoc_id / 8) - offset;
ieee             2181 drivers/staging/rtl8192e/rtllib_rx.c 			   (1 << (ieee->assoc_id % 8)))
ieee             2190 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev, "MFIE_TYPE_ERP_SET: %d\n",
ieee             2195 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev, "MFIE_TYPE_IBSS_SET: %d\n",
ieee             2200 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev, "MFIE_TYPE_CHALLENGE: ignored\n");
ieee             2204 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev, "MFIE_TYPE_GENERIC: %d bytes\n",
ieee             2207 drivers/staging/rtl8192e/rtllib_rx.c 			rtllib_parse_mife_generic(ieee, info_element, network,
ieee             2213 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev, "MFIE_TYPE_RSN: %d bytes\n",
ieee             2222 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev, "MFIE_TYPE_HT_CAP: %d bytes\n",
ieee             2231 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev, "MFIE_TYPE_HT_INFO: %d bytes\n",
ieee             2248 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev, "MFIE_TYPE_AIRONET: %d bytes\n",
ieee             2266 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_err(ieee->dev,
ieee             2271 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev, "MFIE_TYPE_COUNTRY: %d bytes\n",
ieee             2273 drivers/staging/rtl8192e/rtllib_rx.c 			rtllib_extract_country_ie(ieee, info_element, network,
ieee             2278 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev,
ieee             2311 drivers/staging/rtl8192e/rtllib_rx.c 	struct rtllib_device *ieee,
ieee             2360 drivers/staging/rtl8192e/rtllib_rx.c 	if (rtllib_parse_info_param(ieee,
ieee             2378 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev, "Filtered out '%s (%pM)' network.\n",
ieee             2420 drivers/staging/rtl8192e/rtllib_rx.c static inline void update_network(struct rtllib_device *ieee,
ieee             2495 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev,
ieee             2499 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev,
ieee             2562 drivers/staging/rtl8192e/rtllib_rx.c 	struct rtllib_device *ieee,
ieee             2578 drivers/staging/rtl8192e/rtllib_rx.c 	netdev_dbg(ieee->dev,
ieee             2599 drivers/staging/rtl8192e/rtllib_rx.c 	if (rtllib_network_init(ieee, beacon, network, stats)) {
ieee             2600 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev, "Dropped '%s' ( %pM) via %s.\n",
ieee             2608 drivers/staging/rtl8192e/rtllib_rx.c 	if (!rtllib_legal_channel(ieee, network->channel))
ieee             2612 drivers/staging/rtl8192e/rtllib_rx.c 		if (IsPassiveChannel(ieee, network->channel)) {
ieee             2613 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_info(ieee->dev,
ieee             2632 drivers/staging/rtl8192e/rtllib_rx.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             2633 drivers/staging/rtl8192e/rtllib_rx.c 	if (is_same_network(&ieee->current_network, network,
ieee             2635 drivers/staging/rtl8192e/rtllib_rx.c 		update_network(ieee, &ieee->current_network, network);
ieee             2636 drivers/staging/rtl8192e/rtllib_rx.c 		if ((ieee->current_network.mode == IEEE_N_24G ||
ieee             2637 drivers/staging/rtl8192e/rtllib_rx.c 		     ieee->current_network.mode == IEEE_G) &&
ieee             2638 drivers/staging/rtl8192e/rtllib_rx.c 		    ieee->current_network.berp_info_valid) {
ieee             2639 drivers/staging/rtl8192e/rtllib_rx.c 			if (ieee->current_network.erp_value & ERP_UseProtection)
ieee             2640 drivers/staging/rtl8192e/rtllib_rx.c 				ieee->current_network.buseprotection = true;
ieee             2642 drivers/staging/rtl8192e/rtllib_rx.c 				ieee->current_network.buseprotection = false;
ieee             2645 drivers/staging/rtl8192e/rtllib_rx.c 			if (ieee->state >= RTLLIB_LINKED)
ieee             2646 drivers/staging/rtl8192e/rtllib_rx.c 				ieee->LinkDetectInfo.NumRecvBcnInPeriod++;
ieee             2649 drivers/staging/rtl8192e/rtllib_rx.c 	list_for_each_entry(target, &ieee->network_list, list) {
ieee             2661 drivers/staging/rtl8192e/rtllib_rx.c 	if (&target->list == &ieee->network_list) {
ieee             2662 drivers/staging/rtl8192e/rtllib_rx.c 		if (list_empty(&ieee->network_free_list)) {
ieee             2666 drivers/staging/rtl8192e/rtllib_rx.c 			netdev_dbg(ieee->dev,
ieee             2672 drivers/staging/rtl8192e/rtllib_rx.c 			target = list_entry(ieee->network_free_list.next,
ieee             2674 drivers/staging/rtl8192e/rtllib_rx.c 			list_del(ieee->network_free_list.next);
ieee             2677 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev, "Adding '%s' ( %pM) via %s.\n",
ieee             2683 drivers/staging/rtl8192e/rtllib_rx.c 		list_add_tail(&target->list, &ieee->network_list);
ieee             2684 drivers/staging/rtl8192e/rtllib_rx.c 		if (ieee->softmac_features & IEEE_SOFTMAC_ASSOCIATE)
ieee             2685 drivers/staging/rtl8192e/rtllib_rx.c 			rtllib_softmac_new_net(ieee, network);
ieee             2687 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev, "Updating '%s' ( %pM) via %s.\n",
ieee             2696 drivers/staging/rtl8192e/rtllib_rx.c 		renew = !time_after(target->last_scanned + ieee->scan_age,
ieee             2700 drivers/staging/rtl8192e/rtllib_rx.c 		    || ((ieee->current_network.ssid_len == network->ssid_len) &&
ieee             2701 drivers/staging/rtl8192e/rtllib_rx.c 		    (strncmp(ieee->current_network.ssid, network->ssid,
ieee             2703 drivers/staging/rtl8192e/rtllib_rx.c 		    (ieee->state == RTLLIB_NOLINK))))
ieee             2705 drivers/staging/rtl8192e/rtllib_rx.c 		update_network(ieee, target, network);
ieee             2706 drivers/staging/rtl8192e/rtllib_rx.c 		if (renew && (ieee->softmac_features & IEEE_SOFTMAC_ASSOCIATE))
ieee             2707 drivers/staging/rtl8192e/rtllib_rx.c 			rtllib_softmac_new_net(ieee, network);
ieee             2710 drivers/staging/rtl8192e/rtllib_rx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             2712 drivers/staging/rtl8192e/rtllib_rx.c 	    is_same_network(&ieee->current_network, network,
ieee             2714 drivers/staging/rtl8192e/rtllib_rx.c 	    (ieee->state == RTLLIB_LINKED)) {
ieee             2715 drivers/staging/rtl8192e/rtllib_rx.c 		if (ieee->handle_beacon != NULL)
ieee             2716 drivers/staging/rtl8192e/rtllib_rx.c 			ieee->handle_beacon(ieee->dev, beacon,
ieee             2717 drivers/staging/rtl8192e/rtllib_rx.c 					    &ieee->current_network);
ieee             2723 drivers/staging/rtl8192e/rtllib_rx.c static void rtllib_rx_mgt(struct rtllib_device *ieee,
ieee             2733 drivers/staging/rtl8192e/rtllib_rx.c 		ieee->last_rx_ps_time = jiffies;
ieee             2738 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev, "received BEACON (%d)\n",
ieee             2741 drivers/staging/rtl8192e/rtllib_rx.c 				ieee, (struct rtllib_probe_response *)header,
ieee             2744 drivers/staging/rtl8192e/rtllib_rx.c 		if (ieee->sta_sleep || (ieee->ps != RTLLIB_PS_DISABLED &&
ieee             2745 drivers/staging/rtl8192e/rtllib_rx.c 		    ieee->iw_mode == IW_MODE_INFRA &&
ieee             2746 drivers/staging/rtl8192e/rtllib_rx.c 		    ieee->state == RTLLIB_LINKED))
ieee             2747 drivers/staging/rtl8192e/rtllib_rx.c 			tasklet_schedule(&ieee->ps_task);
ieee             2752 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev, "received PROBE RESPONSE (%d)\n",
ieee             2754 drivers/staging/rtl8192e/rtllib_rx.c 		rtllib_process_probe_response(ieee,
ieee             2758 drivers/staging/rtl8192e/rtllib_rx.c 		netdev_dbg(ieee->dev, "received PROBE RESQUEST (%d)\n",
ieee             2760 drivers/staging/rtl8192e/rtllib_rx.c 		if ((ieee->softmac_features & IEEE_SOFTMAC_PROBERS) &&
ieee             2761 drivers/staging/rtl8192e/rtllib_rx.c 		    ((ieee->iw_mode == IW_MODE_ADHOC ||
ieee             2762 drivers/staging/rtl8192e/rtllib_rx.c 		    ieee->iw_mode == IW_MODE_MASTER) &&
ieee             2763 drivers/staging/rtl8192e/rtllib_rx.c 		    ieee->state == RTLLIB_LINKED))
ieee             2764 drivers/staging/rtl8192e/rtllib_rx.c 			rtllib_rx_probe_rq(ieee, skb);
ieee               23 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_sta_wakeup(struct rtllib_device *ieee, short nl);
ieee               35 drivers/staging/rtl8192e/rtllib_softmac.c static unsigned int rtllib_MFIE_rate_len(struct rtllib_device *ieee)
ieee               39 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->modulation & RTLLIB_CCK_MODULATION)
ieee               42 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->modulation & RTLLIB_OFDM_MODULATION)
ieee               53 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_MFIE_Brate(struct rtllib_device *ieee, u8 **tag_p)
ieee               57 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->modulation & RTLLIB_CCK_MODULATION) {
ieee               72 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_MFIE_Grate(struct rtllib_device *ieee, u8 **tag_p)
ieee               76 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->modulation & RTLLIB_OFDM_MODULATION) {
ieee               94 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_WMM_Info(struct rtllib_device *ieee, u8 **tag_p)
ieee              110 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_TURBO_Info(struct rtllib_device *ieee, u8 **tag_p)
ieee              125 drivers/staging/rtl8192e/rtllib_softmac.c 	netdev_alert(ieee->dev, "This is enable turbo mode IE process\n");
ieee              128 drivers/staging/rtl8192e/rtllib_softmac.c static void enqueue_mgmt(struct rtllib_device *ieee, struct sk_buff *skb)
ieee              132 drivers/staging/rtl8192e/rtllib_softmac.c 	nh = (ieee->mgmt_queue_head + 1) % MGMT_QUEUE_NUM;
ieee              140 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->mgmt_queue_head = nh;
ieee              141 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->mgmt_queue_ring[nh] = skb;
ieee              145 drivers/staging/rtl8192e/rtllib_softmac.c static void init_mgmt_queue(struct rtllib_device *ieee)
ieee              147 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->mgmt_queue_tail = ieee->mgmt_queue_head = 0;
ieee              152 drivers/staging/rtl8192e/rtllib_softmac.c MgntQuery_TxRateExcludeCCKRates(struct rtllib_device *ieee)
ieee              159 drivers/staging/rtl8192e/rtllib_softmac.c 	for (i = 0; i < ieee->current_network.rates_len; i++) {
ieee              160 drivers/staging/rtl8192e/rtllib_softmac.c 		BasicRate = ieee->current_network.rates[i]&0x7F;
ieee              173 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_info(ieee->dev, "No BasicRate found!!\n");
ieee              178 drivers/staging/rtl8192e/rtllib_softmac.c static u8 MgntQuery_MgntFrameTxRate(struct rtllib_device *ieee)
ieee              180 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
ieee              186 drivers/staging/rtl8192e/rtllib_softmac.c 		rate = ieee->basic_rate & 0x7f;
ieee              189 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->mode == IEEE_A ||
ieee              190 drivers/staging/rtl8192e/rtllib_softmac.c 		   ieee->mode == IEEE_N_5G ||
ieee              191 drivers/staging/rtl8192e/rtllib_softmac.c 		   (ieee->mode == IEEE_N_24G && !pHTInfo->bCurSuppCCK))
ieee              200 drivers/staging/rtl8192e/rtllib_softmac.c inline void softmac_mgmt_xmit(struct sk_buff *skb, struct rtllib_device *ieee)
ieee              203 drivers/staging/rtl8192e/rtllib_softmac.c 	short single = ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE;
ieee              209 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee              212 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_sta_wakeup(ieee, 0);
ieee              219 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->disable_mgnt_queue)
ieee              222 drivers/staging/rtl8192e/rtllib_softmac.c 	tcb_desc->data_rate = MgntQuery_MgntFrameTxRate(ieee);
ieee              227 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->queue_stop) {
ieee              228 drivers/staging/rtl8192e/rtllib_softmac.c 			enqueue_mgmt(ieee, skb);
ieee              230 drivers/staging/rtl8192e/rtllib_softmac.c 			header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0]<<4);
ieee              232 drivers/staging/rtl8192e/rtllib_softmac.c 			if (ieee->seq_ctrl[0] == 0xFFF)
ieee              233 drivers/staging/rtl8192e/rtllib_softmac.c 				ieee->seq_ctrl[0] = 0;
ieee              235 drivers/staging/rtl8192e/rtllib_softmac.c 				ieee->seq_ctrl[0]++;
ieee              238 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->softmac_data_hard_start_xmit(skb, ieee->dev,
ieee              239 drivers/staging/rtl8192e/rtllib_softmac.c 							   ieee->basic_rate);
ieee              242 drivers/staging/rtl8192e/rtllib_softmac.c 		spin_unlock_irqrestore(&ieee->lock, flags);
ieee              244 drivers/staging/rtl8192e/rtllib_softmac.c 		spin_unlock_irqrestore(&ieee->lock, flags);
ieee              245 drivers/staging/rtl8192e/rtllib_softmac.c 		spin_lock_irqsave(&ieee->mgmt_tx_lock, flags);
ieee              247 drivers/staging/rtl8192e/rtllib_softmac.c 		header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
ieee              249 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->seq_ctrl[0] == 0xFFF)
ieee              250 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->seq_ctrl[0] = 0;
ieee              252 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->seq_ctrl[0]++;
ieee              255 drivers/staging/rtl8192e/rtllib_softmac.c 		if (!ieee->check_nic_enough_desc(ieee->dev,
ieee              257 drivers/staging/rtl8192e/rtllib_softmac.c 		    skb_queue_len(&ieee->skb_waitQ[tcb_desc->queue_index]) ||
ieee              258 drivers/staging/rtl8192e/rtllib_softmac.c 		    ieee->queue_stop) {
ieee              264 drivers/staging/rtl8192e/rtllib_softmac.c 			netdev_info(ieee->dev,
ieee              267 drivers/staging/rtl8192e/rtllib_softmac.c 			skb_queue_tail(&ieee->skb_waitQ[tcb_desc->queue_index],
ieee              270 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->softmac_hard_start_xmit(skb, ieee->dev);
ieee              272 drivers/staging/rtl8192e/rtllib_softmac.c 		spin_unlock_irqrestore(&ieee->mgmt_tx_lock, flags);
ieee              278 drivers/staging/rtl8192e/rtllib_softmac.c 		     struct rtllib_device *ieee)
ieee              280 drivers/staging/rtl8192e/rtllib_softmac.c 	short single = ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE;
ieee              296 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->disable_mgnt_queue)
ieee              300 drivers/staging/rtl8192e/rtllib_softmac.c 	tcb_desc->data_rate = MgntQuery_MgntFrameTxRate(ieee);
ieee              306 drivers/staging/rtl8192e/rtllib_softmac.c 			header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
ieee              308 drivers/staging/rtl8192e/rtllib_softmac.c 			if (ieee->seq_ctrl[0] == 0xFFF)
ieee              309 drivers/staging/rtl8192e/rtllib_softmac.c 				ieee->seq_ctrl[0] = 0;
ieee              311 drivers/staging/rtl8192e/rtllib_softmac.c 				ieee->seq_ctrl[0]++;
ieee              315 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->softmac_data_hard_start_xmit(skb, ieee->dev,
ieee              316 drivers/staging/rtl8192e/rtllib_softmac.c 						   ieee->basic_rate);
ieee              320 drivers/staging/rtl8192e/rtllib_softmac.c 			header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
ieee              322 drivers/staging/rtl8192e/rtllib_softmac.c 			if (ieee->seq_ctrl[0] == 0xFFF)
ieee              323 drivers/staging/rtl8192e/rtllib_softmac.c 				ieee->seq_ctrl[0] = 0;
ieee              325 drivers/staging/rtl8192e/rtllib_softmac.c 				ieee->seq_ctrl[0]++;
ieee              327 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->softmac_hard_start_xmit(skb, ieee->dev);
ieee              332 drivers/staging/rtl8192e/rtllib_softmac.c static inline struct sk_buff *rtllib_probe_req(struct rtllib_device *ieee)
ieee              339 drivers/staging/rtl8192e/rtllib_softmac.c 	len = ieee->current_network.ssid_len;
ieee              341 drivers/staging/rtl8192e/rtllib_softmac.c 	rate_len = rtllib_MFIE_rate_len(ieee);
ieee              344 drivers/staging/rtl8192e/rtllib_softmac.c 			    2 + len + rate_len + ieee->tx_headroom);
ieee              349 drivers/staging/rtl8192e/rtllib_softmac.c 	skb_reserve(skb, ieee->tx_headroom);
ieee              356 drivers/staging/rtl8192e/rtllib_softmac.c 	ether_addr_copy(req->header.addr2, ieee->dev->dev_addr);
ieee              363 drivers/staging/rtl8192e/rtllib_softmac.c 	memcpy(tag, ieee->current_network.ssid, len);
ieee              366 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_MFIE_Brate(ieee, &tag);
ieee              367 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_MFIE_Grate(ieee, &tag);
ieee              372 drivers/staging/rtl8192e/rtllib_softmac.c static struct sk_buff *rtllib_get_beacon_(struct rtllib_device *ieee);
ieee              374 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_send_beacon(struct rtllib_device *ieee)
ieee              378 drivers/staging/rtl8192e/rtllib_softmac.c 	if (!ieee->ieee_up)
ieee              380 drivers/staging/rtl8192e/rtllib_softmac.c 	skb = rtllib_get_beacon_(ieee);
ieee              383 drivers/staging/rtl8192e/rtllib_softmac.c 		softmac_mgmt_xmit(skb, ieee);
ieee              384 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->softmac_stats.tx_beacons++;
ieee              387 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->beacon_txing && ieee->ieee_up)
ieee              388 drivers/staging/rtl8192e/rtllib_softmac.c 		mod_timer(&ieee->beacon_timer, jiffies +
ieee              389 drivers/staging/rtl8192e/rtllib_softmac.c 			  (msecs_to_jiffies(ieee->current_network.beacon_interval - 5)));
ieee              395 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rtllib_device *ieee =
ieee              396 drivers/staging/rtl8192e/rtllib_softmac.c 		from_timer(ieee, t, beacon_timer);
ieee              399 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_lock_irqsave(&ieee->beacon_lock, flags);
ieee              400 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_send_beacon(ieee);
ieee              401 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_unlock_irqrestore(&ieee->beacon_lock, flags);
ieee              408 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rtllib_device *ieee = netdev_priv_rsl(dev);
ieee              412 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->AllowAllDestAddrHandler(dev, true, !bInitState);
ieee              422 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rtllib_device *ieee = netdev_priv_rsl(dev);
ieee              426 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->AllowAllDestAddrHandler(dev, false, !bInitState);
ieee              441 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rtllib_device *ieee = netdev_priv_rsl(dev);
ieee              445 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->AllowAllDestAddrHandler(dev, true, !bInitState);
ieee              446 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->SetHwRegHandler(dev, HW_VAR_CECHK_BSSID,
ieee              449 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->bNetPromiscuousMode = true;
ieee              462 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rtllib_device *ieee = netdev_priv_rsl(dev);
ieee              466 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->AllowAllDestAddrHandler(dev, false, !bInitState);
ieee              467 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->SetHwRegHandler(dev, HW_VAR_CECHK_BSSID,
ieee              470 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->bNetPromiscuousMode = false;
ieee              474 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_send_probe(struct rtllib_device *ieee, u8 is_mesh)
ieee              478 drivers/staging/rtl8192e/rtllib_softmac.c 	skb = rtllib_probe_req(ieee);
ieee              480 drivers/staging/rtl8192e/rtllib_softmac.c 		softmac_mgmt_xmit(skb, ieee);
ieee              481 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->softmac_stats.tx_probe_rq++;
ieee              486 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_send_probe_requests(struct rtllib_device *ieee, u8 is_mesh)
ieee              488 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->active_scan && (ieee->softmac_features &
ieee              490 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_send_probe(ieee, 0);
ieee              491 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_send_probe(ieee, 0);
ieee              495 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_update_active_chan_map(struct rtllib_device *ieee)
ieee              497 drivers/staging/rtl8192e/rtllib_softmac.c 	memcpy(ieee->active_channel_map, GET_DOT11D_INFO(ieee)->channel_map,
ieee              504 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_softmac_scan_syncro(struct rtllib_device *ieee, u8 is_mesh)
ieee              509 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_update_active_chan_map(ieee);
ieee              511 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->be_scan_inprogress = true;
ieee              513 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_lock(&ieee->scan_mutex);
ieee              520 drivers/staging/rtl8192e/rtllib_softmac.c 		} while (!ieee->active_channel_map[ch]);
ieee              541 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->state == RTLLIB_LINKED)
ieee              543 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->sync_scan_hurryup) {
ieee              544 drivers/staging/rtl8192e/rtllib_softmac.c 			netdev_info(ieee->dev,
ieee              549 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->set_chan(ieee->dev, ch);
ieee              550 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->active_channel_map[ch] == 1)
ieee              551 drivers/staging/rtl8192e/rtllib_softmac.c 			rtllib_send_probe_requests(ieee, 0);
ieee              559 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->actscanning = false;
ieee              560 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->sync_scan_hurryup = 0;
ieee              562 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->state >= RTLLIB_LINKED) {
ieee              563 drivers/staging/rtl8192e/rtllib_softmac.c 		if (IS_DOT11D_ENABLE(ieee))
ieee              564 drivers/staging/rtl8192e/rtllib_softmac.c 			dot11d_scan_complete(ieee);
ieee              566 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_unlock(&ieee->scan_mutex);
ieee              568 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->be_scan_inprogress = false;
ieee              571 drivers/staging/rtl8192e/rtllib_softmac.c 	wireless_send_event(ieee->dev, SIOCGIWSCAN, &wrqu, NULL);
ieee              576 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rtllib_device *ieee = container_of_dwork_rsl(data,
ieee              578 drivers/staging/rtl8192e/rtllib_softmac.c 	u8 last_channel = ieee->current_network.channel;
ieee              580 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_update_active_chan_map(ieee);
ieee              582 drivers/staging/rtl8192e/rtllib_softmac.c 	if (!ieee->ieee_up)
ieee              584 drivers/staging/rtl8192e/rtllib_softmac.c 	if (rtllib_act_scanning(ieee, true))
ieee              587 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_lock(&ieee->scan_mutex);
ieee              589 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->eRFPowerState == eRfOff) {
ieee              590 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_info(ieee->dev,
ieee              597 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->current_network.channel =
ieee              598 drivers/staging/rtl8192e/rtllib_softmac.c 			(ieee->current_network.channel + 1) %
ieee              600 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->scan_watch_dog++ > MAX_CHANNEL_NUMBER) {
ieee              601 drivers/staging/rtl8192e/rtllib_softmac.c 			if (!ieee->active_channel_map[ieee->current_network.channel])
ieee              602 drivers/staging/rtl8192e/rtllib_softmac.c 				ieee->current_network.channel = 6;
ieee              605 drivers/staging/rtl8192e/rtllib_softmac.c 	} while (!ieee->active_channel_map[ieee->current_network.channel]);
ieee              607 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->scanning_continue == 0)
ieee              610 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->set_chan(ieee->dev, ieee->current_network.channel);
ieee              612 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->active_channel_map[ieee->current_network.channel] == 1)
ieee              613 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_send_probe_requests(ieee, 0);
ieee              615 drivers/staging/rtl8192e/rtllib_softmac.c 	schedule_delayed_work(&ieee->softmac_scan_wq,
ieee              618 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_unlock(&ieee->scan_mutex);
ieee              622 drivers/staging/rtl8192e/rtllib_softmac.c 	if (IS_DOT11D_ENABLE(ieee))
ieee              623 drivers/staging/rtl8192e/rtllib_softmac.c 		dot11d_scan_complete(ieee);
ieee              624 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->current_network.channel = last_channel;
ieee              627 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->actscanning = false;
ieee              628 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->scan_watch_dog = 0;
ieee              629 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->scanning_continue = 0;
ieee              630 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_unlock(&ieee->scan_mutex);
ieee              635 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_beacons_start(struct rtllib_device *ieee)
ieee              639 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_lock_irqsave(&ieee->beacon_lock, flags);
ieee              641 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->beacon_txing = 1;
ieee              642 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_send_beacon(ieee);
ieee              644 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_unlock_irqrestore(&ieee->beacon_lock, flags);
ieee              647 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_beacons_stop(struct rtllib_device *ieee)
ieee              651 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_lock_irqsave(&ieee->beacon_lock, flags);
ieee              653 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->beacon_txing = 0;
ieee              654 drivers/staging/rtl8192e/rtllib_softmac.c 	del_timer_sync(&ieee->beacon_timer);
ieee              656 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_unlock_irqrestore(&ieee->beacon_lock, flags);
ieee              661 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_stop_send_beacons(struct rtllib_device *ieee)
ieee              663 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->stop_send_beacons)
ieee              664 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->stop_send_beacons(ieee->dev);
ieee              665 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->softmac_features & IEEE_SOFTMAC_BEACONS)
ieee              666 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_beacons_stop(ieee);
ieee              671 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_start_send_beacons(struct rtllib_device *ieee)
ieee              673 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->start_send_beacons)
ieee              674 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->start_send_beacons(ieee->dev);
ieee              675 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->softmac_features & IEEE_SOFTMAC_BEACONS)
ieee              676 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_beacons_start(ieee);
ieee              681 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_softmac_stop_scan(struct rtllib_device *ieee)
ieee              683 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_lock(&ieee->scan_mutex);
ieee              684 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->scan_watch_dog = 0;
ieee              685 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->scanning_continue == 1) {
ieee              686 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->scanning_continue = 0;
ieee              687 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->actscanning = false;
ieee              689 drivers/staging/rtl8192e/rtllib_softmac.c 		cancel_delayed_work_sync(&ieee->softmac_scan_wq);
ieee              692 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_unlock(&ieee->scan_mutex);
ieee              695 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_stop_scan(struct rtllib_device *ieee)
ieee              697 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->softmac_features & IEEE_SOFTMAC_SCAN) {
ieee              698 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_softmac_stop_scan(ieee);
ieee              700 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->rtllib_stop_hw_scan)
ieee              701 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->rtllib_stop_hw_scan(ieee->dev);
ieee              706 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_stop_scan_syncro(struct rtllib_device *ieee)
ieee              708 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->softmac_features & IEEE_SOFTMAC_SCAN) {
ieee              709 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->sync_scan_hurryup = 1;
ieee              711 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->rtllib_stop_hw_scan)
ieee              712 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->rtllib_stop_hw_scan(ieee->dev);
ieee              717 drivers/staging/rtl8192e/rtllib_softmac.c bool rtllib_act_scanning(struct rtllib_device *ieee, bool sync_scan)
ieee              719 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->softmac_features & IEEE_SOFTMAC_SCAN) {
ieee              721 drivers/staging/rtl8192e/rtllib_softmac.c 			return ieee->be_scan_inprogress;
ieee              723 drivers/staging/rtl8192e/rtllib_softmac.c 			return ieee->actscanning || ieee->be_scan_inprogress;
ieee              725 drivers/staging/rtl8192e/rtllib_softmac.c 		return test_bit(STATUS_SCANNING, &ieee->status);
ieee              731 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_start_scan(struct rtllib_device *ieee)
ieee              734 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->rtllib_ips_leave_wq != NULL)
ieee              735 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->rtllib_ips_leave_wq(ieee->dev);
ieee              737 drivers/staging/rtl8192e/rtllib_softmac.c 	if (IS_DOT11D_ENABLE(ieee)) {
ieee              738 drivers/staging/rtl8192e/rtllib_softmac.c 		if (IS_COUNTRY_IE_VALID(ieee))
ieee              739 drivers/staging/rtl8192e/rtllib_softmac.c 			RESET_CIE_WATCHDOG(ieee);
ieee              741 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->softmac_features & IEEE_SOFTMAC_SCAN) {
ieee              742 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->scanning_continue == 0) {
ieee              743 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->actscanning = true;
ieee              744 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->scanning_continue = 1;
ieee              745 drivers/staging/rtl8192e/rtllib_softmac.c 			schedule_delayed_work(&ieee->softmac_scan_wq, 0);
ieee              748 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->rtllib_start_hw_scan)
ieee              749 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->rtllib_start_hw_scan(ieee->dev);
ieee              754 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_start_scan_syncro(struct rtllib_device *ieee, u8 is_mesh)
ieee              756 drivers/staging/rtl8192e/rtllib_softmac.c 	if (IS_DOT11D_ENABLE(ieee)) {
ieee              757 drivers/staging/rtl8192e/rtllib_softmac.c 		if (IS_COUNTRY_IE_VALID(ieee))
ieee              758 drivers/staging/rtl8192e/rtllib_softmac.c 			RESET_CIE_WATCHDOG(ieee);
ieee              760 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->sync_scan_hurryup = 0;
ieee              761 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->softmac_features & IEEE_SOFTMAC_SCAN) {
ieee              762 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_softmac_scan_syncro(ieee, is_mesh);
ieee              764 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->rtllib_start_hw_scan)
ieee              765 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->rtllib_start_hw_scan(ieee->dev);
ieee              772 drivers/staging/rtl8192e/rtllib_softmac.c 			  struct rtllib_device *ieee,
ieee              780 drivers/staging/rtl8192e/rtllib_softmac.c 		     ieee->tx_headroom + 4;
ieee              786 drivers/staging/rtl8192e/rtllib_softmac.c 	skb_reserve(skb, ieee->tx_headroom);
ieee              796 drivers/staging/rtl8192e/rtllib_softmac.c 	ether_addr_copy(auth->header.addr2, ieee->dev->dev_addr);
ieee              798 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->auth_mode == 0)
ieee              800 drivers/staging/rtl8192e/rtllib_softmac.c 	else if (ieee->auth_mode == 1)
ieee              802 drivers/staging/rtl8192e/rtllib_softmac.c 	else if (ieee->auth_mode == 2)
ieee              804 drivers/staging/rtl8192e/rtllib_softmac.c 	auth->transaction = cpu_to_le16(ieee->associate_seq);
ieee              805 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->associate_seq++;
ieee              812 drivers/staging/rtl8192e/rtllib_softmac.c static struct sk_buff *rtllib_probe_resp(struct rtllib_device *ieee,
ieee              823 drivers/staging/rtl8192e/rtllib_softmac.c 	char *ssid = ieee->current_network.ssid;
ieee              824 drivers/staging/rtl8192e/rtllib_softmac.c 	int ssid_len = ieee->current_network.ssid_len;
ieee              825 drivers/staging/rtl8192e/rtllib_softmac.c 	int rate_len = ieee->current_network.rates_len+2;
ieee              826 drivers/staging/rtl8192e/rtllib_softmac.c 	int rate_ex_len = ieee->current_network.rates_ex_len;
ieee              827 drivers/staging/rtl8192e/rtllib_softmac.c 	int wpa_ie_len = ieee->wpa_ie_len;
ieee              834 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
ieee              841 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->current_network.capability & WLAN_CAPABILITY_IBSS)
ieee              846 drivers/staging/rtl8192e/rtllib_softmac.c 	if ((ieee->current_network.mode == IEEE_G) ||
ieee              847 drivers/staging/rtl8192e/rtllib_softmac.c 	   (ieee->current_network.mode == IEEE_N_24G &&
ieee              848 drivers/staging/rtl8192e/rtllib_softmac.c 	   ieee->pHTInfo->bCurSuppCCK)) {
ieee              851 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->current_network.buseprotection)
ieee              856 drivers/staging/rtl8192e/rtllib_softmac.c 	crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx];
ieee              857 drivers/staging/rtl8192e/rtllib_softmac.c 	encrypt = ieee->host_encrypt && crypt && crypt->ops &&
ieee              859 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->pHTInfo->bCurrentHTSupport) {
ieee              860 drivers/staging/rtl8192e/rtllib_softmac.c 		tmp_ht_cap_buf = (u8 *) &(ieee->pHTInfo->SelfHTCap);
ieee              861 drivers/staging/rtl8192e/rtllib_softmac.c 		tmp_ht_cap_len = sizeof(ieee->pHTInfo->SelfHTCap);
ieee              862 drivers/staging/rtl8192e/rtllib_softmac.c 		tmp_ht_info_buf = (u8 *) &(ieee->pHTInfo->SelfHTInfo);
ieee              863 drivers/staging/rtl8192e/rtllib_softmac.c 		tmp_ht_info_len = sizeof(ieee->pHTInfo->SelfHTInfo);
ieee              864 drivers/staging/rtl8192e/rtllib_softmac.c 		HTConstructCapabilityElement(ieee, tmp_ht_cap_buf,
ieee              866 drivers/staging/rtl8192e/rtllib_softmac.c 		HTConstructInfoElement(ieee, tmp_ht_info_buf, &tmp_ht_info_len,
ieee              870 drivers/staging/rtl8192e/rtllib_softmac.c 			tmp_generic_ie_buf = ieee->pHTInfo->szRT2RTAggBuffer;
ieee              872 drivers/staging/rtl8192e/rtllib_softmac.c 				 sizeof(ieee->pHTInfo->szRT2RTAggBuffer);
ieee              873 drivers/staging/rtl8192e/rtllib_softmac.c 			HTConstructRT2RTAggElement(ieee, tmp_generic_ie_buf,
ieee              880 drivers/staging/rtl8192e/rtllib_softmac.c 		+ wpa_ie_len + ieee->tx_headroom;
ieee              885 drivers/staging/rtl8192e/rtllib_softmac.c 	skb_reserve(skb, ieee->tx_headroom);
ieee              887 drivers/staging/rtl8192e/rtllib_softmac.c 	beacon_buf = skb_put(skb, (beacon_size - ieee->tx_headroom));
ieee              889 drivers/staging/rtl8192e/rtllib_softmac.c 	ether_addr_copy(beacon_buf->header.addr2, ieee->dev->dev_addr);
ieee              890 drivers/staging/rtl8192e/rtllib_softmac.c 	ether_addr_copy(beacon_buf->header.addr3, ieee->current_network.bssid);
ieee              894 drivers/staging/rtl8192e/rtllib_softmac.c 		cpu_to_le16(ieee->current_network.beacon_interval);
ieee              896 drivers/staging/rtl8192e/rtllib_softmac.c 		cpu_to_le16(ieee->current_network.capability &
ieee              899 drivers/staging/rtl8192e/rtllib_softmac.c 		cpu_to_le16(ieee->current_network.capability &
ieee              902 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->short_slot && (ieee->current_network.capability &
ieee              907 drivers/staging/rtl8192e/rtllib_softmac.c 	crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx];
ieee              924 drivers/staging/rtl8192e/rtllib_softmac.c 	memcpy(tag, ieee->current_network.rates, rate_len-2);
ieee              929 drivers/staging/rtl8192e/rtllib_softmac.c 	*(tag++) = ieee->current_network.channel;
ieee              935 drivers/staging/rtl8192e/rtllib_softmac.c 		val16 = ieee->current_network.atim_window;
ieee              948 drivers/staging/rtl8192e/rtllib_softmac.c 		memcpy(tag, ieee->current_network.rates_ex, rate_ex_len-2);
ieee              953 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->iw_mode == IW_MODE_ADHOC)
ieee              954 drivers/staging/rtl8192e/rtllib_softmac.c 			memcpy(&ieee->wpa_ie[14], &ieee->wpa_ie[8], 4);
ieee              955 drivers/staging/rtl8192e/rtllib_softmac.c 		memcpy(tag, ieee->wpa_ie, ieee->wpa_ie_len);
ieee              956 drivers/staging/rtl8192e/rtllib_softmac.c 		tag += ieee->wpa_ie_len;
ieee              961 drivers/staging/rtl8192e/rtllib_softmac.c static struct sk_buff *rtllib_assoc_resp(struct rtllib_device *ieee, u8 *dest)
ieee              970 drivers/staging/rtl8192e/rtllib_softmac.c 	unsigned int rate_len = rtllib_MFIE_rate_len(ieee);
ieee              972 drivers/staging/rtl8192e/rtllib_softmac.c 		  ieee->tx_headroom;
ieee              979 drivers/staging/rtl8192e/rtllib_softmac.c 	skb_reserve(skb, ieee->tx_headroom);
ieee              985 drivers/staging/rtl8192e/rtllib_softmac.c 	ether_addr_copy(assoc->header.addr3, ieee->dev->dev_addr);
ieee              986 drivers/staging/rtl8192e/rtllib_softmac.c 	ether_addr_copy(assoc->header.addr2, ieee->dev->dev_addr);
ieee              987 drivers/staging/rtl8192e/rtllib_softmac.c 	assoc->capability = cpu_to_le16(ieee->iw_mode == IW_MODE_MASTER ?
ieee              991 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->short_slot)
ieee              995 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->host_encrypt)
ieee              996 drivers/staging/rtl8192e/rtllib_softmac.c 		crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx];
ieee             1006 drivers/staging/rtl8192e/rtllib_softmac.c 	assoc->aid = cpu_to_le16(ieee->assoc_id);
ieee             1007 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->assoc_id == 0x2007)
ieee             1008 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->assoc_id = 0;
ieee             1010 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->assoc_id++;
ieee             1013 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_MFIE_Brate(ieee, &tag);
ieee             1014 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_MFIE_Grate(ieee, &tag);
ieee             1019 drivers/staging/rtl8192e/rtllib_softmac.c static struct sk_buff *rtllib_auth_resp(struct rtllib_device *ieee, int status,
ieee             1024 drivers/staging/rtl8192e/rtllib_softmac.c 	int len = ieee->tx_headroom + sizeof(struct rtllib_authentication) + 1;
ieee             1032 drivers/staging/rtl8192e/rtllib_softmac.c 	skb_reserve(skb, ieee->tx_headroom);
ieee             1040 drivers/staging/rtl8192e/rtllib_softmac.c 	ether_addr_copy(auth->header.addr3, ieee->dev->dev_addr);
ieee             1041 drivers/staging/rtl8192e/rtllib_softmac.c 	ether_addr_copy(auth->header.addr2, ieee->dev->dev_addr);
ieee             1049 drivers/staging/rtl8192e/rtllib_softmac.c static struct sk_buff *rtllib_null_func(struct rtllib_device *ieee, short pwr)
ieee             1054 drivers/staging/rtl8192e/rtllib_softmac.c 	skb = dev_alloc_skb(sizeof(struct rtllib_hdr_3addr)+ieee->tx_headroom);
ieee             1058 drivers/staging/rtl8192e/rtllib_softmac.c 	skb_reserve(skb, ieee->tx_headroom);
ieee             1062 drivers/staging/rtl8192e/rtllib_softmac.c 	ether_addr_copy(hdr->addr1, ieee->current_network.bssid);
ieee             1063 drivers/staging/rtl8192e/rtllib_softmac.c 	ether_addr_copy(hdr->addr2, ieee->dev->dev_addr);
ieee             1064 drivers/staging/rtl8192e/rtllib_softmac.c 	ether_addr_copy(hdr->addr3, ieee->current_network.bssid);
ieee             1075 drivers/staging/rtl8192e/rtllib_softmac.c static struct sk_buff *rtllib_pspoll_func(struct rtllib_device *ieee)
ieee             1080 drivers/staging/rtl8192e/rtllib_softmac.c 	skb = dev_alloc_skb(sizeof(struct rtllib_pspoll_hdr)+ieee->tx_headroom);
ieee             1084 drivers/staging/rtl8192e/rtllib_softmac.c 	skb_reserve(skb, ieee->tx_headroom);
ieee             1088 drivers/staging/rtl8192e/rtllib_softmac.c 	ether_addr_copy(hdr->bssid, ieee->current_network.bssid);
ieee             1089 drivers/staging/rtl8192e/rtllib_softmac.c 	ether_addr_copy(hdr->ta, ieee->dev->dev_addr);
ieee             1091 drivers/staging/rtl8192e/rtllib_softmac.c 	hdr->aid = cpu_to_le16(ieee->assoc_id | 0xc000);
ieee             1099 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_resp_to_assoc_rq(struct rtllib_device *ieee, u8 *dest)
ieee             1101 drivers/staging/rtl8192e/rtllib_softmac.c 	struct sk_buff *buf = rtllib_assoc_resp(ieee, dest);
ieee             1104 drivers/staging/rtl8192e/rtllib_softmac.c 		softmac_mgmt_xmit(buf, ieee);
ieee             1108 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_resp_to_auth(struct rtllib_device *ieee, int s, u8 *dest)
ieee             1110 drivers/staging/rtl8192e/rtllib_softmac.c 	struct sk_buff *buf = rtllib_auth_resp(ieee, s, dest);
ieee             1113 drivers/staging/rtl8192e/rtllib_softmac.c 		softmac_mgmt_xmit(buf, ieee);
ieee             1117 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_resp_to_probe(struct rtllib_device *ieee, u8 *dest)
ieee             1119 drivers/staging/rtl8192e/rtllib_softmac.c 	struct sk_buff *buf = rtllib_probe_resp(ieee, dest);
ieee             1122 drivers/staging/rtl8192e/rtllib_softmac.c 		softmac_mgmt_xmit(buf, ieee);
ieee             1126 drivers/staging/rtl8192e/rtllib_softmac.c static inline int SecIsInPMKIDList(struct rtllib_device *ieee, u8 *bssid)
ieee             1131 drivers/staging/rtl8192e/rtllib_softmac.c 		if ((ieee->PMKIDList[i].bUsed) &&
ieee             1132 drivers/staging/rtl8192e/rtllib_softmac.c 		   (memcmp(ieee->PMKIDList[i].Bssid, bssid, ETH_ALEN) == 0))
ieee             1144 drivers/staging/rtl8192e/rtllib_softmac.c 		       struct rtllib_device *ieee)
ieee             1154 drivers/staging/rtl8192e/rtllib_softmac.c 	int wpa_ie_len = ieee->wpa_ie_len;
ieee             1155 drivers/staging/rtl8192e/rtllib_softmac.c 	int wps_ie_len = ieee->wps_ie_len;
ieee             1173 drivers/staging/rtl8192e/rtllib_softmac.c 	crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx];
ieee             1175 drivers/staging/rtl8192e/rtllib_softmac.c 		encrypt = ieee->host_encrypt && crypt && crypt->ops &&
ieee             1181 drivers/staging/rtl8192e/rtllib_softmac.c 	if ((ieee->rtllib_ap_sec_type &&
ieee             1182 drivers/staging/rtl8192e/rtllib_softmac.c 	    (ieee->rtllib_ap_sec_type(ieee) & SEC_ALG_TKIP)) ||
ieee             1183 drivers/staging/rtl8192e/rtllib_softmac.c 	    ieee->bForcedBgMode) {
ieee             1184 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->pHTInfo->bEnableHT = 0;
ieee             1185 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->mode = WIRELESS_MODE_G;
ieee             1188 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->pHTInfo->bCurrentHTSupport && ieee->pHTInfo->bEnableHT) {
ieee             1189 drivers/staging/rtl8192e/rtllib_softmac.c 		ht_cap_buf = (u8 *)&(ieee->pHTInfo->SelfHTCap);
ieee             1190 drivers/staging/rtl8192e/rtllib_softmac.c 		ht_cap_len = sizeof(ieee->pHTInfo->SelfHTCap);
ieee             1191 drivers/staging/rtl8192e/rtllib_softmac.c 		HTConstructCapabilityElement(ieee, ht_cap_buf, &ht_cap_len,
ieee             1193 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->pHTInfo->bCurrentRT2RTAggregation) {
ieee             1194 drivers/staging/rtl8192e/rtllib_softmac.c 			realtek_ie_buf = ieee->pHTInfo->szRT2RTAggBuffer;
ieee             1196 drivers/staging/rtl8192e/rtllib_softmac.c 				 sizeof(ieee->pHTInfo->szRT2RTAggBuffer);
ieee             1197 drivers/staging/rtl8192e/rtllib_softmac.c 			HTConstructRT2RTAggElement(ieee, realtek_ie_buf,
ieee             1209 drivers/staging/rtl8192e/rtllib_softmac.c 	PMKCacheIdx = SecIsInPMKIDList(ieee, ieee->current_network.bssid);
ieee             1212 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_info(ieee->dev, "[PMK cache]: WPA2 IE length: %x\n",
ieee             1227 drivers/staging/rtl8192e/rtllib_softmac.c 		+ ieee->tx_headroom;
ieee             1234 drivers/staging/rtl8192e/rtllib_softmac.c 	skb_reserve(skb, ieee->tx_headroom);
ieee             1242 drivers/staging/rtl8192e/rtllib_softmac.c 	ether_addr_copy(hdr->header.addr2, ieee->dev->dev_addr);
ieee             1245 drivers/staging/rtl8192e/rtllib_softmac.c 	ether_addr_copy(ieee->ap_mac_addr, beacon->bssid);
ieee             1254 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->short_slot &&
ieee             1329 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->pHTInfo->bCurrentHTSupport && ieee->pHTInfo->bEnableHT) {
ieee             1330 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->pHTInfo->ePeerHTSpecVer != HT_SPEC_VER_EWC) {
ieee             1340 drivers/staging/rtl8192e/rtllib_softmac.c 		skb_put_data(skb, ieee->wpa_ie, ieee->wpa_ie_len);
ieee             1346 drivers/staging/rtl8192e/rtllib_softmac.c 			memcpy((tag + 2), &ieee->PMKIDList[PMKCacheIdx].PMKID,
ieee             1352 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_WMM_Info(ieee, &tag);
ieee             1355 drivers/staging/rtl8192e/rtllib_softmac.c 	if (wps_ie_len && ieee->wps_ie) {
ieee             1356 drivers/staging/rtl8192e/rtllib_softmac.c 		skb_put_data(skb, ieee->wps_ie, wps_ie_len);
ieee             1361 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_TURBO_Info(ieee, &tag);
ieee             1364 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->pHTInfo->bCurrentHTSupport && ieee->pHTInfo->bEnableHT) {
ieee             1365 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->pHTInfo->ePeerHTSpecVer == HT_SPEC_VER_EWC) {
ieee             1373 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->pHTInfo->bCurrentRT2RTAggregation) {
ieee             1381 drivers/staging/rtl8192e/rtllib_softmac.c 	kfree(ieee->assocreq_ies);
ieee             1382 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->assocreq_ies = NULL;
ieee             1384 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->assocreq_ies_len = (skb->data + skb->len) - ies;
ieee             1385 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->assocreq_ies = kmemdup(ies, ieee->assocreq_ies_len, GFP_ATOMIC);
ieee             1386 drivers/staging/rtl8192e/rtllib_softmac.c 	if (!ieee->assocreq_ies)
ieee             1387 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->assocreq_ies_len = 0;
ieee             1392 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_associate_abort(struct rtllib_device *ieee)
ieee             1396 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             1398 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->associate_seq++;
ieee             1406 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->state == RTLLIB_ASSOCIATING_AUTHENTICATING) {
ieee             1407 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_dbg(ieee->dev, "Authentication failed\n");
ieee             1408 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->softmac_stats.no_auth_rs++;
ieee             1410 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_dbg(ieee->dev, "Association failed\n");
ieee             1411 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->softmac_stats.no_ass_rs++;
ieee             1414 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->state = RTLLIB_ASSOCIATING_RETRY;
ieee             1416 drivers/staging/rtl8192e/rtllib_softmac.c 	schedule_delayed_work(&ieee->associate_retry_wq,
ieee             1419 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             1429 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_associate_step1(struct rtllib_device *ieee, u8 *daddr)
ieee             1431 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rtllib_network *beacon = &ieee->current_network;
ieee             1434 drivers/staging/rtl8192e/rtllib_softmac.c 	netdev_dbg(ieee->dev, "Stopping scan\n");
ieee             1436 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->softmac_stats.tx_auth_rq++;
ieee             1438 drivers/staging/rtl8192e/rtllib_softmac.c 	skb = rtllib_authentication_req(beacon, ieee, 0, daddr);
ieee             1441 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_associate_abort(ieee);
ieee             1443 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->state = RTLLIB_ASSOCIATING_AUTHENTICATING;
ieee             1444 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_dbg(ieee->dev, "Sending authentication request\n");
ieee             1445 drivers/staging/rtl8192e/rtllib_softmac.c 		softmac_mgmt_xmit(skb, ieee);
ieee             1446 drivers/staging/rtl8192e/rtllib_softmac.c 		if (!timer_pending(&ieee->associate_timer)) {
ieee             1447 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->associate_timer.expires = jiffies + (HZ / 2);
ieee             1448 drivers/staging/rtl8192e/rtllib_softmac.c 			add_timer(&ieee->associate_timer);
ieee             1453 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_auth_challenge(struct rtllib_device *ieee, u8 *challenge,
ieee             1458 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rtllib_network *beacon = &ieee->current_network;
ieee             1460 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->associate_seq++;
ieee             1461 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->softmac_stats.tx_auth_rq++;
ieee             1463 drivers/staging/rtl8192e/rtllib_softmac.c 	skb = rtllib_authentication_req(beacon, ieee, chlen + 2, beacon->bssid);
ieee             1466 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_associate_abort(ieee);
ieee             1473 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_dbg(ieee->dev,
ieee             1476 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_encrypt_fragment(ieee, skb,
ieee             1479 drivers/staging/rtl8192e/rtllib_softmac.c 		softmac_mgmt_xmit(skb, ieee);
ieee             1480 drivers/staging/rtl8192e/rtllib_softmac.c 		mod_timer(&ieee->associate_timer, jiffies + (HZ/2));
ieee             1485 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_associate_step2(struct rtllib_device *ieee)
ieee             1488 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rtllib_network *beacon = &ieee->current_network;
ieee             1490 drivers/staging/rtl8192e/rtllib_softmac.c 	del_timer_sync(&ieee->associate_timer);
ieee             1492 drivers/staging/rtl8192e/rtllib_softmac.c 	netdev_dbg(ieee->dev, "Sending association request\n");
ieee             1494 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->softmac_stats.tx_ass_rq++;
ieee             1495 drivers/staging/rtl8192e/rtllib_softmac.c 	skb = rtllib_association_req(beacon, ieee);
ieee             1497 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_associate_abort(ieee);
ieee             1499 drivers/staging/rtl8192e/rtllib_softmac.c 		softmac_mgmt_xmit(skb, ieee);
ieee             1500 drivers/staging/rtl8192e/rtllib_softmac.c 		mod_timer(&ieee->associate_timer, jiffies + (HZ/2));
ieee             1506 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rtllib_device *ieee = (struct rtllib_device *)
ieee             1510 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rt_pwr_save_ctrl *pPSC = &(ieee->PowerSaveControl);
ieee             1512 drivers/staging/rtl8192e/rtllib_softmac.c 	netdev_info(ieee->dev, "Associated successfully with %pM\n",
ieee             1513 drivers/staging/rtl8192e/rtllib_softmac.c 		    ieee->current_network.bssid);
ieee             1514 drivers/staging/rtl8192e/rtllib_softmac.c 	if (!ieee->is_silent_reset) {
ieee             1515 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_info(ieee->dev, "normal associate\n");
ieee             1516 drivers/staging/rtl8192e/rtllib_softmac.c 		notify_wx_assoc_event(ieee);
ieee             1519 drivers/staging/rtl8192e/rtllib_softmac.c 	netif_carrier_on(ieee->dev);
ieee             1520 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->is_roaming = false;
ieee             1521 drivers/staging/rtl8192e/rtllib_softmac.c 	if (rtllib_is_54g(&ieee->current_network) &&
ieee             1522 drivers/staging/rtl8192e/rtllib_softmac.c 	   (ieee->modulation & RTLLIB_OFDM_MODULATION)) {
ieee             1523 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->rate = 108;
ieee             1524 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_info(ieee->dev, "Using G rates:%d\n", ieee->rate);
ieee             1526 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->rate = 22;
ieee             1527 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->SetWirelessMode(ieee->dev, IEEE_B);
ieee             1528 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_info(ieee->dev, "Using B rates:%d\n", ieee->rate);
ieee             1530 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->pHTInfo->bCurrentHTSupport && ieee->pHTInfo->bEnableHT) {
ieee             1531 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_info(ieee->dev, "Successfully associated, ht enabled\n");
ieee             1532 drivers/staging/rtl8192e/rtllib_softmac.c 		HTOnAssocRsp(ieee);
ieee             1534 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_info(ieee->dev,
ieee             1536 drivers/staging/rtl8192e/rtllib_softmac.c 			    ieee->pHTInfo->bCurrentHTSupport,
ieee             1537 drivers/staging/rtl8192e/rtllib_softmac.c 			    ieee->pHTInfo->bEnableHT);
ieee             1538 drivers/staging/rtl8192e/rtllib_softmac.c 		memset(ieee->dot11HTOperationalRateSet, 0, 16);
ieee             1540 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->LinkDetectInfo.SlotNum = 2 * (1 +
ieee             1541 drivers/staging/rtl8192e/rtllib_softmac.c 				       ieee->current_network.beacon_interval /
ieee             1543 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->LinkDetectInfo.NumRecvBcnInPeriod == 0 ||
ieee             1544 drivers/staging/rtl8192e/rtllib_softmac.c 	    ieee->LinkDetectInfo.NumRecvDataInPeriod == 0) {
ieee             1545 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->LinkDetectInfo.NumRecvBcnInPeriod = 1;
ieee             1546 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->LinkDetectInfo.NumRecvDataInPeriod = 1;
ieee             1549 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->link_change(ieee->dev);
ieee             1551 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->is_silent_reset) {
ieee             1552 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_info(ieee->dev, "silent reset associate\n");
ieee             1553 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->is_silent_reset = false;
ieee             1556 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->data_hard_resume)
ieee             1557 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->data_hard_resume(ieee->dev);
ieee             1561 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_sta_send_associnfo(struct rtllib_device *ieee)
ieee             1565 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_associate_complete(struct rtllib_device *ieee)
ieee             1567 drivers/staging/rtl8192e/rtllib_softmac.c 	del_timer_sync(&ieee->associate_timer);
ieee             1569 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->state = RTLLIB_LINKED;
ieee             1570 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_sta_send_associnfo(ieee);
ieee             1572 drivers/staging/rtl8192e/rtllib_softmac.c 	schedule_work(&ieee->associate_complete_wq);
ieee             1577 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rtllib_device *ieee = container_of_dwork_rsl(data,
ieee             1580 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_stop_scan_syncro(ieee);
ieee             1581 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->rtllib_ips_leave != NULL)
ieee             1582 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->rtllib_ips_leave(ieee->dev);
ieee             1583 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_lock(&ieee->wx_mutex);
ieee             1585 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->data_hard_stop)
ieee             1586 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->data_hard_stop(ieee->dev);
ieee             1588 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_stop_scan(ieee);
ieee             1590 drivers/staging/rtl8192e/rtllib_softmac.c 		 ieee->current_network.channel);
ieee             1591 drivers/staging/rtl8192e/rtllib_softmac.c 	HTSetConnectBwMode(ieee, HT_CHANNEL_WIDTH_20, HT_EXTCHNL_OFFSET_NO_EXT);
ieee             1592 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->eRFPowerState == eRfOff) {
ieee             1596 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->rtllib_ips_leave_wq != NULL)
ieee             1597 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->rtllib_ips_leave_wq(ieee->dev);
ieee             1598 drivers/staging/rtl8192e/rtllib_softmac.c 		mutex_unlock(&ieee->wx_mutex);
ieee             1601 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->associate_seq = 1;
ieee             1603 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_associate_step1(ieee, ieee->current_network.bssid);
ieee             1605 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_unlock(&ieee->wx_mutex);
ieee             1608 drivers/staging/rtl8192e/rtllib_softmac.c inline void rtllib_softmac_new_net(struct rtllib_device *ieee,
ieee             1619 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->state != RTLLIB_NOLINK)
ieee             1622 drivers/staging/rtl8192e/rtllib_softmac.c 	if ((ieee->iw_mode == IW_MODE_INFRA) && !(net->capability &
ieee             1626 drivers/staging/rtl8192e/rtllib_softmac.c 	if ((ieee->iw_mode == IW_MODE_ADHOC) && !(net->capability &
ieee             1630 drivers/staging/rtl8192e/rtllib_softmac.c 	if ((ieee->iw_mode == IW_MODE_ADHOC) &&
ieee             1631 drivers/staging/rtl8192e/rtllib_softmac.c 	    (net->channel > ieee->ibss_maxjoin_chal))
ieee             1633 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->iw_mode == IW_MODE_INFRA || ieee->iw_mode == IW_MODE_ADHOC) {
ieee             1638 drivers/staging/rtl8192e/rtllib_softmac.c 		apset = ieee->wap_set;
ieee             1639 drivers/staging/rtl8192e/rtllib_softmac.c 		ssidset = ieee->ssid_set;
ieee             1641 drivers/staging/rtl8192e/rtllib_softmac.c 		apmatch = (memcmp(ieee->current_network.bssid, net->bssid,
ieee             1644 drivers/staging/rtl8192e/rtllib_softmac.c 			ssidmatch = (ieee->current_network.ssid_len ==
ieee             1646 drivers/staging/rtl8192e/rtllib_softmac.c 				    (!strncmp(ieee->current_network.ssid,
ieee             1656 drivers/staging/rtl8192e/rtllib_softmac.c 			   (ieee->current_network.ssid_len == net->ssid_len) &&
ieee             1657 drivers/staging/rtl8192e/rtllib_softmac.c 			   (!strncmp(ieee->current_network.ssid, net->ssid,
ieee             1674 drivers/staging/rtl8192e/rtllib_softmac.c 		   (ieee->is_roaming && ssidset && ssidbroad && ssidmatch)) {
ieee             1679 drivers/staging/rtl8192e/rtllib_softmac.c 				memcpy(tmp_ssid, ieee->current_network.ssid,
ieee             1680 drivers/staging/rtl8192e/rtllib_softmac.c 				       ieee->current_network.ssid_len);
ieee             1681 drivers/staging/rtl8192e/rtllib_softmac.c 				tmp_ssid_len = ieee->current_network.ssid_len;
ieee             1683 drivers/staging/rtl8192e/rtllib_softmac.c 			memcpy(&ieee->current_network, net,
ieee             1684 drivers/staging/rtl8192e/rtllib_softmac.c 				sizeof(ieee->current_network));
ieee             1686 drivers/staging/rtl8192e/rtllib_softmac.c 				memcpy(ieee->current_network.ssid, tmp_ssid,
ieee             1688 drivers/staging/rtl8192e/rtllib_softmac.c 				ieee->current_network.ssid_len = tmp_ssid_len;
ieee             1690 drivers/staging/rtl8192e/rtllib_softmac.c 			netdev_info(ieee->dev,
ieee             1692 drivers/staging/rtl8192e/rtllib_softmac.c 				    ieee->current_network.ssid,
ieee             1693 drivers/staging/rtl8192e/rtllib_softmac.c 				    ieee->current_network.channel,
ieee             1694 drivers/staging/rtl8192e/rtllib_softmac.c 				    ieee->current_network.qos_data.supported,
ieee             1695 drivers/staging/rtl8192e/rtllib_softmac.c 				    ieee->pHTInfo->bEnableHT,
ieee             1696 drivers/staging/rtl8192e/rtllib_softmac.c 				    ieee->current_network.bssht.bdSupportHT,
ieee             1697 drivers/staging/rtl8192e/rtllib_softmac.c 				    ieee->current_network.mode,
ieee             1698 drivers/staging/rtl8192e/rtllib_softmac.c 				    ieee->current_network.flags);
ieee             1700 drivers/staging/rtl8192e/rtllib_softmac.c 			if ((rtllib_act_scanning(ieee, false)) &&
ieee             1701 drivers/staging/rtl8192e/rtllib_softmac.c 			   !(ieee->softmac_features & IEEE_SOFTMAC_SCAN))
ieee             1702 drivers/staging/rtl8192e/rtllib_softmac.c 				rtllib_stop_scan_syncro(ieee);
ieee             1704 drivers/staging/rtl8192e/rtllib_softmac.c 			HTResetIOTSetting(ieee->pHTInfo);
ieee             1705 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->wmm_acm = 0;
ieee             1706 drivers/staging/rtl8192e/rtllib_softmac.c 			if (ieee->iw_mode == IW_MODE_INFRA) {
ieee             1708 drivers/staging/rtl8192e/rtllib_softmac.c 				ieee->AsocRetryCount = 0;
ieee             1709 drivers/staging/rtl8192e/rtllib_softmac.c 				if ((ieee->current_network.qos_data.supported == 1) &&
ieee             1710 drivers/staging/rtl8192e/rtllib_softmac.c 				    ieee->current_network.bssht.bdSupportHT)
ieee             1711 drivers/staging/rtl8192e/rtllib_softmac.c 					HTResetSelfAndSavePeerSetting(ieee,
ieee             1712 drivers/staging/rtl8192e/rtllib_softmac.c 						 &(ieee->current_network));
ieee             1714 drivers/staging/rtl8192e/rtllib_softmac.c 					ieee->pHTInfo->bCurrentHTSupport =
ieee             1717 drivers/staging/rtl8192e/rtllib_softmac.c 				ieee->state = RTLLIB_ASSOCIATING;
ieee             1718 drivers/staging/rtl8192e/rtllib_softmac.c 				if (ieee->LedControlHandler != NULL)
ieee             1719 drivers/staging/rtl8192e/rtllib_softmac.c 					ieee->LedControlHandler(ieee->dev,
ieee             1722 drivers/staging/rtl8192e/rtllib_softmac.c 					   &ieee->associate_procedure_wq, 0);
ieee             1724 drivers/staging/rtl8192e/rtllib_softmac.c 				if (rtllib_is_54g(&ieee->current_network) &&
ieee             1725 drivers/staging/rtl8192e/rtllib_softmac.c 				    (ieee->modulation &
ieee             1727 drivers/staging/rtl8192e/rtllib_softmac.c 					ieee->rate = 108;
ieee             1728 drivers/staging/rtl8192e/rtllib_softmac.c 					ieee->SetWirelessMode(ieee->dev,
ieee             1730 drivers/staging/rtl8192e/rtllib_softmac.c 					netdev_info(ieee->dev,
ieee             1733 drivers/staging/rtl8192e/rtllib_softmac.c 					ieee->rate = 22;
ieee             1734 drivers/staging/rtl8192e/rtllib_softmac.c 					ieee->SetWirelessMode(ieee->dev,
ieee             1736 drivers/staging/rtl8192e/rtllib_softmac.c 					netdev_info(ieee->dev,
ieee             1739 drivers/staging/rtl8192e/rtllib_softmac.c 				memset(ieee->dot11HTOperationalRateSet, 0, 16);
ieee             1740 drivers/staging/rtl8192e/rtllib_softmac.c 				ieee->state = RTLLIB_LINKED;
ieee             1746 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_softmac_check_all_nets(struct rtllib_device *ieee)
ieee             1751 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             1753 drivers/staging/rtl8192e/rtllib_softmac.c 	list_for_each_entry(target, &ieee->network_list, list) {
ieee             1759 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->state != RTLLIB_NOLINK)
ieee             1762 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->scan_age == 0 || time_after(target->last_scanned +
ieee             1763 drivers/staging/rtl8192e/rtllib_softmac.c 		    ieee->scan_age, jiffies))
ieee             1764 drivers/staging/rtl8192e/rtllib_softmac.c 			rtllib_softmac_new_net(ieee, target);
ieee             1766 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             1814 drivers/staging/rtl8192e/rtllib_softmac.c static short probe_rq_parse(struct rtllib_device *ieee, struct sk_buff *skb,
ieee             1829 drivers/staging/rtl8192e/rtllib_softmac.c 	  (!ether_addr_equal(header->addr3, ieee->current_network.bssid)) &&
ieee             1857 drivers/staging/rtl8192e/rtllib_softmac.c 	return !strncmp(ssid, ieee->current_network.ssid, ssidlen);
ieee             1877 drivers/staging/rtl8192e/rtllib_softmac.c static inline u16 assoc_parse(struct rtllib_device *ieee, struct sk_buff *skb,
ieee             1884 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_dbg(ieee->dev, "Invalid len in auth resp: %d\n",
ieee             1895 drivers/staging/rtl8192e/rtllib_softmac.c 	   ((ieee->mode == IEEE_G) &&
ieee             1896 drivers/staging/rtl8192e/rtllib_softmac.c 	   (ieee->current_network.mode == IEEE_N_24G) &&
ieee             1897 drivers/staging/rtl8192e/rtllib_softmac.c 	   (ieee->AsocRetryCount++ < (RT_ASOC_RETRY_LIMIT-1)))) {
ieee             1898 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->pHTInfo->IOTAction |= HT_IOT_ACT_PURE_N_MODE;
ieee             1900 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->AsocRetryCount = 0;
ieee             1906 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_rx_probe_rq(struct rtllib_device *ieee, struct sk_buff *skb)
ieee             1910 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->softmac_stats.rx_probe_rq++;
ieee             1911 drivers/staging/rtl8192e/rtllib_softmac.c 	if (probe_rq_parse(ieee, skb, dest) > 0) {
ieee             1912 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->softmac_stats.tx_probe_rs++;
ieee             1913 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_resp_to_probe(ieee, dest);
ieee             1917 drivers/staging/rtl8192e/rtllib_softmac.c static inline void rtllib_rx_auth_rq(struct rtllib_device *ieee,
ieee             1923 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->softmac_stats.rx_auth_rq++;
ieee             1925 drivers/staging/rtl8192e/rtllib_softmac.c 	status = auth_rq_parse(ieee->dev, skb, dest);
ieee             1927 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_resp_to_auth(ieee, status, dest);
ieee             1930 drivers/staging/rtl8192e/rtllib_softmac.c static inline void rtllib_rx_assoc_rq(struct rtllib_device *ieee,
ieee             1936 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->softmac_stats.rx_ass_rq++;
ieee             1937 drivers/staging/rtl8192e/rtllib_softmac.c 	if (assoc_rq_parse(ieee->dev, skb, dest) != -1)
ieee             1938 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_resp_to_assoc_rq(ieee, dest);
ieee             1940 drivers/staging/rtl8192e/rtllib_softmac.c 	netdev_info(ieee->dev, "New client associated: %pM\n", dest);
ieee             1943 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_sta_ps_send_null_frame(struct rtllib_device *ieee, short pwr)
ieee             1946 drivers/staging/rtl8192e/rtllib_softmac.c 	struct sk_buff *buf = rtllib_null_func(ieee, pwr);
ieee             1949 drivers/staging/rtl8192e/rtllib_softmac.c 		softmac_ps_mgmt_xmit(buf, ieee);
ieee             1953 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_sta_ps_send_pspoll_frame(struct rtllib_device *ieee)
ieee             1955 drivers/staging/rtl8192e/rtllib_softmac.c 	struct sk_buff *buf = rtllib_pspoll_func(ieee);
ieee             1958 drivers/staging/rtl8192e/rtllib_softmac.c 		softmac_ps_mgmt_xmit(buf, ieee);
ieee             1961 drivers/staging/rtl8192e/rtllib_softmac.c static short rtllib_sta_ps_sleep(struct rtllib_device *ieee, u64 *time)
ieee             1965 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rt_pwr_save_ctrl *pPSC = &(ieee->PowerSaveControl);
ieee             1967 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->LPSDelayCnt) {
ieee             1968 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->LPSDelayCnt--;
ieee             1972 drivers/staging/rtl8192e/rtllib_softmac.c 	dtim = ieee->current_network.dtim_data;
ieee             1975 drivers/staging/rtl8192e/rtllib_softmac.c 	timeout = ieee->current_network.beacon_interval;
ieee             1976 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->current_network.dtim_data = RTLLIB_DTIM_INVALID;
ieee             1980 drivers/staging/rtl8192e/rtllib_softmac.c 	if (dtim & (RTLLIB_DTIM_UCAST & ieee->ps))
ieee             1984 drivers/staging/rtl8192e/rtllib_softmac.c 			dev_trans_start(ieee->dev) + msecs_to_jiffies(timeout)))
ieee             1987 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->last_rx_ps_time + msecs_to_jiffies(timeout)))
ieee             1989 drivers/staging/rtl8192e/rtllib_softmac.c 	if ((ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE) &&
ieee             1990 drivers/staging/rtl8192e/rtllib_softmac.c 	    (ieee->mgmt_queue_tail != ieee->mgmt_queue_head))
ieee             1994 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->bAwakePktSent) {
ieee             2004 drivers/staging/rtl8192e/rtllib_softmac.c 				MaxPeriod = ieee->current_network.dtim_period;
ieee             2013 drivers/staging/rtl8192e/rtllib_softmac.c 			u8 period = ieee->current_network.dtim_period;
ieee             2014 drivers/staging/rtl8192e/rtllib_softmac.c 			u8 count = ieee->current_network.tim.tim_count;
ieee             2028 drivers/staging/rtl8192e/rtllib_softmac.c 				    ieee->current_network.tim.tim_count)
ieee             2036 drivers/staging/rtl8192e/rtllib_softmac.c 		*time = ieee->current_network.last_dtim_sta_time
ieee             2037 drivers/staging/rtl8192e/rtllib_softmac.c 			+ msecs_to_jiffies(ieee->current_network.beacon_interval *
ieee             2047 drivers/staging/rtl8192e/rtllib_softmac.c static inline void rtllib_sta_ps(struct rtllib_device *ieee)
ieee             2053 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             2055 drivers/staging/rtl8192e/rtllib_softmac.c 	if ((ieee->ps == RTLLIB_PS_DISABLED ||
ieee             2056 drivers/staging/rtl8192e/rtllib_softmac.c 	     ieee->iw_mode != IW_MODE_INFRA ||
ieee             2057 drivers/staging/rtl8192e/rtllib_softmac.c 	     ieee->state != RTLLIB_LINKED)) {
ieee             2060 drivers/staging/rtl8192e/rtllib_softmac.c 			 __func__, ieee->ps, ieee->iw_mode, ieee->state);
ieee             2061 drivers/staging/rtl8192e/rtllib_softmac.c 		spin_lock_irqsave(&ieee->mgmt_tx_lock, flags2);
ieee             2062 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_sta_wakeup(ieee, 1);
ieee             2064 drivers/staging/rtl8192e/rtllib_softmac.c 		spin_unlock_irqrestore(&ieee->mgmt_tx_lock, flags2);
ieee             2066 drivers/staging/rtl8192e/rtllib_softmac.c 	sleep = rtllib_sta_ps_sleep(ieee, &time);
ieee             2071 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->sta_sleep == LPS_IS_SLEEP) {
ieee             2072 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->enter_sleep_state(ieee->dev, time);
ieee             2073 drivers/staging/rtl8192e/rtllib_softmac.c 		} else if (ieee->sta_sleep == LPS_IS_WAKE) {
ieee             2074 drivers/staging/rtl8192e/rtllib_softmac.c 			spin_lock_irqsave(&ieee->mgmt_tx_lock, flags2);
ieee             2076 drivers/staging/rtl8192e/rtllib_softmac.c 			if (ieee->ps_is_queue_empty(ieee->dev)) {
ieee             2077 drivers/staging/rtl8192e/rtllib_softmac.c 				ieee->sta_sleep = LPS_WAIT_NULL_DATA_SEND;
ieee             2078 drivers/staging/rtl8192e/rtllib_softmac.c 				ieee->ack_tx_to_ieee = 1;
ieee             2079 drivers/staging/rtl8192e/rtllib_softmac.c 				rtllib_sta_ps_send_null_frame(ieee, 1);
ieee             2080 drivers/staging/rtl8192e/rtllib_softmac.c 				ieee->ps_time = time;
ieee             2082 drivers/staging/rtl8192e/rtllib_softmac.c 			spin_unlock_irqrestore(&ieee->mgmt_tx_lock, flags2);
ieee             2086 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->bAwakePktSent = false;
ieee             2089 drivers/staging/rtl8192e/rtllib_softmac.c 		spin_lock_irqsave(&ieee->mgmt_tx_lock, flags2);
ieee             2091 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_sta_wakeup(ieee, 1);
ieee             2093 drivers/staging/rtl8192e/rtllib_softmac.c 		spin_unlock_irqrestore(&ieee->mgmt_tx_lock, flags2);
ieee             2097 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             2101 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_sta_wakeup(struct rtllib_device *ieee, short nl)
ieee             2103 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->sta_sleep == LPS_IS_WAKE) {
ieee             2105 drivers/staging/rtl8192e/rtllib_softmac.c 			if (ieee->pHTInfo->IOTAction &
ieee             2107 drivers/staging/rtl8192e/rtllib_softmac.c 				ieee->ack_tx_to_ieee = 1;
ieee             2108 drivers/staging/rtl8192e/rtllib_softmac.c 				rtllib_sta_ps_send_null_frame(ieee, 0);
ieee             2110 drivers/staging/rtl8192e/rtllib_softmac.c 				ieee->ack_tx_to_ieee = 1;
ieee             2111 drivers/staging/rtl8192e/rtllib_softmac.c 				rtllib_sta_ps_send_pspoll_frame(ieee);
ieee             2118 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->sta_sleep == LPS_IS_SLEEP)
ieee             2119 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->sta_wake_up(ieee->dev);
ieee             2121 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->pHTInfo->IOTAction &
ieee             2123 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->ack_tx_to_ieee = 1;
ieee             2124 drivers/staging/rtl8192e/rtllib_softmac.c 			rtllib_sta_ps_send_null_frame(ieee, 0);
ieee             2126 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->ack_tx_to_ieee = 1;
ieee             2127 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->polling = true;
ieee             2128 drivers/staging/rtl8192e/rtllib_softmac.c 			rtllib_sta_ps_send_pspoll_frame(ieee);
ieee             2132 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->sta_sleep = LPS_IS_WAKE;
ieee             2133 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->polling = false;
ieee             2137 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_ps_tx_ack(struct rtllib_device *ieee, short success)
ieee             2141 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             2143 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->sta_sleep == LPS_WAIT_NULL_DATA_SEND) {
ieee             2146 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->sta_sleep = LPS_IS_SLEEP;
ieee             2147 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->enter_sleep_state(ieee->dev, ieee->ps_time);
ieee             2154 drivers/staging/rtl8192e/rtllib_softmac.c 		if ((ieee->sta_sleep == LPS_IS_WAKE) && !success) {
ieee             2155 drivers/staging/rtl8192e/rtllib_softmac.c 			spin_lock_irqsave(&ieee->mgmt_tx_lock, flags2);
ieee             2156 drivers/staging/rtl8192e/rtllib_softmac.c 			if (ieee->pHTInfo->IOTAction &
ieee             2158 drivers/staging/rtl8192e/rtllib_softmac.c 				rtllib_sta_ps_send_null_frame(ieee, 0);
ieee             2160 drivers/staging/rtl8192e/rtllib_softmac.c 				rtllib_sta_ps_send_pspoll_frame(ieee);
ieee             2161 drivers/staging/rtl8192e/rtllib_softmac.c 			spin_unlock_irqrestore(&ieee->mgmt_tx_lock, flags2);
ieee             2164 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             2168 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_process_action(struct rtllib_device *ieee,
ieee             2176 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_warn(ieee->dev,
ieee             2187 drivers/staging/rtl8192e/rtllib_softmac.c 			rtllib_rx_ADDBAReq(ieee, skb);
ieee             2190 drivers/staging/rtl8192e/rtllib_softmac.c 			rtllib_rx_ADDBARsp(ieee, skb);
ieee             2193 drivers/staging/rtl8192e/rtllib_softmac.c 			rtllib_rx_DELBA(ieee, skb);
ieee             2203 drivers/staging/rtl8192e/rtllib_softmac.c rtllib_rx_assoc_resp(struct rtllib_device *ieee, struct sk_buff *skb,
ieee             2213 drivers/staging/rtl8192e/rtllib_softmac.c 	netdev_dbg(ieee->dev, "received [RE]ASSOCIATION RESPONSE (%d)\n",
ieee             2216 drivers/staging/rtl8192e/rtllib_softmac.c 	if ((ieee->softmac_features & IEEE_SOFTMAC_ASSOCIATE) &&
ieee             2217 drivers/staging/rtl8192e/rtllib_softmac.c 	     ieee->state == RTLLIB_ASSOCIATING_AUTHENTICATED &&
ieee             2218 drivers/staging/rtl8192e/rtllib_softmac.c 	     (ieee->iw_mode == IW_MODE_INFRA)) {
ieee             2219 drivers/staging/rtl8192e/rtllib_softmac.c 		errcode = assoc_parse(ieee, skb, &aid);
ieee             2227 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->state = RTLLIB_LINKED;
ieee             2228 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->assoc_id = aid;
ieee             2229 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->softmac_stats.rx_ass_ok++;
ieee             2233 drivers/staging/rtl8192e/rtllib_softmac.c 			if (ieee->current_network.qos_data.supported == 1) {
ieee             2234 drivers/staging/rtl8192e/rtllib_softmac.c 				if (rtllib_parse_info_param(ieee, assoc_resp->info_element,
ieee             2240 drivers/staging/rtl8192e/rtllib_softmac.c 				memcpy(ieee->pHTInfo->PeerHTCapBuf,
ieee             2243 drivers/staging/rtl8192e/rtllib_softmac.c 				memcpy(ieee->pHTInfo->PeerHTInfoBuf,
ieee             2246 drivers/staging/rtl8192e/rtllib_softmac.c 				if (ieee->handle_assoc_response != NULL)
ieee             2247 drivers/staging/rtl8192e/rtllib_softmac.c 					ieee->handle_assoc_response(ieee->dev,
ieee             2253 drivers/staging/rtl8192e/rtllib_softmac.c 			kfree(ieee->assocresp_ies);
ieee             2254 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->assocresp_ies = NULL;
ieee             2256 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->assocresp_ies_len = (skb->data + skb->len) - ies;
ieee             2257 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->assocresp_ies = kmemdup(ies,
ieee             2258 drivers/staging/rtl8192e/rtllib_softmac.c 						      ieee->assocresp_ies_len,
ieee             2260 drivers/staging/rtl8192e/rtllib_softmac.c 			if (!ieee->assocresp_ies)
ieee             2261 drivers/staging/rtl8192e/rtllib_softmac.c 				ieee->assocresp_ies_len = 0;
ieee             2263 drivers/staging/rtl8192e/rtllib_softmac.c 			rtllib_associate_complete(ieee);
ieee             2266 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->softmac_stats.rx_ass_err++;
ieee             2267 drivers/staging/rtl8192e/rtllib_softmac.c 			netdev_info(ieee->dev,
ieee             2270 drivers/staging/rtl8192e/rtllib_softmac.c 			if (ieee->AsocRetryCount < RT_ASOC_RETRY_LIMIT)
ieee             2272 drivers/staging/rtl8192e/rtllib_softmac.c 					 &ieee->associate_procedure_wq, 0);
ieee             2274 drivers/staging/rtl8192e/rtllib_softmac.c 				rtllib_associate_abort(ieee);
ieee             2280 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_rx_auth_resp(struct rtllib_device *ieee, struct sk_buff *skb)
ieee             2287 drivers/staging/rtl8192e/rtllib_softmac.c 	errcode = auth_parse(ieee->dev, skb, &challenge, &chlen);
ieee             2290 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->softmac_stats.rx_auth_rs_err++;
ieee             2291 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_info(ieee->dev,
ieee             2294 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_associate_abort(ieee);
ieee             2298 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->open_wep || !challenge) {
ieee             2299 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->state = RTLLIB_ASSOCIATING_AUTHENTICATED;
ieee             2300 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->softmac_stats.rx_auth_rs_ok++;
ieee             2301 drivers/staging/rtl8192e/rtllib_softmac.c 		if (!(ieee->pHTInfo->IOTAction & HT_IOT_ACT_PURE_N_MODE)) {
ieee             2302 drivers/staging/rtl8192e/rtllib_softmac.c 			if (!ieee->GetNmodeSupportBySecCfg(ieee->dev)) {
ieee             2303 drivers/staging/rtl8192e/rtllib_softmac.c 				if (IsHTHalfNmodeAPs(ieee)) {
ieee             2314 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->SetWirelessMode(ieee->dev,
ieee             2315 drivers/staging/rtl8192e/rtllib_softmac.c 					      ieee->current_network.mode);
ieee             2318 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->SetWirelessMode(ieee->dev, IEEE_G);
ieee             2321 drivers/staging/rtl8192e/rtllib_softmac.c 		if ((ieee->current_network.mode == IEEE_N_24G) &&
ieee             2323 drivers/staging/rtl8192e/rtllib_softmac.c 			netdev_info(ieee->dev, "======>enter half N mode\n");
ieee             2324 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->bHalfWirelessN24GMode = true;
ieee             2326 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->bHalfWirelessN24GMode = false;
ieee             2328 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_associate_step2(ieee);
ieee             2330 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_auth_challenge(ieee, challenge,  chlen);
ieee             2335 drivers/staging/rtl8192e/rtllib_softmac.c rtllib_rx_auth(struct rtllib_device *ieee, struct sk_buff *skb,
ieee             2339 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->softmac_features & IEEE_SOFTMAC_ASSOCIATE) {
ieee             2340 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->state == RTLLIB_ASSOCIATING_AUTHENTICATING &&
ieee             2341 drivers/staging/rtl8192e/rtllib_softmac.c 		    (ieee->iw_mode == IW_MODE_INFRA)) {
ieee             2342 drivers/staging/rtl8192e/rtllib_softmac.c 			netdev_dbg(ieee->dev,
ieee             2344 drivers/staging/rtl8192e/rtllib_softmac.c 			rtllib_rx_auth_resp(ieee, skb);
ieee             2345 drivers/staging/rtl8192e/rtllib_softmac.c 		} else if (ieee->iw_mode == IW_MODE_MASTER) {
ieee             2346 drivers/staging/rtl8192e/rtllib_softmac.c 			rtllib_rx_auth_rq(ieee, skb);
ieee             2353 drivers/staging/rtl8192e/rtllib_softmac.c rtllib_rx_deauth(struct rtllib_device *ieee, struct sk_buff *skb)
ieee             2358 drivers/staging/rtl8192e/rtllib_softmac.c 	if (memcmp(header->addr3, ieee->current_network.bssid, ETH_ALEN) != 0)
ieee             2364 drivers/staging/rtl8192e/rtllib_softmac.c 	if ((ieee->softmac_features & IEEE_SOFTMAC_ASSOCIATE) &&
ieee             2365 drivers/staging/rtl8192e/rtllib_softmac.c 	    ieee->state == RTLLIB_LINKED &&
ieee             2366 drivers/staging/rtl8192e/rtllib_softmac.c 	    (ieee->iw_mode == IW_MODE_INFRA)) {
ieee             2368 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_info(ieee->dev,
ieee             2372 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->state = RTLLIB_ASSOCIATING;
ieee             2373 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->softmac_stats.reassoc++;
ieee             2374 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->is_roaming = true;
ieee             2375 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->LinkDetectInfo.bBusyTraffic = false;
ieee             2376 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_disassociate(ieee);
ieee             2377 drivers/staging/rtl8192e/rtllib_softmac.c 		RemovePeerTS(ieee, header->addr2);
ieee             2378 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->LedControlHandler != NULL)
ieee             2379 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->LedControlHandler(ieee->dev,
ieee             2382 drivers/staging/rtl8192e/rtllib_softmac.c 		if (!(ieee->rtllib_ap_sec_type(ieee) &
ieee             2385 drivers/staging/rtl8192e/rtllib_softmac.c 				       &ieee->associate_procedure_wq, 5);
ieee             2390 drivers/staging/rtl8192e/rtllib_softmac.c inline int rtllib_rx_frame_softmac(struct rtllib_device *ieee,
ieee             2398 drivers/staging/rtl8192e/rtllib_softmac.c 	if (!ieee->proto_started)
ieee             2405 drivers/staging/rtl8192e/rtllib_softmac.c 		if (rtllib_rx_assoc_resp(ieee, skb, rx_stats) == 1)
ieee             2410 drivers/staging/rtl8192e/rtllib_softmac.c 		if ((ieee->softmac_features & IEEE_SOFTMAC_ASSOCIATE) &&
ieee             2411 drivers/staging/rtl8192e/rtllib_softmac.c 		     ieee->iw_mode == IW_MODE_MASTER)
ieee             2412 drivers/staging/rtl8192e/rtllib_softmac.c 			rtllib_rx_assoc_rq(ieee, skb);
ieee             2415 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_rx_auth(ieee, skb, rx_stats);
ieee             2419 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_rx_deauth(ieee, skb);
ieee             2422 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_process_action(ieee, skb);
ieee             2448 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_softmac_xmit(struct rtllib_txb *txb, struct rtllib_device *ieee)
ieee             2457 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             2460 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_sta_wakeup(ieee, 0);
ieee             2466 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->stats.multicast++;
ieee             2472 drivers/staging/rtl8192e/rtllib_softmac.c 		queue_len = skb_queue_len(&ieee->skb_waitQ[queue_index]);
ieee             2474 drivers/staging/rtl8192e/rtllib_softmac.c 		    (!ieee->check_nic_enough_desc(ieee->dev, queue_index)) ||
ieee             2475 drivers/staging/rtl8192e/rtllib_softmac.c 		    (ieee->queue_stop)) {
ieee             2481 drivers/staging/rtl8192e/rtllib_softmac.c 				skb_queue_tail(&ieee->skb_waitQ[queue_index],
ieee             2486 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->softmac_data_hard_start_xmit(
ieee             2488 drivers/staging/rtl8192e/rtllib_softmac.c 					ieee->dev, ieee->rate);
ieee             2494 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             2498 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_reset_queue(struct rtllib_device *ieee)
ieee             2502 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             2503 drivers/staging/rtl8192e/rtllib_softmac.c 	init_mgmt_queue(ieee);
ieee             2504 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->tx_pending.txb) {
ieee             2505 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_txb_free(ieee->tx_pending.txb);
ieee             2506 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->tx_pending.txb = NULL;
ieee             2508 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->queue_stop = 0;
ieee             2509 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             2514 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_stop_all_queues(struct rtllib_device *ieee)
ieee             2518 drivers/staging/rtl8192e/rtllib_softmac.c 	for (i = 0; i < ieee->dev->num_tx_queues; i++)
ieee             2519 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_get_tx_queue(ieee->dev, i)->trans_start = jiffies;
ieee             2521 drivers/staging/rtl8192e/rtllib_softmac.c 	netif_tx_stop_all_queues(ieee->dev);
ieee             2524 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_wake_all_queues(struct rtllib_device *ieee)
ieee             2526 drivers/staging/rtl8192e/rtllib_softmac.c 	netif_tx_wake_all_queues(ieee->dev);
ieee             2530 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_start_master_bss(struct rtllib_device *ieee)
ieee             2532 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->assoc_id = 1;
ieee             2534 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->current_network.ssid_len == 0) {
ieee             2535 drivers/staging/rtl8192e/rtllib_softmac.c 		strncpy(ieee->current_network.ssid,
ieee             2539 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->current_network.ssid_len =
ieee             2541 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->ssid_set = 1;
ieee             2544 drivers/staging/rtl8192e/rtllib_softmac.c 	ether_addr_copy(ieee->current_network.bssid, ieee->dev->dev_addr);
ieee             2546 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->set_chan(ieee->dev, ieee->current_network.channel);
ieee             2547 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->state = RTLLIB_LINKED;
ieee             2548 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->link_change(ieee->dev);
ieee             2549 drivers/staging/rtl8192e/rtllib_softmac.c 	notify_wx_assoc_event(ieee);
ieee             2551 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->data_hard_resume)
ieee             2552 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->data_hard_resume(ieee->dev);
ieee             2554 drivers/staging/rtl8192e/rtllib_softmac.c 	netif_carrier_on(ieee->dev);
ieee             2557 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_start_monitor_mode(struct rtllib_device *ieee)
ieee             2560 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->raw_tx) {
ieee             2561 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->data_hard_resume)
ieee             2562 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->data_hard_resume(ieee->dev);
ieee             2564 drivers/staging/rtl8192e/rtllib_softmac.c 		netif_carrier_on(ieee->dev);
ieee             2570 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rtllib_device *ieee = container_of_dwork_rsl(data,
ieee             2579 drivers/staging/rtl8192e/rtllib_softmac.c 	if (!ieee->proto_started) {
ieee             2580 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_info(ieee->dev, "==========oh driver down return\n");
ieee             2583 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_lock(&ieee->wx_mutex);
ieee             2585 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->current_network.ssid_len == 0) {
ieee             2586 drivers/staging/rtl8192e/rtllib_softmac.c 		strcpy(ieee->current_network.ssid, RTLLIB_DEFAULT_TX_ESSID);
ieee             2587 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->current_network.ssid_len = strlen(RTLLIB_DEFAULT_TX_ESSID);
ieee             2588 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->ssid_set = 1;
ieee             2591 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->state = RTLLIB_NOLINK;
ieee             2592 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->mode = IEEE_G;
ieee             2594 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_softmac_check_all_nets(ieee);
ieee             2611 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->state == RTLLIB_NOLINK)
ieee             2612 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_start_scan_syncro(ieee, 0);
ieee             2615 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->state == RTLLIB_NOLINK) {
ieee             2616 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_info(ieee->dev, "creating new IBSS cell\n");
ieee             2617 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->current_network.channel = ieee->bss_start_channel;
ieee             2618 drivers/staging/rtl8192e/rtllib_softmac.c 		if (!ieee->wap_set)
ieee             2619 drivers/staging/rtl8192e/rtllib_softmac.c 			eth_random_addr(ieee->current_network.bssid);
ieee             2621 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->modulation & RTLLIB_CCK_MODULATION) {
ieee             2623 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->current_network.rates_len = 4;
ieee             2625 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->current_network.rates[0] =
ieee             2627 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->current_network.rates[1] =
ieee             2629 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->current_network.rates[2] =
ieee             2631 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->current_network.rates[3] =
ieee             2635 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->current_network.rates_len = 0;
ieee             2637 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->modulation & RTLLIB_OFDM_MODULATION) {
ieee             2638 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->current_network.rates_ex_len = 8;
ieee             2640 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->current_network.rates_ex[0] =
ieee             2642 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->current_network.rates_ex[1] =
ieee             2644 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->current_network.rates_ex[2] =
ieee             2646 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->current_network.rates_ex[3] =
ieee             2648 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->current_network.rates_ex[4] =
ieee             2650 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->current_network.rates_ex[5] =
ieee             2652 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->current_network.rates_ex[6] =
ieee             2654 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->current_network.rates_ex[7] =
ieee             2657 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->rate = 108;
ieee             2659 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->current_network.rates_ex_len = 0;
ieee             2660 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->rate = 22;
ieee             2663 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->current_network.qos_data.supported = 0;
ieee             2664 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->SetWirelessMode(ieee->dev, IEEE_G);
ieee             2665 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->current_network.mode = ieee->mode;
ieee             2666 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->current_network.atim_window = 0;
ieee             2667 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->current_network.capability = WLAN_CAPABILITY_IBSS;
ieee             2670 drivers/staging/rtl8192e/rtllib_softmac.c 	netdev_info(ieee->dev, "%s(): ieee->mode = %d\n", __func__, ieee->mode);
ieee             2671 drivers/staging/rtl8192e/rtllib_softmac.c 	if ((ieee->mode == IEEE_N_24G) || (ieee->mode == IEEE_N_5G))
ieee             2672 drivers/staging/rtl8192e/rtllib_softmac.c 		HTUseDefaultSetting(ieee);
ieee             2674 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->pHTInfo->bCurrentHTSupport = false;
ieee             2676 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->SetHwRegHandler(ieee->dev, HW_VAR_MEDIA_STATUS,
ieee             2677 drivers/staging/rtl8192e/rtllib_softmac.c 			      (u8 *)(&ieee->state));
ieee             2679 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->state = RTLLIB_LINKED;
ieee             2680 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->link_change(ieee->dev);
ieee             2682 drivers/staging/rtl8192e/rtllib_softmac.c 	HTSetConnectBwMode(ieee, HT_CHANNEL_WIDTH_20, HT_EXTCHNL_OFFSET_NO_EXT);
ieee             2683 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->LedControlHandler != NULL)
ieee             2684 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->LedControlHandler(ieee->dev, LED_CTL_LINK);
ieee             2686 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_start_send_beacons(ieee);
ieee             2688 drivers/staging/rtl8192e/rtllib_softmac.c 	notify_wx_assoc_event(ieee);
ieee             2690 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->data_hard_resume)
ieee             2691 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->data_hard_resume(ieee->dev);
ieee             2693 drivers/staging/rtl8192e/rtllib_softmac.c 	netif_carrier_on(ieee->dev);
ieee             2695 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_unlock(&ieee->wx_mutex);
ieee             2698 drivers/staging/rtl8192e/rtllib_softmac.c inline void rtllib_start_ibss(struct rtllib_device *ieee)
ieee             2700 drivers/staging/rtl8192e/rtllib_softmac.c 	schedule_delayed_work(&ieee->start_ibss_wq, msecs_to_jiffies(150));
ieee             2704 drivers/staging/rtl8192e/rtllib_softmac.c static void rtllib_start_bss(struct rtllib_device *ieee)
ieee             2708 drivers/staging/rtl8192e/rtllib_softmac.c 	if (IS_DOT11D_ENABLE(ieee) && !IS_COUNTRY_IE_VALID(ieee)) {
ieee             2709 drivers/staging/rtl8192e/rtllib_softmac.c 		if (!ieee->global_domain)
ieee             2717 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_softmac_check_all_nets(ieee);
ieee             2726 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             2728 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->state == RTLLIB_NOLINK)
ieee             2729 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_start_scan(ieee);
ieee             2730 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             2735 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rtllib_device *ieee = container_of_dwork_rsl(data,
ieee             2737 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->link_change(ieee->dev);
ieee             2740 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_disassociate(struct rtllib_device *ieee)
ieee             2742 drivers/staging/rtl8192e/rtllib_softmac.c 	netif_carrier_off(ieee->dev);
ieee             2743 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->softmac_features & IEEE_SOFTMAC_TX_QUEUE)
ieee             2744 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_reset_queue(ieee);
ieee             2746 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->data_hard_stop)
ieee             2747 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->data_hard_stop(ieee->dev);
ieee             2748 drivers/staging/rtl8192e/rtllib_softmac.c 	if (IS_DOT11D_ENABLE(ieee))
ieee             2749 drivers/staging/rtl8192e/rtllib_softmac.c 		dot11d_reset(ieee);
ieee             2750 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->state = RTLLIB_NOLINK;
ieee             2751 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->is_set_key = false;
ieee             2752 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->wap_set = 0;
ieee             2754 drivers/staging/rtl8192e/rtllib_softmac.c 	schedule_delayed_work(&ieee->link_change_wq, 0);
ieee             2756 drivers/staging/rtl8192e/rtllib_softmac.c 	notify_wx_assoc_event(ieee);
ieee             2761 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rtllib_device *ieee = container_of_dwork_rsl(data,
ieee             2765 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_lock(&ieee->wx_mutex);
ieee             2766 drivers/staging/rtl8192e/rtllib_softmac.c 	if (!ieee->proto_started)
ieee             2769 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->state != RTLLIB_ASSOCIATING_RETRY)
ieee             2785 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->beinretry = true;
ieee             2786 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->state = RTLLIB_NOLINK;
ieee             2788 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_softmac_check_all_nets(ieee);
ieee             2790 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             2792 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->state == RTLLIB_NOLINK)
ieee             2793 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_start_scan(ieee);
ieee             2794 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             2796 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->beinretry = false;
ieee             2798 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_unlock(&ieee->wx_mutex);
ieee             2801 drivers/staging/rtl8192e/rtllib_softmac.c static struct sk_buff *rtllib_get_beacon_(struct rtllib_device *ieee)
ieee             2809 drivers/staging/rtl8192e/rtllib_softmac.c 	skb = rtllib_probe_resp(ieee, broadcast_addr);
ieee             2821 drivers/staging/rtl8192e/rtllib_softmac.c struct sk_buff *rtllib_get_beacon(struct rtllib_device *ieee)
ieee             2826 drivers/staging/rtl8192e/rtllib_softmac.c 	skb = rtllib_get_beacon_(ieee);
ieee             2831 drivers/staging/rtl8192e/rtllib_softmac.c 	b->header.seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
ieee             2833 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->seq_ctrl[0] == 0xFFF)
ieee             2834 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->seq_ctrl[0] = 0;
ieee             2836 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->seq_ctrl[0]++;
ieee             2842 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_softmac_stop_protocol(struct rtllib_device *ieee, u8 mesh_flag,
ieee             2845 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_stop_scan_syncro(ieee);
ieee             2846 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_lock(&ieee->wx_mutex);
ieee             2847 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_stop_protocol(ieee, shutdown);
ieee             2848 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_unlock(&ieee->wx_mutex);
ieee             2853 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_stop_protocol(struct rtllib_device *ieee, u8 shutdown)
ieee             2855 drivers/staging/rtl8192e/rtllib_softmac.c 	if (!ieee->proto_started)
ieee             2859 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->proto_started = 0;
ieee             2860 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->proto_stoppping = 1;
ieee             2861 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->rtllib_ips_leave != NULL)
ieee             2862 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->rtllib_ips_leave(ieee->dev);
ieee             2865 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_stop_send_beacons(ieee);
ieee             2866 drivers/staging/rtl8192e/rtllib_softmac.c 	del_timer_sync(&ieee->associate_timer);
ieee             2867 drivers/staging/rtl8192e/rtllib_softmac.c 	cancel_delayed_work_sync(&ieee->associate_retry_wq);
ieee             2868 drivers/staging/rtl8192e/rtllib_softmac.c 	cancel_delayed_work_sync(&ieee->start_ibss_wq);
ieee             2869 drivers/staging/rtl8192e/rtllib_softmac.c 	cancel_delayed_work_sync(&ieee->link_change_wq);
ieee             2870 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_stop_scan(ieee);
ieee             2872 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->state <= RTLLIB_ASSOCIATING_AUTHENTICATED)
ieee             2873 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->state = RTLLIB_NOLINK;
ieee             2875 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->state == RTLLIB_LINKED) {
ieee             2876 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->iw_mode == IW_MODE_INFRA)
ieee             2877 drivers/staging/rtl8192e/rtllib_softmac.c 			SendDisassociation(ieee, 1, WLAN_REASON_DEAUTH_LEAVING);
ieee             2878 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_disassociate(ieee);
ieee             2882 drivers/staging/rtl8192e/rtllib_softmac.c 		RemoveAllTS(ieee);
ieee             2883 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->proto_stoppping = 0;
ieee             2885 drivers/staging/rtl8192e/rtllib_softmac.c 	kfree(ieee->assocreq_ies);
ieee             2886 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->assocreq_ies = NULL;
ieee             2887 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->assocreq_ies_len = 0;
ieee             2888 drivers/staging/rtl8192e/rtllib_softmac.c 	kfree(ieee->assocresp_ies);
ieee             2889 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->assocresp_ies = NULL;
ieee             2890 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->assocresp_ies_len = 0;
ieee             2893 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_softmac_start_protocol(struct rtllib_device *ieee, u8 mesh_flag)
ieee             2895 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_lock(&ieee->wx_mutex);
ieee             2896 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_start_protocol(ieee);
ieee             2897 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_unlock(&ieee->wx_mutex);
ieee             2901 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_start_protocol(struct rtllib_device *ieee)
ieee             2906 drivers/staging/rtl8192e/rtllib_softmac.c 	rtllib_update_active_chan_map(ieee);
ieee             2908 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->proto_started)
ieee             2911 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->proto_started = 1;
ieee             2913 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->current_network.channel == 0) {
ieee             2918 drivers/staging/rtl8192e/rtllib_softmac.c 		} while (!ieee->active_channel_map[ch]);
ieee             2919 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->current_network.channel = ch;
ieee             2922 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->current_network.beacon_interval == 0)
ieee             2923 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->current_network.beacon_interval = 100;
ieee             2926 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->last_rxseq_num[i] = -1;
ieee             2927 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->last_rxfrag_num[i] = -1;
ieee             2928 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->last_packet_time[i] = 0;
ieee             2931 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->UpdateBeaconInterruptHandler)
ieee             2932 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->UpdateBeaconInterruptHandler(ieee->dev, false);
ieee             2934 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->wmm_acm = 0;
ieee             2940 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->iw_mode == IW_MODE_INFRA) {
ieee             2941 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_start_bss(ieee);
ieee             2942 drivers/staging/rtl8192e/rtllib_softmac.c 	} else if (ieee->iw_mode == IW_MODE_ADHOC) {
ieee             2943 drivers/staging/rtl8192e/rtllib_softmac.c 		if (ieee->UpdateBeaconInterruptHandler)
ieee             2944 drivers/staging/rtl8192e/rtllib_softmac.c 			ieee->UpdateBeaconInterruptHandler(ieee->dev, true);
ieee             2946 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_start_ibss(ieee);
ieee             2948 drivers/staging/rtl8192e/rtllib_softmac.c 	} else if (ieee->iw_mode == IW_MODE_MASTER) {
ieee             2949 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_start_master_bss(ieee);
ieee             2950 drivers/staging/rtl8192e/rtllib_softmac.c 	} else if (ieee->iw_mode == IW_MODE_MONITOR) {
ieee             2951 drivers/staging/rtl8192e/rtllib_softmac.c 		rtllib_start_monitor_mode(ieee);
ieee             2955 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_softmac_init(struct rtllib_device *ieee)
ieee             2959 drivers/staging/rtl8192e/rtllib_softmac.c 	memset(&ieee->current_network, 0, sizeof(struct rtllib_network));
ieee             2961 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->state = RTLLIB_NOLINK;
ieee             2963 drivers/staging/rtl8192e/rtllib_softmac.c 		ieee->seq_ctrl[i] = 0;
ieee             2964 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->dot11d_info = kzalloc(sizeof(struct rt_dot11d_info), GFP_ATOMIC);
ieee             2965 drivers/staging/rtl8192e/rtllib_softmac.c 	if (!ieee->dot11d_info)
ieee             2966 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_err(ieee->dev, "Can't alloc memory for DOT11D\n");
ieee             2967 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->LinkDetectInfo.SlotIndex = 0;
ieee             2968 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->LinkDetectInfo.SlotNum = 2;
ieee             2969 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->LinkDetectInfo.NumRecvBcnInPeriod = 0;
ieee             2970 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->LinkDetectInfo.NumRecvDataInPeriod = 0;
ieee             2971 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->LinkDetectInfo.NumTxOkInPeriod = 0;
ieee             2972 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->LinkDetectInfo.NumRxOkInPeriod = 0;
ieee             2973 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->LinkDetectInfo.NumRxUnicastOkInPeriod = 0;
ieee             2974 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->bIsAggregateFrame = false;
ieee             2975 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->assoc_id = 0;
ieee             2976 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->queue_stop = 0;
ieee             2977 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->scanning_continue = 0;
ieee             2978 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->softmac_features = 0;
ieee             2979 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->wap_set = 0;
ieee             2980 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->ssid_set = 0;
ieee             2981 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->proto_started = 0;
ieee             2982 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->proto_stoppping = 0;
ieee             2983 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->basic_rate = RTLLIB_DEFAULT_BASIC_RATE;
ieee             2984 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->rate = 22;
ieee             2985 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->ps = RTLLIB_PS_DISABLED;
ieee             2986 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->sta_sleep = LPS_IS_WAKE;
ieee             2988 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->Regdot11HTOperationalRateSet[0] = 0xff;
ieee             2989 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->Regdot11HTOperationalRateSet[1] = 0xff;
ieee             2990 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->Regdot11HTOperationalRateSet[4] = 0x01;
ieee             2992 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->Regdot11TxHTOperationalRateSet[0] = 0xff;
ieee             2993 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->Regdot11TxHTOperationalRateSet[1] = 0xff;
ieee             2994 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->Regdot11TxHTOperationalRateSet[4] = 0x01;
ieee             2996 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->FirstIe_InScan = false;
ieee             2997 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->actscanning = false;
ieee             2998 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->beinretry = false;
ieee             2999 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->is_set_key = false;
ieee             3000 drivers/staging/rtl8192e/rtllib_softmac.c 	init_mgmt_queue(ieee);
ieee             3002 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->tx_pending.txb = NULL;
ieee             3004 drivers/staging/rtl8192e/rtllib_softmac.c 	timer_setup(&ieee->associate_timer, rtllib_associate_abort_cb, 0);
ieee             3006 drivers/staging/rtl8192e/rtllib_softmac.c 	timer_setup(&ieee->beacon_timer, rtllib_send_beacon_cb, 0);
ieee             3008 drivers/staging/rtl8192e/rtllib_softmac.c 	INIT_DELAYED_WORK_RSL(&ieee->link_change_wq,
ieee             3009 drivers/staging/rtl8192e/rtllib_softmac.c 			      (void *)rtllib_link_change_wq, ieee);
ieee             3010 drivers/staging/rtl8192e/rtllib_softmac.c 	INIT_DELAYED_WORK_RSL(&ieee->start_ibss_wq,
ieee             3011 drivers/staging/rtl8192e/rtllib_softmac.c 			      (void *)rtllib_start_ibss_wq, ieee);
ieee             3012 drivers/staging/rtl8192e/rtllib_softmac.c 	INIT_WORK_RSL(&ieee->associate_complete_wq,
ieee             3013 drivers/staging/rtl8192e/rtllib_softmac.c 		      (void *)rtllib_associate_complete_wq, ieee);
ieee             3014 drivers/staging/rtl8192e/rtllib_softmac.c 	INIT_DELAYED_WORK_RSL(&ieee->associate_procedure_wq,
ieee             3015 drivers/staging/rtl8192e/rtllib_softmac.c 			      (void *)rtllib_associate_procedure_wq, ieee);
ieee             3016 drivers/staging/rtl8192e/rtllib_softmac.c 	INIT_DELAYED_WORK_RSL(&ieee->softmac_scan_wq,
ieee             3017 drivers/staging/rtl8192e/rtllib_softmac.c 			      (void *)rtllib_softmac_scan_wq, ieee);
ieee             3018 drivers/staging/rtl8192e/rtllib_softmac.c 	INIT_DELAYED_WORK_RSL(&ieee->associate_retry_wq,
ieee             3019 drivers/staging/rtl8192e/rtllib_softmac.c 			      (void *)rtllib_associate_retry_wq, ieee);
ieee             3020 drivers/staging/rtl8192e/rtllib_softmac.c 	INIT_WORK_RSL(&ieee->wx_sync_scan_wq, (void *)rtllib_wx_sync_scan_wq,
ieee             3021 drivers/staging/rtl8192e/rtllib_softmac.c 		      ieee);
ieee             3023 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_init(&ieee->wx_mutex);
ieee             3024 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_init(&ieee->scan_mutex);
ieee             3025 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_init(&ieee->ips_mutex);
ieee             3027 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_lock_init(&ieee->mgmt_tx_lock);
ieee             3028 drivers/staging/rtl8192e/rtllib_softmac.c 	spin_lock_init(&ieee->beacon_lock);
ieee             3030 drivers/staging/rtl8192e/rtllib_softmac.c 	tasklet_init(&ieee->ps_task,
ieee             3032 drivers/staging/rtl8192e/rtllib_softmac.c 	     (unsigned long)ieee);
ieee             3036 drivers/staging/rtl8192e/rtllib_softmac.c void rtllib_softmac_free(struct rtllib_device *ieee)
ieee             3038 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_lock(&ieee->wx_mutex);
ieee             3039 drivers/staging/rtl8192e/rtllib_softmac.c 	kfree(ieee->dot11d_info);
ieee             3040 drivers/staging/rtl8192e/rtllib_softmac.c 	ieee->dot11d_info = NULL;
ieee             3041 drivers/staging/rtl8192e/rtllib_softmac.c 	del_timer_sync(&ieee->associate_timer);
ieee             3043 drivers/staging/rtl8192e/rtllib_softmac.c 	cancel_delayed_work_sync(&ieee->associate_retry_wq);
ieee             3044 drivers/staging/rtl8192e/rtllib_softmac.c 	cancel_delayed_work_sync(&ieee->associate_procedure_wq);
ieee             3045 drivers/staging/rtl8192e/rtllib_softmac.c 	cancel_delayed_work_sync(&ieee->softmac_scan_wq);
ieee             3046 drivers/staging/rtl8192e/rtllib_softmac.c 	cancel_delayed_work_sync(&ieee->start_ibss_wq);
ieee             3047 drivers/staging/rtl8192e/rtllib_softmac.c 	cancel_delayed_work_sync(&ieee->hw_wakeup_wq);
ieee             3048 drivers/staging/rtl8192e/rtllib_softmac.c 	cancel_delayed_work_sync(&ieee->hw_sleep_wq);
ieee             3049 drivers/staging/rtl8192e/rtllib_softmac.c 	cancel_delayed_work_sync(&ieee->link_change_wq);
ieee             3050 drivers/staging/rtl8192e/rtllib_softmac.c 	cancel_work_sync(&ieee->associate_complete_wq);
ieee             3051 drivers/staging/rtl8192e/rtllib_softmac.c 	cancel_work_sync(&ieee->ips_leave_wq);
ieee             3052 drivers/staging/rtl8192e/rtllib_softmac.c 	cancel_work_sync(&ieee->wx_sync_scan_wq);
ieee             3053 drivers/staging/rtl8192e/rtllib_softmac.c 	mutex_unlock(&ieee->wx_mutex);
ieee             3054 drivers/staging/rtl8192e/rtllib_softmac.c 	tasklet_kill(&ieee->ps_task);
ieee             3059 drivers/staging/rtl8192e/rtllib_softmac.c 		   struct rtllib_device *ieee, u16 asRsn)
ieee             3063 drivers/staging/rtl8192e/rtllib_softmac.c 	int len = sizeof(struct rtllib_disauth) + ieee->tx_headroom;
ieee             3069 drivers/staging/rtl8192e/rtllib_softmac.c 	skb_reserve(skb, ieee->tx_headroom);
ieee             3076 drivers/staging/rtl8192e/rtllib_softmac.c 	ether_addr_copy(disauth->header.addr2, ieee->dev->dev_addr);
ieee             3085 drivers/staging/rtl8192e/rtllib_softmac.c 			struct rtllib_device *ieee, u16 asRsn)
ieee             3089 drivers/staging/rtl8192e/rtllib_softmac.c 	int len = sizeof(struct rtllib_disassoc) + ieee->tx_headroom;
ieee             3096 drivers/staging/rtl8192e/rtllib_softmac.c 	skb_reserve(skb, ieee->tx_headroom);
ieee             3103 drivers/staging/rtl8192e/rtllib_softmac.c 	ether_addr_copy(disass->header.addr2, ieee->dev->dev_addr);
ieee             3110 drivers/staging/rtl8192e/rtllib_softmac.c void SendDisassociation(struct rtllib_device *ieee, bool deauth, u16 asRsn)
ieee             3112 drivers/staging/rtl8192e/rtllib_softmac.c 	struct rtllib_network *beacon = &ieee->current_network;
ieee             3116 drivers/staging/rtl8192e/rtllib_softmac.c 		skb = rtllib_disauth_skb(beacon, ieee, asRsn);
ieee             3118 drivers/staging/rtl8192e/rtllib_softmac.c 		skb = rtllib_disassociate_skb(beacon, ieee, asRsn);
ieee             3121 drivers/staging/rtl8192e/rtllib_softmac.c 		softmac_mgmt_xmit(skb, ieee);
ieee             3124 drivers/staging/rtl8192e/rtllib_softmac.c u8 rtllib_ap_sec_type(struct rtllib_device *ieee)
ieee             3128 drivers/staging/rtl8192e/rtllib_softmac.c 	int wpa_ie_len = ieee->wpa_ie_len;
ieee             3132 drivers/staging/rtl8192e/rtllib_softmac.c 	crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx];
ieee             3133 drivers/staging/rtl8192e/rtllib_softmac.c 	encrypt = (ieee->current_network.capability & WLAN_CAPABILITY_PRIVACY)
ieee             3134 drivers/staging/rtl8192e/rtllib_softmac.c 		  || (ieee->host_encrypt && crypt && crypt->ops &&
ieee             3141 drivers/staging/rtl8192e/rtllib_softmac.c 		if (((ieee->wpa_ie[0] == 0xdd) &&
ieee             3142 drivers/staging/rtl8192e/rtllib_softmac.c 		    (!memcmp(&(ieee->wpa_ie[14]), ccmp_ie, 4))) ||
ieee             3143 drivers/staging/rtl8192e/rtllib_softmac.c 		    ((ieee->wpa_ie[0] == 0x30) &&
ieee             3144 drivers/staging/rtl8192e/rtllib_softmac.c 		    (!memcmp(&ieee->wpa_ie[10], ccmp_rsn_ie, 4))))
ieee             3238 drivers/staging/rtl8192e/rtllib_softmac.c void notify_wx_assoc_event(struct rtllib_device *ieee)
ieee             3242 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->cannot_notify)
ieee             3246 drivers/staging/rtl8192e/rtllib_softmac.c 	if (ieee->state == RTLLIB_LINKED)
ieee             3247 drivers/staging/rtl8192e/rtllib_softmac.c 		memcpy(wrqu.ap_addr.sa_data, ieee->current_network.bssid,
ieee             3251 drivers/staging/rtl8192e/rtllib_softmac.c 		netdev_info(ieee->dev, "%s(): Tell user space disconnected\n",
ieee             3255 drivers/staging/rtl8192e/rtllib_softmac.c 	wireless_send_event(ieee->dev, SIOCGIWAP, &wrqu, NULL);
ieee               29 drivers/staging/rtl8192e/rtllib_softmac_wx.c int rtllib_wx_set_freq(struct rtllib_device *ieee, struct iw_request_info *a,
ieee               35 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee               37 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->iw_mode == IW_MODE_INFRA) {
ieee               64 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		if (ieee->active_channel_map[fwrq->m] != 1) {
ieee               68 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->current_network.channel = fwrq->m;
ieee               69 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->set_chan(ieee->dev, ieee->current_network.channel);
ieee               71 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		if (ieee->iw_mode == IW_MODE_ADHOC ||
ieee               72 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		    ieee->iw_mode == IW_MODE_MASTER)
ieee               73 drivers/staging/rtl8192e/rtllib_softmac_wx.c 			if (ieee->state == RTLLIB_LINKED) {
ieee               74 drivers/staging/rtl8192e/rtllib_softmac_wx.c 				rtllib_stop_send_beacons(ieee);
ieee               75 drivers/staging/rtl8192e/rtllib_softmac_wx.c 				rtllib_start_send_beacons(ieee);
ieee               81 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee               87 drivers/staging/rtl8192e/rtllib_softmac_wx.c int rtllib_wx_get_freq(struct rtllib_device *ieee,
ieee               93 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->current_network.channel == 0)
ieee               95 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	fwrq->m = rtllib_wlan_frequencies[ieee->current_network.channel-1] *
ieee              102 drivers/staging/rtl8192e/rtllib_softmac_wx.c int rtllib_wx_get_wap(struct rtllib_device *ieee,
ieee              110 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->iw_mode == IW_MODE_MONITOR)
ieee              114 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee              116 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->state != RTLLIB_LINKED &&
ieee              117 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->state != RTLLIB_LINKED_SCANNING &&
ieee              118 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->wap_set == 0)
ieee              123 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		       ieee->current_network.bssid, ETH_ALEN);
ieee              125 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee              132 drivers/staging/rtl8192e/rtllib_softmac_wx.c int rtllib_wx_set_wap(struct rtllib_device *ieee,
ieee              141 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	short ifup = ieee->proto_started;
ieee              144 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	rtllib_stop_scan_syncro(ieee);
ieee              146 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee              148 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->iw_mode == IW_MODE_MASTER) {
ieee              159 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		spin_lock_irqsave(&ieee->lock, flags);
ieee              160 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ether_addr_copy(ieee->current_network.bssid, temp->sa_data);
ieee              161 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->wap_set = 0;
ieee              162 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		spin_unlock_irqrestore(&ieee->lock, flags);
ieee              169 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		rtllib_stop_protocol(ieee, true);
ieee              174 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee              176 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	ieee->cannot_notify = false;
ieee              177 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	ether_addr_copy(ieee->current_network.bssid, temp->sa_data);
ieee              178 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	ieee->wap_set = !is_zero_ether_addr(temp->sa_data);
ieee              180 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee              183 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		rtllib_start_protocol(ieee);
ieee              185 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              190 drivers/staging/rtl8192e/rtllib_softmac_wx.c int rtllib_wx_get_essid(struct rtllib_device *ieee, struct iw_request_info *a,
ieee              196 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->iw_mode == IW_MODE_MONITOR)
ieee              200 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee              202 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->current_network.ssid[0] == '\0' ||
ieee              203 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->current_network.ssid_len == 0) {
ieee              208 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->state != RTLLIB_LINKED &&
ieee              209 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->state != RTLLIB_LINKED_SCANNING &&
ieee              210 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->ssid_set == 0) {
ieee              214 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	len = ieee->current_network.ssid_len;
ieee              216 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	strncpy(b, ieee->current_network.ssid, len);
ieee              220 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee              227 drivers/staging/rtl8192e/rtllib_softmac_wx.c int rtllib_wx_set_rate(struct rtllib_device *ieee,
ieee              234 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	ieee->rate = target_rate/100000;
ieee              239 drivers/staging/rtl8192e/rtllib_softmac_wx.c int rtllib_wx_get_rate(struct rtllib_device *ieee,
ieee              245 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	tmp_rate = TxCountToDataRate(ieee,
ieee              246 drivers/staging/rtl8192e/rtllib_softmac_wx.c 				     ieee->softmac_stats.CurrentShowTxate);
ieee              254 drivers/staging/rtl8192e/rtllib_softmac_wx.c int rtllib_wx_set_rts(struct rtllib_device *ieee,
ieee              259 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->rts = DEFAULT_RTS_THRESHOLD;
ieee              264 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->rts = wrqu->rts.value;
ieee              270 drivers/staging/rtl8192e/rtllib_softmac_wx.c int rtllib_wx_get_rts(struct rtllib_device *ieee,
ieee              274 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	wrqu->rts.value = ieee->rts;
ieee              281 drivers/staging/rtl8192e/rtllib_softmac_wx.c int rtllib_wx_set_mode(struct rtllib_device *ieee, struct iw_request_info *a,
ieee              286 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	rtllib_stop_scan_syncro(ieee);
ieee              287 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee              301 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (wrqu->mode == ieee->iw_mode)
ieee              305 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->dev->type = ARPHRD_IEEE80211;
ieee              306 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		rtllib_EnableNetMonitorMode(ieee->dev, false);
ieee              308 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->dev->type = ARPHRD_ETHER;
ieee              309 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		if (ieee->iw_mode == IW_MODE_MONITOR)
ieee              310 drivers/staging/rtl8192e/rtllib_softmac_wx.c 			rtllib_DisableNetMonitorMode(ieee->dev, false);
ieee              313 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (!ieee->proto_started) {
ieee              314 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->iw_mode = wrqu->mode;
ieee              316 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		rtllib_stop_protocol(ieee, true);
ieee              317 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->iw_mode = wrqu->mode;
ieee              318 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		rtllib_start_protocol(ieee);
ieee              322 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              329 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	struct rtllib_device *ieee = container_of_work_rsl(data,
ieee              336 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (!(ieee->softmac_features & IEEE_SOFTMAC_SCAN)) {
ieee              337 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		rtllib_start_scan_syncro(ieee, 0);
ieee              341 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	chan = ieee->current_network.channel;
ieee              343 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->LeisurePSLeave)
ieee              344 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->LeisurePSLeave(ieee->dev);
ieee              346 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	rtllib_sta_ps_send_null_frame(ieee, 1);
ieee              347 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	rtllib_sta_ps_send_null_frame(ieee, 1);
ieee              349 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	rtllib_stop_all_queues(ieee);
ieee              351 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->data_hard_stop)
ieee              352 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->data_hard_stop(ieee->dev);
ieee              353 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	rtllib_stop_send_beacons(ieee);
ieee              354 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	ieee->state = RTLLIB_LINKED_SCANNING;
ieee              355 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	ieee->link_change(ieee->dev);
ieee              359 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->ScanOperationBackupHandler)
ieee              360 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->ScanOperationBackupHandler(ieee->dev, SCAN_OPT_BACKUP);
ieee              362 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->pHTInfo->bCurrentHTSupport && ieee->pHTInfo->bEnableHT &&
ieee              363 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	    ieee->pHTInfo->bCurBW40MHz) {
ieee              365 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		chan_offset = ieee->pHTInfo->CurSTAExtChnlOffset;
ieee              366 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		bandwidth = (enum ht_channel_width)ieee->pHTInfo->bCurBW40MHz;
ieee              369 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->SetBWModeHandler(ieee->dev, HT_CHANNEL_WIDTH_20,
ieee              373 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	rtllib_start_scan_syncro(ieee, 0);
ieee              378 drivers/staging/rtl8192e/rtllib_softmac_wx.c 			ieee->set_chan(ieee->dev, chan + 2);
ieee              380 drivers/staging/rtl8192e/rtllib_softmac_wx.c 			ieee->set_chan(ieee->dev, chan - 2);
ieee              382 drivers/staging/rtl8192e/rtllib_softmac_wx.c 			ieee->set_chan(ieee->dev, chan);
ieee              383 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->SetBWModeHandler(ieee->dev, bandwidth, chan_offset);
ieee              385 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->set_chan(ieee->dev, chan);
ieee              388 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->ScanOperationBackupHandler)
ieee              389 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->ScanOperationBackupHandler(ieee->dev, SCAN_OPT_RESTORE);
ieee              391 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	ieee->state = RTLLIB_LINKED;
ieee              392 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	ieee->link_change(ieee->dev);
ieee              395 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	rtllib_sta_ps_send_null_frame(ieee, 0);
ieee              397 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->LinkDetectInfo.NumRecvBcnInPeriod == 0 ||
ieee              398 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	    ieee->LinkDetectInfo.NumRecvDataInPeriod == 0) {
ieee              399 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->LinkDetectInfo.NumRecvBcnInPeriod = 1;
ieee              400 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->LinkDetectInfo.NumRecvDataInPeriod = 1;
ieee              403 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->data_hard_resume)
ieee              404 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->data_hard_resume(ieee->dev);
ieee              406 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->iw_mode == IW_MODE_ADHOC || ieee->iw_mode == IW_MODE_MASTER)
ieee              407 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		rtllib_start_send_beacons(ieee);
ieee              409 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	rtllib_wake_all_queues(ieee);
ieee              412 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              416 drivers/staging/rtl8192e/rtllib_softmac_wx.c int rtllib_wx_set_scan(struct rtllib_device *ieee, struct iw_request_info *a,
ieee              421 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee              423 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->iw_mode == IW_MODE_MONITOR || !(ieee->proto_started)) {
ieee              428 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->state == RTLLIB_LINKED) {
ieee              429 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		schedule_work(&ieee->wx_sync_scan_wq);
ieee              435 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              440 drivers/staging/rtl8192e/rtllib_softmac_wx.c int rtllib_wx_set_essid(struct rtllib_device *ieee,
ieee              449 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	rtllib_stop_scan_syncro(ieee);
ieee              450 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee              452 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	proto_started = ieee->proto_started;
ieee              456 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->iw_mode == IW_MODE_MONITOR) {
ieee              469 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		rtllib_stop_protocol(ieee, true);
ieee              475 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee              478 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		strncpy(ieee->current_network.ssid, extra, len);
ieee              479 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->current_network.ssid_len = len;
ieee              480 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->cannot_notify = false;
ieee              481 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->ssid_set = 1;
ieee              483 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->ssid_set = 0;
ieee              484 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->current_network.ssid[0] = '\0';
ieee              485 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->current_network.ssid_len = 0;
ieee              487 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee              490 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		rtllib_start_protocol(ieee);
ieee              492 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              497 drivers/staging/rtl8192e/rtllib_softmac_wx.c int rtllib_wx_get_mode(struct rtllib_device *ieee, struct iw_request_info *a,
ieee              500 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	wrqu->mode = ieee->iw_mode;
ieee              505 drivers/staging/rtl8192e/rtllib_softmac_wx.c int rtllib_wx_set_rawtx(struct rtllib_device *ieee,
ieee              512 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	short prev = ieee->raw_tx;
ieee              514 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee              517 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->raw_tx = 1;
ieee              519 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->raw_tx = 0;
ieee              521 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	netdev_info(ieee->dev, "raw TX is %s\n",
ieee              522 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		    ieee->raw_tx ? "enabled" : "disabled");
ieee              524 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->iw_mode == IW_MODE_MONITOR) {
ieee              525 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		if (prev == 0 && ieee->raw_tx) {
ieee              526 drivers/staging/rtl8192e/rtllib_softmac_wx.c 			if (ieee->data_hard_resume)
ieee              527 drivers/staging/rtl8192e/rtllib_softmac_wx.c 				ieee->data_hard_resume(ieee->dev);
ieee              529 drivers/staging/rtl8192e/rtllib_softmac_wx.c 			netif_carrier_on(ieee->dev);
ieee              532 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		if (prev && ieee->raw_tx == 1)
ieee              533 drivers/staging/rtl8192e/rtllib_softmac_wx.c 			netif_carrier_off(ieee->dev);
ieee              536 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              542 drivers/staging/rtl8192e/rtllib_softmac_wx.c int rtllib_wx_get_name(struct rtllib_device *ieee,
ieee              548 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->modulation & RTLLIB_CCK_MODULATION)
ieee              550 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->modulation & RTLLIB_OFDM_MODULATION)
ieee              552 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->mode & (IEEE_N_24G | IEEE_N_5G))
ieee              560 drivers/staging/rtl8192e/rtllib_softmac_wx.c int rtllib_wx_set_power(struct rtllib_device *ieee,
ieee              566 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if ((!ieee->sta_wake_up) ||
ieee              567 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	    (!ieee->enter_sleep_state) ||
ieee              568 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	    (!ieee->ps_is_queue_empty)) {
ieee              569 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		netdev_warn(ieee->dev,
ieee              575 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee              579 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->ps = RTLLIB_PS_DISABLED;
ieee              583 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->ps_timeout = wrqu->power.value / 1000;
ieee              585 drivers/staging/rtl8192e/rtllib_softmac_wx.c 			 ieee->ps_timeout);
ieee              589 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->ps_period = wrqu->power.value / 1000;
ieee              593 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->ps = RTLLIB_PS_UNICAST;
ieee              596 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->ps = RTLLIB_PS_MBCAST;
ieee              599 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		ieee->ps = RTLLIB_PS_UNICAST | RTLLIB_PS_MBCAST;
ieee              611 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              618 drivers/staging/rtl8192e/rtllib_softmac_wx.c int rtllib_wx_get_power(struct rtllib_device *ieee,
ieee              622 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee              624 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if (ieee->ps == RTLLIB_PS_DISABLED) {
ieee              633 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		wrqu->power.value = ieee->ps_timeout * 1000;
ieee              636 drivers/staging/rtl8192e/rtllib_softmac_wx.c 		wrqu->power.value = ieee->ps_period * 1000;
ieee              639 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	if ((ieee->ps & (RTLLIB_PS_MBCAST | RTLLIB_PS_UNICAST)) ==
ieee              642 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	else if (ieee->ps & RTLLIB_PS_MBCAST)
ieee              648 drivers/staging/rtl8192e/rtllib_softmac_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              157 drivers/staging/rtl8192e/rtllib_tx.c int rtllib_encrypt_fragment(struct rtllib_device *ieee, struct sk_buff *frag,
ieee              163 drivers/staging/rtl8192e/rtllib_tx.c 	crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx];
ieee              166 drivers/staging/rtl8192e/rtllib_tx.c 		netdev_info(ieee->dev, "=========>%s(), crypt is null\n",
ieee              186 drivers/staging/rtl8192e/rtllib_tx.c 		netdev_info(ieee->dev, "%s: Encryption failed: len=%d.\n",
ieee              187 drivers/staging/rtl8192e/rtllib_tx.c 			    ieee->dev->name, frag->len);
ieee              268 drivers/staging/rtl8192e/rtllib_tx.c static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee,
ieee              272 drivers/staging/rtl8192e/rtllib_tx.c 	struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
ieee              276 drivers/staging/rtl8192e/rtllib_tx.c 	if (rtllib_act_scanning(ieee, false))
ieee              286 drivers/staging/rtl8192e/rtllib_tx.c 	if (tcb_desc->bdhcp || ieee->CntAfterLink < 2)
ieee              292 drivers/staging/rtl8192e/rtllib_tx.c 	if (!ieee->GetNmodeSupportBySecCfg(ieee->dev))
ieee              295 drivers/staging/rtl8192e/rtllib_tx.c 		if (!GetTs(ieee, (struct ts_common_info **)(&pTxTs), hdr->addr1,
ieee              297 drivers/staging/rtl8192e/rtllib_tx.c 			netdev_info(ieee->dev, "%s: can't get TS\n", __func__);
ieee              301 drivers/staging/rtl8192e/rtllib_tx.c 			if (ieee->wpa_ie_len && (ieee->pairwise_key_type ==
ieee              307 drivers/staging/rtl8192e/rtllib_tx.c 				TsStartAddBaProcess(ieee, pTxTs);
ieee              317 drivers/staging/rtl8192e/rtllib_tx.c 		if (ieee->iw_mode == IW_MODE_INFRA) {
ieee              342 drivers/staging/rtl8192e/rtllib_tx.c static void rtllib_qurey_ShortPreambleMode(struct rtllib_device *ieee,
ieee              348 drivers/staging/rtl8192e/rtllib_tx.c 	else if (ieee->current_network.capability &
ieee              353 drivers/staging/rtl8192e/rtllib_tx.c static void rtllib_query_HTCapShortGI(struct rtllib_device *ieee,
ieee              356 drivers/staging/rtl8192e/rtllib_tx.c 	struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
ieee              374 drivers/staging/rtl8192e/rtllib_tx.c static void rtllib_query_BandwidthMode(struct rtllib_device *ieee,
ieee              377 drivers/staging/rtl8192e/rtllib_tx.c 	struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
ieee              390 drivers/staging/rtl8192e/rtllib_tx.c 	    !ieee->bandwidth_auto_switch.bforced_tx20Mhz)
ieee              394 drivers/staging/rtl8192e/rtllib_tx.c static void rtllib_query_protectionmode(struct rtllib_device *ieee,
ieee              412 drivers/staging/rtl8192e/rtllib_tx.c 	if (ieee->mode < IEEE_N_24G) {
ieee              413 drivers/staging/rtl8192e/rtllib_tx.c 		if (skb->len > ieee->rts) {
ieee              416 drivers/staging/rtl8192e/rtllib_tx.c 		} else if (ieee->current_network.buseprotection) {
ieee              424 drivers/staging/rtl8192e/rtllib_tx.c 	pHTInfo = ieee->pHTInfo;
ieee              438 drivers/staging/rtl8192e/rtllib_tx.c 		if (ieee->current_network.buseprotection) {
ieee              455 drivers/staging/rtl8192e/rtllib_tx.c 		if (skb->len > ieee->rts) {
ieee              467 drivers/staging/rtl8192e/rtllib_tx.c 	if (ieee->current_network.capability & WLAN_CAPABILITY_SHORT_PREAMBLE)
ieee              469 drivers/staging/rtl8192e/rtllib_tx.c 	if (ieee->iw_mode == IW_MODE_MASTER)
ieee              481 drivers/staging/rtl8192e/rtllib_tx.c static void rtllib_txrate_selectmode(struct rtllib_device *ieee,
ieee              484 drivers/staging/rtl8192e/rtllib_tx.c 	if (ieee->bTxDisableRateFallBack)
ieee              487 drivers/staging/rtl8192e/rtllib_tx.c 	if (ieee->bTxUseDriverAssingedRate)
ieee              491 drivers/staging/rtl8192e/rtllib_tx.c 		if (ieee->iw_mode == IW_MODE_INFRA ||
ieee              492 drivers/staging/rtl8192e/rtllib_tx.c 		    ieee->iw_mode == IW_MODE_ADHOC)
ieee              497 drivers/staging/rtl8192e/rtllib_tx.c static u16 rtllib_query_seqnum(struct rtllib_device *ieee, struct sk_buff *skb,
ieee              507 drivers/staging/rtl8192e/rtllib_tx.c 		if (!GetTs(ieee, (struct ts_common_info **)(&pTS), dst,
ieee              537 drivers/staging/rtl8192e/rtllib_tx.c static u8 rtllib_current_rate(struct rtllib_device *ieee)
ieee              539 drivers/staging/rtl8192e/rtllib_tx.c 	if (ieee->mode & IEEE_MODE_MASK)
ieee              540 drivers/staging/rtl8192e/rtllib_tx.c 		return ieee->rate;
ieee              542 drivers/staging/rtl8192e/rtllib_tx.c 	if (ieee->HTCurrentOperaRate)
ieee              543 drivers/staging/rtl8192e/rtllib_tx.c 		return ieee->HTCurrentOperaRate;
ieee              545 drivers/staging/rtl8192e/rtllib_tx.c 		return ieee->rate & 0x7F;
ieee              550 drivers/staging/rtl8192e/rtllib_tx.c 	struct rtllib_device *ieee = (struct rtllib_device *)
ieee              556 drivers/staging/rtl8192e/rtllib_tx.c 	struct net_device_stats *stats = &ieee->stats;
ieee              565 drivers/staging/rtl8192e/rtllib_tx.c 	int qos_activated = ieee->current_network.qos_data.active;
ieee              574 drivers/staging/rtl8192e/rtllib_tx.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee              579 drivers/staging/rtl8192e/rtllib_tx.c 	if ((!ieee->hard_start_xmit && !(ieee->softmac_features &
ieee              581 drivers/staging/rtl8192e/rtllib_tx.c 	   ((!ieee->softmac_data_hard_start_xmit &&
ieee              582 drivers/staging/rtl8192e/rtllib_tx.c 	   (ieee->softmac_features & IEEE_SOFTMAC_TX_QUEUE)))) {
ieee              583 drivers/staging/rtl8192e/rtllib_tx.c 		netdev_warn(ieee->dev, "No xmit handler.\n");
ieee              588 drivers/staging/rtl8192e/rtllib_tx.c 	if (likely(ieee->raw_tx == 0)) {
ieee              590 drivers/staging/rtl8192e/rtllib_tx.c 			netdev_warn(ieee->dev, "skb too small (%d).\n",
ieee              601 drivers/staging/rtl8192e/rtllib_tx.c 		if (ieee->iw_mode == IW_MODE_MONITOR) {
ieee              604 drivers/staging/rtl8192e/rtllib_tx.c 				netdev_warn(ieee->dev,
ieee              630 drivers/staging/rtl8192e/rtllib_tx.c 						ieee->LPSDelayCnt = 200;
ieee              634 drivers/staging/rtl8192e/rtllib_tx.c 				netdev_info(ieee->dev,
ieee              637 drivers/staging/rtl8192e/rtllib_tx.c 				ieee->LPSDelayCnt =
ieee              638 drivers/staging/rtl8192e/rtllib_tx.c 					 ieee->current_network.tim.tim_count;
ieee              643 drivers/staging/rtl8192e/rtllib_tx.c 		crypt = ieee->crypt_info.crypt[ieee->crypt_info.tx_keyidx];
ieee              644 drivers/staging/rtl8192e/rtllib_tx.c 		encrypt = !(ether_type == ETH_P_PAE && ieee->ieee802_1x) &&
ieee              645 drivers/staging/rtl8192e/rtllib_tx.c 			ieee->host_encrypt && crypt && crypt->ops;
ieee              646 drivers/staging/rtl8192e/rtllib_tx.c 		if (!encrypt && ieee->ieee802_1x &&
ieee              647 drivers/staging/rtl8192e/rtllib_tx.c 		    ieee->drop_unencrypted && ether_type != ETH_P_PAE) {
ieee              655 drivers/staging/rtl8192e/rtllib_tx.c 			netdev_dbg(ieee->dev,
ieee              676 drivers/staging/rtl8192e/rtllib_tx.c 		if (ieee->iw_mode == IW_MODE_INFRA) {
ieee              682 drivers/staging/rtl8192e/rtllib_tx.c 					ieee->current_network.bssid);
ieee              686 drivers/staging/rtl8192e/rtllib_tx.c 						ieee->current_network.bssid);
ieee              689 drivers/staging/rtl8192e/rtllib_tx.c 		} else if (ieee->iw_mode == IW_MODE_ADHOC) {
ieee              696 drivers/staging/rtl8192e/rtllib_tx.c 					ieee->current_network.bssid);
ieee              710 drivers/staging/rtl8192e/rtllib_tx.c 			frag_size = ieee->fts;
ieee              718 drivers/staging/rtl8192e/rtllib_tx.c 			while (unlikely(ieee->wmm_acm & (0x01 << skb->priority))) {
ieee              719 drivers/staging/rtl8192e/rtllib_tx.c 				netdev_info(ieee->dev, "skb->priority = %x\n",
ieee              723 drivers/staging/rtl8192e/rtllib_tx.c 				netdev_info(ieee->dev, "converted skb->priority = %x\n",
ieee              739 drivers/staging/rtl8192e/rtllib_tx.c 		if (ieee->config &
ieee              767 drivers/staging/rtl8192e/rtllib_tx.c 				       ieee->tx_headroom, GFP_ATOMIC);
ieee              769 drivers/staging/rtl8192e/rtllib_tx.c 			netdev_warn(ieee->dev, "Could not allocate TXB\n");
ieee              791 drivers/staging/rtl8192e/rtllib_tx.c 			skb_reserve(skb_frag, ieee->tx_headroom);
ieee              794 drivers/staging/rtl8192e/rtllib_tx.c 				if (ieee->hwsec_active)
ieee              820 drivers/staging/rtl8192e/rtllib_tx.c 					 cpu_to_le16(rtllib_query_seqnum(ieee, skb_frag,
ieee              826 drivers/staging/rtl8192e/rtllib_tx.c 					 cpu_to_le16(ieee->seq_ctrl[0]<<4 | i);
ieee              846 drivers/staging/rtl8192e/rtllib_tx.c 				rtllib_encrypt_fragment(ieee, skb_frag,
ieee              848 drivers/staging/rtl8192e/rtllib_tx.c 			if (ieee->config &
ieee              854 drivers/staging/rtl8192e/rtllib_tx.c 			if (ieee->seq_ctrl[UP2AC(skb->priority) + 1] == 0xFFF)
ieee              855 drivers/staging/rtl8192e/rtllib_tx.c 				ieee->seq_ctrl[UP2AC(skb->priority) + 1] = 0;
ieee              857 drivers/staging/rtl8192e/rtllib_tx.c 				ieee->seq_ctrl[UP2AC(skb->priority) + 1]++;
ieee              859 drivers/staging/rtl8192e/rtllib_tx.c 			if (ieee->seq_ctrl[0] == 0xFFF)
ieee              860 drivers/staging/rtl8192e/rtllib_tx.c 				ieee->seq_ctrl[0] = 0;
ieee              862 drivers/staging/rtl8192e/rtllib_tx.c 					ieee->seq_ctrl[0]++;
ieee              866 drivers/staging/rtl8192e/rtllib_tx.c 			netdev_warn(ieee->dev, "skb too small (%d).\n",
ieee              873 drivers/staging/rtl8192e/rtllib_tx.c 			netdev_warn(ieee->dev, "Could not allocate TXB\n");
ieee              890 drivers/staging/rtl8192e/rtllib_tx.c 			if (ieee->pHTInfo->IOTAction &
ieee              893 drivers/staging/rtl8192e/rtllib_tx.c 					 MgntQuery_TxRateExcludeCCKRates(ieee);
ieee              896 drivers/staging/rtl8192e/rtllib_tx.c 				tcb_desc->data_rate = ieee->basic_rate;
ieee              908 drivers/staging/rtl8192e/rtllib_tx.c 			rtllib_txrate_selectmode(ieee, tcb_desc);
ieee              910 drivers/staging/rtl8192e/rtllib_tx.c 				tcb_desc->data_rate = ieee->basic_rate;
ieee              912 drivers/staging/rtl8192e/rtllib_tx.c 				tcb_desc->data_rate = rtllib_current_rate(ieee);
ieee              915 drivers/staging/rtl8192e/rtllib_tx.c 				if (ieee->pHTInfo->IOTAction &
ieee              918 drivers/staging/rtl8192e/rtllib_tx.c 					   MgntQuery_TxRateExcludeCCKRates(ieee);
ieee              931 drivers/staging/rtl8192e/rtllib_tx.c 			rtllib_qurey_ShortPreambleMode(ieee, tcb_desc);
ieee              932 drivers/staging/rtl8192e/rtllib_tx.c 			rtllib_tx_query_agg_cap(ieee, txb->fragments[0],
ieee              934 drivers/staging/rtl8192e/rtllib_tx.c 			rtllib_query_HTCapShortGI(ieee, tcb_desc);
ieee              935 drivers/staging/rtl8192e/rtllib_tx.c 			rtllib_query_BandwidthMode(ieee, tcb_desc);
ieee              936 drivers/staging/rtl8192e/rtllib_tx.c 			rtllib_query_protectionmode(ieee, tcb_desc,
ieee              940 drivers/staging/rtl8192e/rtllib_tx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee              943 drivers/staging/rtl8192e/rtllib_tx.c 		if (ieee->softmac_features & IEEE_SOFTMAC_TX_QUEUE) {
ieee              946 drivers/staging/rtl8192e/rtllib_tx.c 			rtllib_softmac_xmit(txb, ieee);
ieee              948 drivers/staging/rtl8192e/rtllib_tx.c 			if ((*ieee->hard_start_xmit)(txb, dev) == 0) {
ieee              960 drivers/staging/rtl8192e/rtllib_tx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee               34 drivers/staging/rtl8192e/rtllib_wx.c static inline char *rtl819x_translate_scan(struct rtllib_device *ieee,
ieee              154 drivers/staging/rtl8192e/rtllib_wx.c 		max_mcs = HTGetHighestMCSRate(ieee, ht_cap->MCS,
ieee              240 drivers/staging/rtl8192e/rtllib_wx.c int rtllib_wx_get_scan(struct rtllib_device *ieee,
ieee              252 drivers/staging/rtl8192e/rtllib_wx.c 	netdev_dbg(ieee->dev, "Getting scan\n");
ieee              253 drivers/staging/rtl8192e/rtllib_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee              254 drivers/staging/rtl8192e/rtllib_wx.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee              256 drivers/staging/rtl8192e/rtllib_wx.c 	list_for_each_entry(network, &ieee->network_list, list) {
ieee              262 drivers/staging/rtl8192e/rtllib_wx.c 		if (ieee->scan_age == 0 ||
ieee              263 drivers/staging/rtl8192e/rtllib_wx.c 		    time_after(network->last_scanned + ieee->scan_age, jiffies))
ieee              264 drivers/staging/rtl8192e/rtllib_wx.c 			ev = rtl819x_translate_scan(ieee, ev, stop, network,
ieee              267 drivers/staging/rtl8192e/rtllib_wx.c 			netdev_dbg(ieee->dev,
ieee              276 drivers/staging/rtl8192e/rtllib_wx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee              277 drivers/staging/rtl8192e/rtllib_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              281 drivers/staging/rtl8192e/rtllib_wx.c 	netdev_dbg(ieee->dev, "%s(): %d networks returned.\n", __func__, i);
ieee              287 drivers/staging/rtl8192e/rtllib_wx.c int rtllib_wx_set_encode(struct rtllib_device *ieee,
ieee              292 drivers/staging/rtl8192e/rtllib_wx.c 	struct net_device *dev = ieee->dev;
ieee              299 drivers/staging/rtl8192e/rtllib_wx.c 	netdev_dbg(ieee->dev, "%s()\n", __func__);
ieee              309 drivers/staging/rtl8192e/rtllib_wx.c 		key = ieee->crypt_info.tx_keyidx;
ieee              312 drivers/staging/rtl8192e/rtllib_wx.c 	netdev_dbg(ieee->dev, "Key: %d [%s]\n", key, key_provided ?
ieee              314 drivers/staging/rtl8192e/rtllib_wx.c 	crypt = &ieee->crypt_info.crypt[key];
ieee              317 drivers/staging/rtl8192e/rtllib_wx.c 			netdev_dbg(ieee->dev,
ieee              319 drivers/staging/rtl8192e/rtllib_wx.c 			lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt);
ieee              321 drivers/staging/rtl8192e/rtllib_wx.c 			netdev_dbg(ieee->dev, "Disabling encryption.\n");
ieee              327 drivers/staging/rtl8192e/rtllib_wx.c 			if (ieee->crypt_info.crypt[i] != NULL) {
ieee              330 drivers/staging/rtl8192e/rtllib_wx.c 				lib80211_crypt_delayed_deinit(&ieee->crypt_info,
ieee              331 drivers/staging/rtl8192e/rtllib_wx.c 						    &ieee->crypt_info.crypt[i]);
ieee              354 drivers/staging/rtl8192e/rtllib_wx.c 		lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt);
ieee              392 drivers/staging/rtl8192e/rtllib_wx.c 		netdev_dbg(ieee->dev, "Setting key %d to '%s' (%d:%d bytes)\n",
ieee              404 drivers/staging/rtl8192e/rtllib_wx.c 		ieee->crypt_info.tx_keyidx = key;
ieee              411 drivers/staging/rtl8192e/rtllib_wx.c 			netdev_info(ieee->dev, "Setting key %d to all zero.\n",
ieee              423 drivers/staging/rtl8192e/rtllib_wx.c 			netdev_dbg(ieee->dev,
ieee              425 drivers/staging/rtl8192e/rtllib_wx.c 			ieee->crypt_info.tx_keyidx = key;
ieee              431 drivers/staging/rtl8192e/rtllib_wx.c 	ieee->open_wep = !(erq->flags & IW_ENCODE_RESTRICTED);
ieee              432 drivers/staging/rtl8192e/rtllib_wx.c 	ieee->auth_mode = ieee->open_wep ? WLAN_AUTH_OPEN :
ieee              434 drivers/staging/rtl8192e/rtllib_wx.c 	sec.auth_mode = ieee->open_wep ? WLAN_AUTH_OPEN : WLAN_AUTH_SHARED_KEY;
ieee              436 drivers/staging/rtl8192e/rtllib_wx.c 	netdev_dbg(ieee->dev, "Auth: %s\n", sec.auth_mode == WLAN_AUTH_OPEN ?
ieee              445 drivers/staging/rtl8192e/rtllib_wx.c 	if (ieee->set_security)
ieee              446 drivers/staging/rtl8192e/rtllib_wx.c 		ieee->set_security(dev, &sec);
ieee              454 drivers/staging/rtl8192e/rtllib_wx.c 	if (ieee->reset_on_keychange &&
ieee              455 drivers/staging/rtl8192e/rtllib_wx.c 	    ieee->iw_mode != IW_MODE_INFRA &&
ieee              456 drivers/staging/rtl8192e/rtllib_wx.c 	    ieee->reset_port && ieee->reset_port(dev)) {
ieee              464 drivers/staging/rtl8192e/rtllib_wx.c int rtllib_wx_get_encode(struct rtllib_device *ieee,
ieee              472 drivers/staging/rtl8192e/rtllib_wx.c 	netdev_dbg(ieee->dev, "%s()\n", __func__);
ieee              474 drivers/staging/rtl8192e/rtllib_wx.c 	if (ieee->iw_mode == IW_MODE_MONITOR)
ieee              483 drivers/staging/rtl8192e/rtllib_wx.c 		key = ieee->crypt_info.tx_keyidx;
ieee              485 drivers/staging/rtl8192e/rtllib_wx.c 	crypt = ieee->crypt_info.crypt[key];
ieee              500 drivers/staging/rtl8192e/rtllib_wx.c 	if (ieee->open_wep)
ieee              509 drivers/staging/rtl8192e/rtllib_wx.c int rtllib_wx_set_encode_ext(struct rtllib_device *ieee,
ieee              514 drivers/staging/rtl8192e/rtllib_wx.c 	struct net_device *dev = ieee->dev;
ieee              532 drivers/staging/rtl8192e/rtllib_wx.c 		idx = ieee->crypt_info.tx_keyidx;
ieee              535 drivers/staging/rtl8192e/rtllib_wx.c 		crypt = &ieee->crypt_info.crypt[idx];
ieee              541 drivers/staging/rtl8192e/rtllib_wx.c 		if (ieee->iw_mode == IW_MODE_INFRA)
ieee              542 drivers/staging/rtl8192e/rtllib_wx.c 			crypt = &ieee->crypt_info.crypt[idx];
ieee              551 drivers/staging/rtl8192e/rtllib_wx.c 			lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt);
ieee              554 drivers/staging/rtl8192e/rtllib_wx.c 			if (ieee->crypt_info.crypt[i] != NULL)
ieee              580 drivers/staging/rtl8192e/rtllib_wx.c 		netdev_dbg(ieee->dev, "Unknown crypto alg %d\n", ext->alg);
ieee              604 drivers/staging/rtl8192e/rtllib_wx.c 		lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt);
ieee              632 drivers/staging/rtl8192e/rtllib_wx.c 		ieee->crypt_info.tx_keyidx = idx;
ieee              654 drivers/staging/rtl8192e/rtllib_wx.c 	if (ieee->set_security)
ieee              655 drivers/staging/rtl8192e/rtllib_wx.c 		ieee->set_security(ieee->dev, &sec);
ieee              657 drivers/staging/rtl8192e/rtllib_wx.c 	if (ieee->reset_on_keychange &&
ieee              658 drivers/staging/rtl8192e/rtllib_wx.c 	    ieee->iw_mode != IW_MODE_INFRA &&
ieee              659 drivers/staging/rtl8192e/rtllib_wx.c 	    ieee->reset_port && ieee->reset_port(dev)) {
ieee              660 drivers/staging/rtl8192e/rtllib_wx.c 		netdev_dbg(ieee->dev, "Port reset failed\n");
ieee              667 drivers/staging/rtl8192e/rtllib_wx.c int rtllib_wx_set_mlme(struct rtllib_device *ieee,
ieee              675 drivers/staging/rtl8192e/rtllib_wx.c 	if (ieee->state != RTLLIB_LINKED)
ieee              678 drivers/staging/rtl8192e/rtllib_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee              686 drivers/staging/rtl8192e/rtllib_wx.c 			netdev_info(ieee->dev, "disauth packet !\n");
ieee              688 drivers/staging/rtl8192e/rtllib_wx.c 			netdev_info(ieee->dev, "dis associate packet!\n");
ieee              690 drivers/staging/rtl8192e/rtllib_wx.c 		ieee->cannot_notify = true;
ieee              692 drivers/staging/rtl8192e/rtllib_wx.c 		SendDisassociation(ieee, deauth, mlme->reason_code);
ieee              693 drivers/staging/rtl8192e/rtllib_wx.c 		rtllib_disassociate(ieee);
ieee              695 drivers/staging/rtl8192e/rtllib_wx.c 		ieee->wap_set = 0;
ieee              697 drivers/staging/rtl8192e/rtllib_wx.c 			ieee->current_network.bssid[i] = 0x55;
ieee              699 drivers/staging/rtl8192e/rtllib_wx.c 		ieee->ssid_set = 0;
ieee              700 drivers/staging/rtl8192e/rtllib_wx.c 		ieee->current_network.ssid[0] = '\0';
ieee              701 drivers/staging/rtl8192e/rtllib_wx.c 		ieee->current_network.ssid_len = 0;
ieee              704 drivers/staging/rtl8192e/rtllib_wx.c 		mutex_unlock(&ieee->wx_mutex);
ieee              708 drivers/staging/rtl8192e/rtllib_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              714 drivers/staging/rtl8192e/rtllib_wx.c int rtllib_wx_set_auth(struct rtllib_device *ieee,
ieee              729 drivers/staging/rtl8192e/rtllib_wx.c 		ieee->tkip_countermeasures = data->value;
ieee              732 drivers/staging/rtl8192e/rtllib_wx.c 		ieee->drop_unencrypted = data->value;
ieee              737 drivers/staging/rtl8192e/rtllib_wx.c 			ieee->open_wep = 0;
ieee              738 drivers/staging/rtl8192e/rtllib_wx.c 			ieee->auth_mode = 1;
ieee              740 drivers/staging/rtl8192e/rtllib_wx.c 			ieee->open_wep = 1;
ieee              741 drivers/staging/rtl8192e/rtllib_wx.c 			ieee->auth_mode = 0;
ieee              743 drivers/staging/rtl8192e/rtllib_wx.c 			ieee->open_wep = 1;
ieee              744 drivers/staging/rtl8192e/rtllib_wx.c 			ieee->auth_mode = 2;
ieee              750 drivers/staging/rtl8192e/rtllib_wx.c 		ieee->wpa_enabled = (data->value) ? 1 : 0;
ieee              754 drivers/staging/rtl8192e/rtllib_wx.c 		ieee->ieee802_1x = data->value;
ieee              757 drivers/staging/rtl8192e/rtllib_wx.c 		ieee->privacy_invoked = data->value;
ieee              766 drivers/staging/rtl8192e/rtllib_wx.c int rtllib_wx_set_gen_ie(struct rtllib_device *ieee, u8 *ie, size_t len)
ieee              779 drivers/staging/rtl8192e/rtllib_wx.c 			ieee->wps_ie_len = min_t(size_t, len, MAX_WZC_IE_LEN);
ieee              780 drivers/staging/rtl8192e/rtllib_wx.c 			buf = kmemdup(ie, ieee->wps_ie_len, GFP_KERNEL);
ieee              783 drivers/staging/rtl8192e/rtllib_wx.c 			ieee->wps_ie = buf;
ieee              787 drivers/staging/rtl8192e/rtllib_wx.c 	ieee->wps_ie_len = 0;
ieee              788 drivers/staging/rtl8192e/rtllib_wx.c 	kfree(ieee->wps_ie);
ieee              789 drivers/staging/rtl8192e/rtllib_wx.c 	ieee->wps_ie = NULL;
ieee              796 drivers/staging/rtl8192e/rtllib_wx.c 		kfree(ieee->wpa_ie);
ieee              797 drivers/staging/rtl8192e/rtllib_wx.c 		ieee->wpa_ie = buf;
ieee              798 drivers/staging/rtl8192e/rtllib_wx.c 		ieee->wpa_ie_len = len;
ieee              800 drivers/staging/rtl8192e/rtllib_wx.c 		kfree(ieee->wpa_ie);
ieee              801 drivers/staging/rtl8192e/rtllib_wx.c 		ieee->wpa_ie = NULL;
ieee              802 drivers/staging/rtl8192e/rtllib_wx.c 		ieee->wpa_ie_len = 0;
ieee                6 drivers/staging/rtl8192u/ieee80211/dot11d.c void rtl8192u_dot11d_init(struct ieee80211_device *ieee)
ieee                8 drivers/staging/rtl8192u/ieee80211/dot11d.c 	struct rt_dot11d_info *dot11d_info = GET_DOT11D_INFO(ieee);
ieee               16 drivers/staging/rtl8192u/ieee80211/dot11d.c 	RESET_CIE_WATCHDOG(ieee);
ieee               18 drivers/staging/rtl8192u/ieee80211/dot11d.c 	netdev_info(ieee->dev, "rtl8192u_dot11d_init()\n");
ieee               23 drivers/staging/rtl8192u/ieee80211/dot11d.c void dot11d_reset(struct ieee80211_device *ieee)
ieee               26 drivers/staging/rtl8192u/ieee80211/dot11d.c 	struct rt_dot11d_info *dot11d_info = GET_DOT11D_INFO(ieee);
ieee               39 drivers/staging/rtl8192u/ieee80211/dot11d.c 	RESET_CIE_WATCHDOG(ieee);
ieee             2073 drivers/staging/rtl8192u/ieee80211/ieee80211.h static inline int ieee80211_is_valid_mode(struct ieee80211_device *ieee, int mode)
ieee             2082 drivers/staging/rtl8192u/ieee80211/ieee80211.h 	    (ieee->modulation & IEEE80211_OFDM_MODULATION) &&
ieee             2083 drivers/staging/rtl8192u/ieee80211/ieee80211.h 	    (ieee->freq_band & IEEE80211_52GHZ_BAND))
ieee             2087 drivers/staging/rtl8192u/ieee80211/ieee80211.h 	    (ieee->modulation & IEEE80211_OFDM_MODULATION) &&
ieee             2088 drivers/staging/rtl8192u/ieee80211/ieee80211.h 	    (ieee->freq_band & IEEE80211_24GHZ_BAND))
ieee             2092 drivers/staging/rtl8192u/ieee80211/ieee80211.h 	    (ieee->modulation & IEEE80211_CCK_MODULATION) &&
ieee             2093 drivers/staging/rtl8192u/ieee80211/ieee80211.h 	    (ieee->freq_band & IEEE80211_24GHZ_BAND))
ieee             2174 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_set_encryption(struct ieee80211_device *ieee);
ieee             2178 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_encrypt_fragment(struct ieee80211_device *ieee,
ieee             2186 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,
ieee             2188 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_rx_mgt(struct ieee80211_device *ieee,
ieee             2193 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_get_scan(struct ieee80211_device *ieee,
ieee             2196 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_set_encode(struct ieee80211_device *ieee,
ieee             2199 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_get_encode(struct ieee80211_device *ieee,
ieee             2202 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_get_encode_ext(struct ieee80211_device *ieee,
ieee             2205 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_set_encode_ext(struct ieee80211_device *ieee,
ieee             2208 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_set_auth(struct ieee80211_device *ieee,
ieee             2211 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_set_mlme(struct ieee80211_device *ieee,
ieee             2214 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_set_gen_ie(struct ieee80211_device *ieee, u8 *ie, size_t len);
ieee             2219 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_rx_frame_softmac(struct ieee80211_device *ieee,
ieee             2223 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_softmac_new_net(struct ieee80211_device *ieee,
ieee             2226 drivers/staging/rtl8192u/ieee80211/ieee80211.h void SendDisassociation(struct ieee80211_device *ieee, u8 *asSta, u8 asRsn);
ieee             2228 drivers/staging/rtl8192u/ieee80211/ieee80211.h 			    struct ieee80211_device *ieee);
ieee             2230 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_stop_send_beacons(struct ieee80211_device *ieee);
ieee             2231 drivers/staging/rtl8192u/ieee80211/ieee80211.h void notify_wx_assoc_event(struct ieee80211_device *ieee);
ieee             2232 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_softmac_check_all_nets(struct ieee80211_device *ieee);
ieee             2233 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_start_bss(struct ieee80211_device *ieee);
ieee             2234 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_start_master_bss(struct ieee80211_device *ieee);
ieee             2235 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_start_ibss(struct ieee80211_device *ieee);
ieee             2236 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_softmac_init(struct ieee80211_device *ieee);
ieee             2237 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_softmac_free(struct ieee80211_device *ieee);
ieee             2238 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_associate_abort(struct ieee80211_device *ieee);
ieee             2239 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_disassociate(struct ieee80211_device *ieee);
ieee             2240 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_stop_scan(struct ieee80211_device *ieee);
ieee             2241 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_start_scan_syncro(struct ieee80211_device *ieee);
ieee             2242 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_check_all_nets(struct ieee80211_device *ieee);
ieee             2243 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_start_protocol(struct ieee80211_device *ieee);
ieee             2244 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_stop_protocol(struct ieee80211_device *ieee);
ieee             2245 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_softmac_start_protocol(struct ieee80211_device *ieee);
ieee             2246 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_softmac_stop_protocol(struct ieee80211_device *ieee);
ieee             2247 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_reset_queue(struct ieee80211_device *ieee);
ieee             2248 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_wake_queue(struct ieee80211_device *ieee);
ieee             2249 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_stop_queue(struct ieee80211_device *ieee);
ieee             2250 drivers/staging/rtl8192u/ieee80211/ieee80211.h struct sk_buff *ieee80211_get_beacon(struct ieee80211_device *ieee);
ieee             2251 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_start_send_beacons(struct ieee80211_device *ieee);
ieee             2252 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_stop_send_beacons(struct ieee80211_device *ieee);
ieee             2253 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wpa_supplicant_ioctl(struct ieee80211_device *ieee,
ieee             2255 drivers/staging/rtl8192u/ieee80211/ieee80211.h void notify_wx_assoc_event(struct ieee80211_device *ieee);
ieee             2256 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_ps_tx_ack(struct ieee80211_device *ieee, short success);
ieee             2258 drivers/staging/rtl8192u/ieee80211/ieee80211.h void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee);
ieee             2274 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_get_wap(struct ieee80211_device *ieee,
ieee             2278 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_set_wap(struct ieee80211_device *ieee,
ieee             2283 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_get_essid(struct ieee80211_device *ieee,
ieee             2287 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_set_rate(struct ieee80211_device *ieee,
ieee             2291 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_get_rate(struct ieee80211_device *ieee,
ieee             2295 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_set_mode(struct ieee80211_device *ieee,
ieee             2299 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_set_scan(struct ieee80211_device *ieee,
ieee             2303 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_set_essid(struct ieee80211_device *ieee,
ieee             2307 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_get_mode(struct ieee80211_device *ieee,
ieee             2311 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_set_freq(struct ieee80211_device *ieee,
ieee             2315 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_get_freq(struct ieee80211_device *ieee,
ieee             2327 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_set_rawtx(struct ieee80211_device *ieee,
ieee             2331 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_get_name(struct ieee80211_device *ieee,
ieee             2335 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_set_power(struct ieee80211_device *ieee,
ieee             2339 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_get_power(struct ieee80211_device *ieee,
ieee             2343 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_set_rts(struct ieee80211_device *ieee,
ieee             2347 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_wx_get_rts(struct ieee80211_device *ieee,
ieee             2355 drivers/staging/rtl8192u/ieee80211/ieee80211.h void HTSetConnectBwMode(struct ieee80211_device *ieee,
ieee             2357 drivers/staging/rtl8192u/ieee80211/ieee80211.h void HTUpdateDefaultSetting(struct ieee80211_device *ieee);
ieee             2358 drivers/staging/rtl8192u/ieee80211/ieee80211.h void HTConstructCapabilityElement(struct ieee80211_device *ieee, u8 *posHTCap,
ieee             2360 drivers/staging/rtl8192u/ieee80211/ieee80211.h void HTConstructInfoElement(struct ieee80211_device *ieee, u8 *posHTInfo,
ieee             2362 drivers/staging/rtl8192u/ieee80211/ieee80211.h void HTConstructRT2RTAggElement(struct ieee80211_device *ieee, u8 *posRT2RTAgg,
ieee             2364 drivers/staging/rtl8192u/ieee80211/ieee80211.h void HTOnAssocRsp(struct ieee80211_device *ieee);
ieee             2365 drivers/staging/rtl8192u/ieee80211/ieee80211.h void HTInitializeHTInfo(struct ieee80211_device *ieee);
ieee             2367 drivers/staging/rtl8192u/ieee80211/ieee80211.h void HTResetSelfAndSavePeerSetting(struct ieee80211_device *ieee,
ieee             2369 drivers/staging/rtl8192u/ieee80211/ieee80211.h void HTUpdateSelfAndPeerSetting(struct ieee80211_device *ieee,
ieee             2371 drivers/staging/rtl8192u/ieee80211/ieee80211.h u8 HTGetHighestMCSRate(struct ieee80211_device *ieee,
ieee             2375 drivers/staging/rtl8192u/ieee80211/ieee80211.h u8 HTCCheck(struct ieee80211_device *ieee, u8 *pFrame);
ieee             2377 drivers/staging/rtl8192u/ieee80211/ieee80211.h bool IsHTHalfNmodeAPs(struct ieee80211_device *ieee);
ieee             2378 drivers/staging/rtl8192u/ieee80211/ieee80211.h u16 TxCountToDataRate(struct ieee80211_device *ieee, u8 nDataRate);
ieee             2380 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_rx_ADDBAReq(struct ieee80211_device *ieee, struct sk_buff *skb);
ieee             2381 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_rx_ADDBARsp(struct ieee80211_device *ieee, struct sk_buff *skb);
ieee             2382 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_rx_DELBA(struct ieee80211_device *ieee, struct sk_buff *skb);
ieee             2383 drivers/staging/rtl8192u/ieee80211/ieee80211.h void TsInitAddBA(struct ieee80211_device *ieee, struct tx_ts_record *pTS,
ieee             2385 drivers/staging/rtl8192u/ieee80211/ieee80211.h void TsInitDelBA(struct ieee80211_device *ieee,
ieee             2393 drivers/staging/rtl8192u/ieee80211/ieee80211.h 	struct ieee80211_device		*ieee,
ieee             2400 drivers/staging/rtl8192u/ieee80211/ieee80211.h void TSInitialize(struct ieee80211_device *ieee);
ieee             2401 drivers/staging/rtl8192u/ieee80211/ieee80211.h void TsStartAddBaProcess(struct ieee80211_device *ieee, struct tx_ts_record   *pTxTS);
ieee             2402 drivers/staging/rtl8192u/ieee80211/ieee80211.h void RemovePeerTS(struct ieee80211_device *ieee, u8 *Addr);
ieee             2403 drivers/staging/rtl8192u/ieee80211/ieee80211.h void RemoveAllTS(struct ieee80211_device *ieee);
ieee             2404 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_softmac_scan_syncro(struct ieee80211_device *ieee);
ieee             2408 drivers/staging/rtl8192u/ieee80211/ieee80211.h static inline void ieee80211_increment_scans(struct ieee80211_device *ieee)
ieee             2410 drivers/staging/rtl8192u/ieee80211/ieee80211.h 	ieee->scans++;
ieee             2413 drivers/staging/rtl8192u/ieee80211/ieee80211.h static inline int ieee80211_get_scans(struct ieee80211_device *ieee)
ieee             2415 drivers/staging/rtl8192u/ieee80211/ieee80211.h 	return ieee->scans;
ieee             2436 drivers/staging/rtl8192u/ieee80211/ieee80211.h int ieee80211_parse_info_param(struct ieee80211_device *ieee,
ieee             2442 drivers/staging/rtl8192u/ieee80211/ieee80211.h void ieee80211_indicate_packets(struct ieee80211_device *ieee,
ieee               34 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c void ieee80211_crypt_deinit_entries(struct ieee80211_device *ieee,
ieee               40 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c 	for (ptr = ieee->crypt_deinit_list.next, n = ptr->next;
ieee               41 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c 	     ptr != &ieee->crypt_deinit_list; ptr = n, n = ptr->next) {
ieee               57 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c 	struct ieee80211_device *ieee = from_timer(ieee, t, crypt_deinit_timer);
ieee               60 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee               61 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c 	ieee80211_crypt_deinit_entries(ieee, 0);
ieee               62 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c 	if (!list_empty(&ieee->crypt_deinit_list)) {
ieee               63 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c 		netdev_dbg(ieee->dev, "%s: entries remaining in delayed crypt deletion list\n",
ieee               64 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c 				ieee->dev->name);
ieee               65 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c 		ieee->crypt_deinit_timer.expires = jiffies + HZ;
ieee               66 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c 		add_timer(&ieee->crypt_deinit_timer);
ieee               68 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee               72 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c void ieee80211_crypt_delayed_deinit(struct ieee80211_device *ieee,
ieee               89 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee               90 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c 	list_add(&tmp->list, &ieee->crypt_deinit_list);
ieee               91 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c 	if (!timer_pending(&ieee->crypt_deinit_timer)) {
ieee               92 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c 		ieee->crypt_deinit_timer.expires = jiffies + HZ;
ieee               93 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c 		add_timer(&ieee->crypt_deinit_timer);
ieee               95 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee               81 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.h void ieee80211_crypt_deinit_entries(struct ieee80211_device *ieee, int force);
ieee               83 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.h void ieee80211_crypt_delayed_deinit(struct ieee80211_device *ieee,
ieee               62 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c static inline int ieee80211_networks_allocate(struct ieee80211_device *ieee)
ieee               64 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	if (ieee->networks)
ieee               67 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->networks = kcalloc(MAX_NETWORK_COUNT,
ieee               70 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	if (!ieee->networks) {
ieee               72 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 		       ieee->dev->name);
ieee               79 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c static inline void ieee80211_networks_free(struct ieee80211_device *ieee)
ieee               81 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	if (!ieee->networks)
ieee               83 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	kfree(ieee->networks);
ieee               84 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->networks = NULL;
ieee               87 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c static inline void ieee80211_networks_initialize(struct ieee80211_device *ieee)
ieee               91 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	INIT_LIST_HEAD(&ieee->network_free_list);
ieee               92 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	INIT_LIST_HEAD(&ieee->network_list);
ieee               94 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 		list_add_tail(&ieee->networks[i].list, &ieee->network_free_list);
ieee               99 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	struct ieee80211_device *ieee;
ieee              111 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee = netdev_priv(dev);
ieee              112 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->dev = dev;
ieee              114 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	err = ieee80211_networks_allocate(ieee);
ieee              120 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee80211_networks_initialize(ieee);
ieee              123 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->fts = DEFAULT_FTS;
ieee              124 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->scan_age = DEFAULT_MAX_SCAN_AGE;
ieee              125 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->open_wep = 1;
ieee              128 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->host_encrypt = 1;
ieee              129 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->host_decrypt = 1;
ieee              130 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->ieee802_1x = 1; /* Default to supporting 802.1x */
ieee              132 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	INIT_LIST_HEAD(&ieee->crypt_deinit_list);
ieee              133 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	timer_setup(&ieee->crypt_deinit_timer, ieee80211_crypt_deinit_handler,
ieee              136 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	spin_lock_init(&ieee->lock);
ieee              137 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	spin_lock_init(&ieee->wpax_suitlist_lock);
ieee              138 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	spin_lock_init(&ieee->bw_spinlock);
ieee              139 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	spin_lock_init(&ieee->reorder_spinlock);
ieee              141 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	atomic_set(&ieee->atm_chnlop, 0);
ieee              142 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	atomic_set(&ieee->atm_swbw, 0);
ieee              144 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->wpax_type_set = 0;
ieee              145 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->wpa_enabled = 0;
ieee              146 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->tkip_countermeasures = 0;
ieee              147 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->drop_unencrypted = 0;
ieee              148 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->privacy_invoked = 0;
ieee              149 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->ieee802_1x = 1;
ieee              150 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->raw_tx = 0;
ieee              152 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->hwsec_active = 0; /* disable hwsec, switch it on when necessary. */
ieee              154 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee80211_softmac_init(ieee);
ieee              156 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->pHTInfo = kzalloc(sizeof(RT_HIGH_THROUGHPUT), GFP_KERNEL);
ieee              157 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	if (!ieee->pHTInfo) {
ieee              163 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 		ieee80211_networks_free(ieee);
ieee              166 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	HTUpdateDefaultSetting(ieee);
ieee              167 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	HTInitializeHTInfo(ieee); /* may move to other place. */
ieee              168 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	TSInitialize(ieee);
ieee              171 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 		INIT_LIST_HEAD(&ieee->ibss_mac_hash[i]);
ieee              174 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 		ieee->last_rxseq_num[i] = -1;
ieee              175 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 		ieee->last_rxfrag_num[i] = -1;
ieee              176 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 		ieee->last_packet_time[i] = 0;
ieee              193 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	struct ieee80211_device *ieee = netdev_priv(dev);
ieee              197 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	kfree(ieee->pHTInfo);
ieee              198 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee->pHTInfo = NULL;
ieee              199 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	RemoveAllTS(ieee);
ieee              200 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee80211_softmac_free(ieee);
ieee              201 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	del_timer_sync(&ieee->crypt_deinit_timer);
ieee              202 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee80211_crypt_deinit_entries(ieee, 1);
ieee              205 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 		struct ieee80211_crypt_data *crypt = ieee->crypt[i];
ieee              211 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 			ieee->crypt[i] = NULL;
ieee              215 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 	ieee80211_networks_free(ieee);
ieee               42 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c static inline void ieee80211_monitor_rx(struct ieee80211_device *ieee,
ieee               49 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	skb->dev = ieee->dev;
ieee               62 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c ieee80211_frag_cache_find(struct ieee80211_device *ieee, unsigned int seq,
ieee               69 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		entry = &ieee->frag_cache[tid][i];
ieee               92 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c ieee80211_frag_cache_get(struct ieee80211_device *ieee,
ieee              121 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		skb = dev_alloc_skb(ieee->dev->mtu +
ieee              131 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		entry = &ieee->frag_cache[tid][ieee->frag_next_idx[tid]];
ieee              132 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		ieee->frag_next_idx[tid]++;
ieee              133 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		if (ieee->frag_next_idx[tid] >= IEEE80211_FRAG_CACHE_LEN)
ieee              134 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			ieee->frag_next_idx[tid] = 0;
ieee              148 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		entry = ieee80211_frag_cache_find(ieee, seq, frag, tid, hdr->addr2,
ieee              161 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c static int ieee80211_frag_cache_invalidate(struct ieee80211_device *ieee,
ieee              186 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	entry = ieee80211_frag_cache_find(ieee, seq, -1, tid, hdr->addr2,
ieee              208 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c ieee80211_rx_frame_mgmt(struct ieee80211_device *ieee, struct sk_buff *skb,
ieee              219 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	ieee80211_rx_mgt(ieee, (struct rtl_80211_hdr_4addr *)skb->data, rx_stats);
ieee              221 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if ((memcmp(hdr->addr1, ieee->dev->dev_addr, ETH_ALEN))) {
ieee              227 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	ieee80211_rx_frame_softmac(ieee, skb, rx_stats, type, stype);
ieee              234 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (ieee->iw_mode == IW_MODE_MASTER) {
ieee              236 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		       ieee->dev->name);
ieee              243 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (ieee->hostapd && type == IEEE80211_TYPE_MGMT) {
ieee              245 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		    ieee->iw_mode == IW_MODE_MASTER) {
ieee              256 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		ieee->apdevstats.rx_packets++;
ieee              257 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		ieee->apdevstats.rx_bytes += skb->len;
ieee              258 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		prism2_rx_80211(ieee->apdev, skb, rx_stats, PRISM2_RX_MGMT);
ieee              262 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	    if (ieee->iw_mode == IW_MODE_MASTER) {
ieee              292 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c static int ieee80211_is_eapol_frame(struct ieee80211_device *ieee,
ieee              295 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	struct net_device *dev = ieee->dev;
ieee              334 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c ieee80211_rx_frame_decrypt(struct ieee80211_device *ieee, struct sk_buff *skb,
ieee              342 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (ieee->hwsec_active) {
ieee              349 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (ieee->tkip_countermeasures &&
ieee              354 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			       ieee->dev->name, hdr->addr2);
ieee              370 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		ieee->ieee_stats.rx_discards_undecryptable++;
ieee              380 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c ieee80211_rx_frame_decrypt_msdu(struct ieee80211_device *ieee, struct sk_buff *skb,
ieee              388 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (ieee->hwsec_active) {
ieee              402 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		       ieee->dev->name, hdr->addr2, keyidx);
ieee              412 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c static int is_duplicate_packet(struct ieee80211_device *ieee,
ieee              441 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	switch (ieee->iw_mode) {
ieee              449 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		list_for_each(p, &ieee->ibss_mac_hash[index]) {
ieee              455 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		if (p == &ieee->ibss_mac_hash[index]) {
ieee              463 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			list_add(&entry->list, &ieee->ibss_mac_hash[index]);
ieee              473 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		last_seq = &ieee->last_rxseq_num[tid];
ieee              474 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		last_frag = &ieee->last_rxfrag_num[tid];
ieee              475 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		last_time = &ieee->last_packet_time[tid];
ieee              524 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c void ieee80211_indicate_packets(struct ieee80211_device *ieee, struct ieee80211_rxb **prxbIndicateArray, u8  index)
ieee              558 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 				sub_skb->protocol = eth_type_trans(sub_skb, ieee->dev);
ieee              560 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 				sub_skb->dev = ieee->dev;
ieee              563 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 				ieee->last_rx_ps_time = jiffies;
ieee              573 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c static void RxReorderIndicatePacket(struct ieee80211_device *ieee,
ieee              577 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	PRT_HIGH_THROUGHPUT	pHTInfo = ieee->pHTInfo;
ieee              650 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		if (!list_empty(&ieee->RxReorder_Unused_List)) {
ieee              651 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			pReorderEntry = list_entry(ieee->RxReorder_Unused_List.next, struct rx_reorder_entry, List);
ieee              662 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 				list_add_tail(&pReorderEntry->List, &ieee->RxReorder_Unused_List);
ieee              716 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			list_add_tail(&pReorderEntry->List, &ieee->RxReorder_Unused_List);
ieee              735 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		ieee80211_indicate_packets(ieee, prxbIndicateArray, index);
ieee              869 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,
ieee              872 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	struct net_device *dev = ieee->dev;
ieee              904 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	stats = &ieee->stats;
ieee              920 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (HTCCheck(ieee, skb->data)) {
ieee              945 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (ieee->iw_mode == IW_MODE_MONITOR) {
ieee              946 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		ieee80211_monitor_rx(ieee, skb, rx_stats);
ieee              952 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (ieee->host_decrypt) {
ieee              956 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		crypt = ieee->crypt[idx];
ieee              985 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			ieee->ieee_stats.rx_discards_undecryptable++;
ieee              994 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if ((!ieee->pHTInfo->bCurRxReorderEnable) || !ieee->current_network.qos_data.active || !IsDataFrame(skb->data) || IsLegacyDataFrame(skb->data)) {
ieee              995 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		if (is_duplicate_packet(ieee, hdr))
ieee             1002 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 				ieee,
ieee             1027 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		if (ieee80211_rx_frame_mgmt(ieee, skb, rx_stats, type, stype))
ieee             1050 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		memcpy(bssid, ieee->current_network.bssid, ETH_ALEN);
ieee             1060 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (hostap_rx_frame_wds(ieee, hdr, fc, &wds))
ieee             1067 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (ieee->iw_mode == IW_MODE_MASTER && !wds &&
ieee             1069 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	    ieee->stadev &&
ieee             1070 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	    memcmp(hdr->addr2, ieee->assoc_ap_addr, ETH_ALEN) == 0) {
ieee             1072 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		skb->dev = dev = ieee->stadev;
ieee             1077 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if ((ieee->iw_mode == IW_MODE_MASTER ||
ieee             1078 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	     ieee->iw_mode == IW_MODE_REPEAT) &&
ieee             1080 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		switch (hostap_handle_sta_rx(ieee, dev, skb, rx_stats,
ieee             1109 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (memcmp(bssid, ieee->current_network.bssid, ETH_ALEN))
ieee             1114 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (ieee->host_decrypt && (fc & IEEE80211_FCTL_WEP) &&
ieee             1115 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	    (keyidx = ieee80211_rx_frame_decrypt(ieee, skb, crypt)) < 0) {
ieee             1128 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		struct sk_buff *frag_skb = ieee80211_frag_cache_get(ieee, hdr);
ieee             1147 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			ieee80211_frag_cache_invalidate(ieee, hdr);
ieee             1174 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		ieee80211_frag_cache_invalidate(ieee, hdr);
ieee             1179 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (ieee->host_decrypt && (fc & IEEE80211_FCTL_WEP) &&
ieee             1180 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	    ieee80211_rx_frame_decrypt_msdu(ieee, skb, keyidx, crypt)) {
ieee             1186 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	ieee->LinkDetectInfo.NumRecvDataInPeriod++;
ieee             1187 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	ieee->LinkDetectInfo.NumRxOkInPeriod++;
ieee             1190 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (crypt && !(fc & IEEE80211_FCTL_WEP) && !ieee->open_wep) {
ieee             1192 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		    ieee80211_is_eapol_frame(ieee, skb, hdrlen)) {
ieee             1213 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	    ieee80211_is_eapol_frame(ieee, skb, hdrlen)) {
ieee             1221 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (crypt && !(fc & IEEE80211_FCTL_WEP) && !ieee->open_wep &&
ieee             1222 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	    !ieee80211_is_eapol_frame(ieee, skb, hdrlen)) {
ieee             1236 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (ieee->current_network.qos_data.active && IsQoSDataFrame(skb->data)
ieee             1240 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		GetTs(ieee, (struct ts_common_info **)&pTS, hdr->addr2, TID, RX_DIR, true);
ieee             1242 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			ieee->bis_any_nonbepkts = true;
ieee             1264 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (!ieee->pHTInfo->bCurRxReorderEnable || !pTS) {
ieee             1302 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 				ieee->last_rx_ps_time = jiffies;
ieee             1311 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		RxReorderIndicatePacket(ieee, rxb, pTS, SeqNum);
ieee             1535 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	struct ieee80211_device *ieee,
ieee             1541 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (IS_DOT11D_ENABLE(ieee)) {
ieee             1546 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			if (!IS_COUNTRY_IE_VALID(ieee)) {
ieee             1547 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 				dot11d_update_country_ie(ieee, addr2, info_element->len, info_element->data);
ieee             1556 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		if (IS_EQUAL_CIE_SRC(ieee, addr2)) {
ieee             1557 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			UPDATE_CIE_WATCHDOG(ieee);
ieee             1563 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c int ieee80211_parse_info_param(struct ieee80211_device *ieee,
ieee             1690 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			if (ieee->state != IEEE80211_LINKED)
ieee             1706 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			if (ieee->assoc_id < 8 * offset ||
ieee             1707 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 				ieee->assoc_id > 8 * (offset + info_element->len - 3))
ieee             1711 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			offset = (ieee->assoc_id / 8) - offset;// + ((aid % 8)? 0 : 1) ;
ieee             1713 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			if (info_element->data[3 + offset] & (1 << (ieee->assoc_id % 8)))
ieee             1809 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			if (ieee->aggregation) {
ieee             1990 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			ieee80211_extract_country_ie(ieee, info_element, network, network->bssid);//addr2 is same as addr3 when from an AP
ieee             2066 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	struct ieee80211_device *ieee,
ieee             2121 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	    (ieee, beacon->info_element, stats->len - sizeof(*beacon), network, stats))
ieee             2162 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 				  struct ieee80211_network *dst, struct ieee80211_device *ieee)
ieee             2169 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		(((src->ssid_len == dst->ssid_len) || (ieee->iw_mode == IW_MODE_INFRA)) &&
ieee             2173 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		(!memcmp(src->ssid, dst->ssid, src->ssid_len) || (ieee->iw_mode == IW_MODE_INFRA)) &&
ieee             2294 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	struct ieee80211_device *ieee,
ieee             2336 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (ieee80211_network_init(ieee, beacon, network, stats)) {
ieee             2353 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (!is_legal_channel(ieee, network->channel))
ieee             2355 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (ieee->bGlobalDomain) {
ieee             2357 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			if (IS_COUNTRY_IE_VALID(ieee)) {
ieee             2359 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 				if (!is_legal_channel(ieee, network->channel)) {
ieee             2372 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			if (IS_COUNTRY_IE_VALID(ieee)) {
ieee             2374 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 				if (!is_legal_channel(ieee, network->channel)) {
ieee             2399 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             2401 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (is_same_network(&ieee->current_network, network, ieee)) {
ieee             2402 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		update_network(&ieee->current_network, network);
ieee             2403 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		if ((ieee->current_network.mode == IEEE_N_24G || ieee->current_network.mode == IEEE_G)
ieee             2404 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		    && ieee->current_network.berp_info_valid){
ieee             2405 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			if (ieee->current_network.erp_value & ERP_UseProtection)
ieee             2406 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 				ieee->current_network.buseprotection = true;
ieee             2408 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 				ieee->current_network.buseprotection = false;
ieee             2411 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			if (ieee->state == IEEE80211_LINKED)
ieee             2412 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 				ieee->LinkDetectInfo.NumRecvBcnInPeriod++;
ieee             2414 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			network->flags = (~NETWORK_EMPTY_ESSID & network->flags) | (NETWORK_EMPTY_ESSID & ieee->current_network.flags);
ieee             2417 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	list_for_each_entry(target, &ieee->network_list, list) {
ieee             2418 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		if (is_same_network(target, network, ieee))
ieee             2427 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (&target->list == &ieee->network_list) {
ieee             2428 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		if (list_empty(&ieee->network_free_list)) {
ieee             2439 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			target = list_entry(ieee->network_free_list.next,
ieee             2441 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			list_del(ieee->network_free_list.next);
ieee             2454 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		list_add_tail(&target->list, &ieee->network_list);
ieee             2455 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		if (ieee->softmac_features & IEEE_SOFTMAC_ASSOCIATE)
ieee             2456 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			ieee80211_softmac_new_net(ieee, network);
ieee             2469 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		renew = !time_after(target->last_scanned + ieee->scan_age, jiffies);
ieee             2477 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c  || ((ieee->current_network.ssid_len == network->ssid_len) && (strncmp(ieee->current_network.ssid, network->ssid, network->ssid_len) == 0) && (ieee->state == IEEE80211_NOLINK))))
ieee             2482 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		if (renew && (ieee->softmac_features & IEEE_SOFTMAC_ASSOCIATE))
ieee             2483 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			ieee80211_softmac_new_net(ieee, network);
ieee             2486 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             2487 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 	if (is_beacon(beacon->header.frame_ctl) && is_same_network(&ieee->current_network, network, ieee) && \
ieee             2488 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		(ieee->state == IEEE80211_LINKED)) {
ieee             2489 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 		if (ieee->handle_beacon)
ieee             2490 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			ieee->handle_beacon(ieee->dev, beacon, &ieee->current_network);
ieee             2497 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c void ieee80211_rx_mgt(struct ieee80211_device *ieee,
ieee             2508 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			ieee, (struct ieee80211_probe_response *)header, stats);
ieee             2516 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 			ieee, (struct ieee80211_probe_response *)header, stats);
ieee               40 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static unsigned int ieee80211_MFIE_rate_len(struct ieee80211_device *ieee)
ieee               44 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->modulation & IEEE80211_CCK_MODULATION)
ieee               47 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->modulation & IEEE80211_OFDM_MODULATION)
ieee               57 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_MFIE_Brate(struct ieee80211_device *ieee, u8 **tag_p)
ieee               61 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->modulation & IEEE80211_CCK_MODULATION) {
ieee               74 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_MFIE_Grate(struct ieee80211_device *ieee, u8 **tag_p)
ieee               78 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->modulation & IEEE80211_OFDM_MODULATION) {
ieee               95 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_WMM_Info(struct ieee80211_device *ieee, u8 **tag_p)
ieee              108 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->current_network.wmm_info & 0x80)
ieee              119 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_TURBO_Info(struct ieee80211_device *ieee, u8 **tag_p)
ieee              138 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void enqueue_mgmt(struct ieee80211_device *ieee, struct sk_buff *skb)
ieee              142 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	nh = (ieee->mgmt_queue_head + 1) % MGMT_QUEUE_NUM;
ieee              151 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->mgmt_queue_head = nh;
ieee              152 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->mgmt_queue_ring[nh] = skb;
ieee              157 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *dequeue_mgmt(struct ieee80211_device *ieee)
ieee              161 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->mgmt_queue_tail == ieee->mgmt_queue_head)
ieee              164 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ret = ieee->mgmt_queue_ring[ieee->mgmt_queue_tail];
ieee              166 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->mgmt_queue_tail =
ieee              167 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		(ieee->mgmt_queue_tail + 1) % MGMT_QUEUE_NUM;
ieee              172 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void init_mgmt_queue(struct ieee80211_device *ieee)
ieee              174 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->mgmt_queue_tail = ieee->mgmt_queue_head = 0;
ieee              177 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static u8 MgntQuery_MgntFrameTxRate(struct ieee80211_device *ieee)
ieee              179 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	PRT_HIGH_THROUGHPUT      pHTInfo = ieee->pHTInfo;
ieee              186 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		rate = ieee->basic_rate & 0x7f;
ieee              190 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->mode == IEEE_A ||
ieee              191 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		    ieee->mode == IEEE_N_5G ||
ieee              192 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		    (ieee->mode == IEEE_N_24G && !pHTInfo->bCurSuppCCK))
ieee              210 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_sta_wakeup(struct ieee80211_device *ieee, short nl);
ieee              212 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee)
ieee              215 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	short single = ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE;
ieee              221 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee              224 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_sta_wakeup(ieee, 0);
ieee              227 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	tcb_desc->data_rate = MgntQuery_MgntFrameTxRate(ieee);
ieee              233 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->queue_stop) {
ieee              234 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			enqueue_mgmt(ieee, skb);
ieee              236 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
ieee              238 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			if (ieee->seq_ctrl[0] == 0xFFF)
ieee              239 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->seq_ctrl[0] = 0;
ieee              241 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->seq_ctrl[0]++;
ieee              244 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			netif_trans_update(ieee->dev);
ieee              245 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->softmac_data_hard_start_xmit(skb, ieee->dev, ieee->basic_rate);
ieee              249 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		spin_unlock_irqrestore(&ieee->lock, flags);
ieee              251 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		spin_unlock_irqrestore(&ieee->lock, flags);
ieee              252 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		spin_lock_irqsave(&ieee->mgmt_tx_lock, flags);
ieee              254 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
ieee              256 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->seq_ctrl[0] == 0xFFF)
ieee              257 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->seq_ctrl[0] = 0;
ieee              259 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->seq_ctrl[0]++;
ieee              262 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (!ieee->check_nic_enough_desc(ieee->dev, tcb_desc->queue_index) || \
ieee              263 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		    (skb_queue_len(&ieee->skb_waitQ[tcb_desc->queue_index]) != 0) || \
ieee              264 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		    (ieee->queue_stop)) {
ieee              270 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			skb_queue_tail(&ieee->skb_waitQ[tcb_desc->queue_index], skb);
ieee              272 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->softmac_hard_start_xmit(skb, ieee->dev);
ieee              275 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		spin_unlock_irqrestore(&ieee->mgmt_tx_lock, flags);
ieee              280 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c softmac_ps_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee)
ieee              282 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	short single = ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE;
ieee              287 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
ieee              289 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->seq_ctrl[0] == 0xFFF)
ieee              290 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->seq_ctrl[0] = 0;
ieee              292 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->seq_ctrl[0]++;
ieee              295 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		netif_trans_update(ieee->dev);
ieee              296 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->softmac_data_hard_start_xmit(skb, ieee->dev, ieee->basic_rate);
ieee              298 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
ieee              300 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->seq_ctrl[0] == 0xFFF)
ieee              301 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->seq_ctrl[0] = 0;
ieee              303 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->seq_ctrl[0]++;
ieee              305 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->softmac_hard_start_xmit(skb, ieee->dev);
ieee              310 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static inline struct sk_buff *ieee80211_probe_req(struct ieee80211_device *ieee)
ieee              317 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	len = ieee->current_network.ssid_len;
ieee              319 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	rate_len = ieee80211_MFIE_rate_len(ieee);
ieee              322 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			    2 + len + rate_len + ieee->tx_headroom);
ieee              326 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	skb_reserve(skb, ieee->tx_headroom);
ieee              333 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(req->header.addr2, ieee->dev->dev_addr, ETH_ALEN);
ieee              340 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(tag, ieee->current_network.ssid, len);
ieee              343 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_MFIE_Brate(ieee, &tag);
ieee              344 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_MFIE_Grate(ieee, &tag);
ieee              348 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c struct sk_buff *ieee80211_get_beacon_(struct ieee80211_device *ieee);
ieee              350 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_send_beacon(struct ieee80211_device *ieee)
ieee              354 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (!ieee->ieee_up)
ieee              357 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	skb = ieee80211_get_beacon_(ieee);
ieee              360 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		softmac_mgmt_xmit(skb, ieee);
ieee              361 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->softmac_stats.tx_beacons++;
ieee              368 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->beacon_txing && ieee->ieee_up) {
ieee              371 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		mod_timer(&ieee->beacon_timer,
ieee              372 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			  jiffies + msecs_to_jiffies(ieee->current_network.beacon_interval - 5));
ieee              379 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	struct ieee80211_device *ieee =
ieee              380 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		from_timer(ieee, t, beacon_timer);
ieee              383 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_lock_irqsave(&ieee->beacon_lock, flags);
ieee              384 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_send_beacon(ieee);
ieee              385 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_unlock_irqrestore(&ieee->beacon_lock, flags);
ieee              388 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_send_probe(struct ieee80211_device *ieee)
ieee              392 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	skb = ieee80211_probe_req(ieee);
ieee              394 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		softmac_mgmt_xmit(skb, ieee);
ieee              395 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->softmac_stats.tx_probe_rq++;
ieee              400 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_send_probe_requests(struct ieee80211_device *ieee)
ieee              402 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->active_scan && (ieee->softmac_features & IEEE_SOFTMAC_PROBERQ)) {
ieee              403 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_send_probe(ieee);
ieee              404 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_send_probe(ieee);
ieee              411 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_softmac_scan_syncro(struct ieee80211_device *ieee)
ieee              416 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(channel_map, GET_DOT11D_INFO(ieee)->channel_map, MAX_CHANNEL_NUMBER + 1);
ieee              417 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_lock(&ieee->scan_mutex);
ieee              445 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->state == IEEE80211_LINKED)
ieee              447 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->set_chan(ieee->dev, ch);
ieee              449 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee80211_send_probe_requests(ieee);
ieee              454 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->state >= IEEE80211_LINKED && ieee->sync_scan_hurryup)
ieee              460 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->state < IEEE80211_LINKED) {
ieee              461 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->actscanning = false;
ieee              462 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		mutex_unlock(&ieee->scan_mutex);
ieee              464 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->sync_scan_hurryup = 0;
ieee              465 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (IS_DOT11D_ENABLE(ieee))
ieee              466 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			dot11d_scan_complete(ieee);
ieee              467 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		mutex_unlock(&ieee->scan_mutex);
ieee              475 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	struct ieee80211_device *ieee = container_of(dwork, struct ieee80211_device, softmac_scan_wq);
ieee              479 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(channel_map, GET_DOT11D_INFO(ieee)->channel_map, MAX_CHANNEL_NUMBER + 1);
ieee              480 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (!ieee->ieee_up)
ieee              482 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_lock(&ieee->scan_mutex);
ieee              484 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->current_network.channel =
ieee              485 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			(ieee->current_network.channel + 1) % MAX_CHANNEL_NUMBER;
ieee              488 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			if (!channel_map[ieee->current_network.channel]) {
ieee              489 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->current_network.channel = 6;
ieee              493 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	} while (!channel_map[ieee->current_network.channel]);
ieee              494 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->scanning == 0)
ieee              496 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->set_chan(ieee->dev, ieee->current_network.channel);
ieee              497 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (channel_map[ieee->current_network.channel] == 1)
ieee              498 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_send_probe_requests(ieee);
ieee              500 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	schedule_delayed_work(&ieee->softmac_scan_wq, IEEE80211_SOFTMAC_SCAN_TIME);
ieee              502 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_unlock(&ieee->scan_mutex);
ieee              505 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (IS_DOT11D_ENABLE(ieee))
ieee              506 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		dot11d_scan_complete(ieee);
ieee              507 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->actscanning = false;
ieee              509 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->scanning = 0;
ieee              510 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_unlock(&ieee->scan_mutex);
ieee              513 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_beacons_start(struct ieee80211_device *ieee)
ieee              516 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_lock_irqsave(&ieee->beacon_lock, flags);
ieee              518 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->beacon_txing = 1;
ieee              519 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_send_beacon(ieee);
ieee              521 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_unlock_irqrestore(&ieee->beacon_lock, flags);
ieee              524 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_beacons_stop(struct ieee80211_device *ieee)
ieee              528 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_lock_irqsave(&ieee->beacon_lock, flags);
ieee              530 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->beacon_txing = 0;
ieee              531 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	del_timer_sync(&ieee->beacon_timer);
ieee              533 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_unlock_irqrestore(&ieee->beacon_lock, flags);
ieee              536 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_stop_send_beacons(struct ieee80211_device *ieee)
ieee              538 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->stop_send_beacons)
ieee              539 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->stop_send_beacons(ieee->dev);
ieee              540 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->softmac_features & IEEE_SOFTMAC_BEACONS)
ieee              541 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_beacons_stop(ieee);
ieee              545 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_start_send_beacons(struct ieee80211_device *ieee)
ieee              547 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->start_send_beacons)
ieee              548 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->start_send_beacons(ieee->dev, ieee->basic_rate);
ieee              549 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->softmac_features & IEEE_SOFTMAC_BEACONS)
ieee              550 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_beacons_start(ieee);
ieee              554 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_softmac_stop_scan(struct ieee80211_device *ieee)
ieee              560 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_lock(&ieee->scan_mutex);
ieee              563 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->scanning == 1) {
ieee              564 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->scanning = 0;
ieee              566 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		cancel_delayed_work(&ieee->softmac_scan_wq);
ieee              570 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_unlock(&ieee->scan_mutex);
ieee              573 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_stop_scan(struct ieee80211_device *ieee)
ieee              575 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->softmac_features & IEEE_SOFTMAC_SCAN)
ieee              576 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_softmac_stop_scan(ieee);
ieee              578 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->stop_scan(ieee->dev);
ieee              583 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_start_scan(struct ieee80211_device *ieee)
ieee              585 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (IS_DOT11D_ENABLE(ieee)) {
ieee              586 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (IS_COUNTRY_IE_VALID(ieee))
ieee              587 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			RESET_CIE_WATCHDOG(ieee);
ieee              589 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->softmac_features & IEEE_SOFTMAC_SCAN) {
ieee              590 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->scanning == 0) {
ieee              591 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->scanning = 1;
ieee              592 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			schedule_delayed_work(&ieee->softmac_scan_wq, 0);
ieee              595 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->start_scan(ieee->dev);
ieee              600 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_start_scan_syncro(struct ieee80211_device *ieee)
ieee              602 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (IS_DOT11D_ENABLE(ieee)) {
ieee              603 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (IS_COUNTRY_IE_VALID(ieee))
ieee              604 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			RESET_CIE_WATCHDOG(ieee);
ieee              606 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->sync_scan_hurryup = 0;
ieee              607 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->softmac_features & IEEE_SOFTMAC_SCAN)
ieee              608 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_softmac_scan_syncro(ieee);
ieee              610 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->scan_syncro(ieee->dev);
ieee              616 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			     struct ieee80211_device *ieee, int challengelen)
ieee              620 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	int len = sizeof(struct ieee80211_authentication) + challengelen + ieee->tx_headroom;
ieee              626 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	skb_reserve(skb, ieee->tx_headroom);
ieee              638 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(auth->header.addr2, ieee->dev->dev_addr, ETH_ALEN);
ieee              642 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->auth_mode == 0)
ieee              644 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	else if (ieee->auth_mode == 1)
ieee              646 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	else if (ieee->auth_mode == 2)
ieee              649 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	auth->transaction = cpu_to_le16(ieee->associate_seq);
ieee              650 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->associate_seq++;
ieee              657 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_probe_resp(struct ieee80211_device *ieee, u8 *dest)
ieee              667 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	char *ssid = ieee->current_network.ssid;
ieee              668 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	int ssid_len = ieee->current_network.ssid_len;
ieee              669 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	int rate_len = ieee->current_network.rates_len + 2;
ieee              670 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	int rate_ex_len = ieee->current_network.rates_ex_len;
ieee              671 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	int wpa_ie_len = ieee->wpa_ie_len;
ieee              678 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	PRT_HIGH_THROUGHPUT	pHTInfo = ieee->pHTInfo;
ieee              685 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->current_network.capability & WLAN_CAPABILITY_IBSS)
ieee              690 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee80211_is_54g(&ieee->current_network))
ieee              695 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	crypt = ieee->crypt[ieee->tx_keyidx];
ieee              697 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	encrypt = ieee->host_encrypt && crypt && crypt->ops &&
ieee              700 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	tmp_ht_cap_buf = (u8 *)&ieee->pHTInfo->SelfHTCap;
ieee              701 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	tmp_ht_cap_len = sizeof(ieee->pHTInfo->SelfHTCap);
ieee              702 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	tmp_ht_info_buf = (u8 *)&ieee->pHTInfo->SelfHTInfo;
ieee              703 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	tmp_ht_info_len = sizeof(ieee->pHTInfo->SelfHTInfo);
ieee              704 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	HTConstructCapabilityElement(ieee, tmp_ht_cap_buf, &tmp_ht_cap_len, encrypt);
ieee              705 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	HTConstructInfoElement(ieee, tmp_ht_info_buf, &tmp_ht_info_len, encrypt);
ieee              708 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		tmp_generic_ie_buf = ieee->pHTInfo->szRT2RTAggBuffer;
ieee              709 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		tmp_generic_ie_len = sizeof(ieee->pHTInfo->szRT2RTAggBuffer);
ieee              710 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		HTConstructRT2RTAggElement(ieee, tmp_generic_ie_buf, &tmp_generic_ie_len);
ieee              725 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		+ ieee->tx_headroom;
ieee              729 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	skb_reserve(skb, ieee->tx_headroom);
ieee              730 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	beacon_buf = skb_put(skb, (beacon_size - ieee->tx_headroom));
ieee              732 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(beacon_buf->header.addr2, ieee->dev->dev_addr, ETH_ALEN);
ieee              733 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(beacon_buf->header.addr3, ieee->current_network.bssid, ETH_ALEN);
ieee              737 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		cpu_to_le16(ieee->current_network.beacon_interval);
ieee              739 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		cpu_to_le16(ieee->current_network.capability & WLAN_CAPABILITY_IBSS);
ieee              741 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		cpu_to_le16(ieee->current_network.capability & WLAN_CAPABILITY_SHORT_PREAMBLE); /* add short preamble here */
ieee              743 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->short_slot && (ieee->current_network.capability & WLAN_CAPABILITY_SHORT_SLOT))
ieee              761 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(tag, ieee->current_network.rates, rate_len - 2);
ieee              766 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	*(tag++) = ieee->current_network.channel;
ieee              772 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		put_unaligned_le16(ieee->current_network.atim_window,
ieee              785 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		memcpy(tag, ieee->current_network.rates_ex, rate_ex_len - 2);
ieee              790 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->iw_mode == IW_MODE_ADHOC) {
ieee              792 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			memcpy(&ieee->wpa_ie[14], &ieee->wpa_ie[8], 4);
ieee              794 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		memcpy(tag, ieee->wpa_ie, ieee->wpa_ie_len);
ieee              802 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_assoc_resp(struct ieee80211_device *ieee,
ieee              812 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	unsigned int rate_len = ieee80211_MFIE_rate_len(ieee);
ieee              813 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	int len = sizeof(struct ieee80211_assoc_response_frame) + rate_len + ieee->tx_headroom;
ieee              820 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	skb_reserve(skb, ieee->tx_headroom);
ieee              826 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(assoc->header.addr3, ieee->dev->dev_addr, ETH_ALEN);
ieee              827 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(assoc->header.addr2, ieee->dev->dev_addr, ETH_ALEN);
ieee              828 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	assoc->capability = cpu_to_le16(ieee->iw_mode == IW_MODE_MASTER ?
ieee              831 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->short_slot)
ieee              834 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->host_encrypt)
ieee              835 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		crypt = ieee->crypt[ieee->tx_keyidx];
ieee              845 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	assoc->aid = cpu_to_le16(ieee->assoc_id);
ieee              846 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->assoc_id == 0x2007)
ieee              847 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->assoc_id = 0;
ieee              849 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->assoc_id++;
ieee              853 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_MFIE_Brate(ieee, &tag);
ieee              854 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_MFIE_Grate(ieee, &tag);
ieee              859 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_auth_resp(struct ieee80211_device *ieee,
ieee              864 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	int len = ieee->tx_headroom + sizeof(struct ieee80211_authentication) + 1;
ieee              879 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(auth->header.addr3, ieee->dev->dev_addr, ETH_ALEN);
ieee              880 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(auth->header.addr2, ieee->dev->dev_addr, ETH_ALEN);
ieee              886 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static struct sk_buff *ieee80211_null_func(struct ieee80211_device *ieee,
ieee              899 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(hdr->addr1, ieee->current_network.bssid, ETH_ALEN);
ieee              900 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(hdr->addr2, ieee->dev->dev_addr, ETH_ALEN);
ieee              901 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(hdr->addr3, ieee->current_network.bssid, ETH_ALEN);
ieee              910 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_resp_to_assoc_rq(struct ieee80211_device *ieee, u8 *dest)
ieee              912 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	struct sk_buff *buf = ieee80211_assoc_resp(ieee, dest);
ieee              915 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		softmac_mgmt_xmit(buf, ieee);
ieee              918 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_resp_to_auth(struct ieee80211_device *ieee, int s,
ieee              921 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	struct sk_buff *buf = ieee80211_auth_resp(ieee, s, dest);
ieee              924 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		softmac_mgmt_xmit(buf, ieee);
ieee              927 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_resp_to_probe(struct ieee80211_device *ieee, u8 *dest)
ieee              929 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	struct sk_buff *buf = ieee80211_probe_resp(ieee, dest);
ieee              931 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		softmac_mgmt_xmit(buf, ieee);
ieee              936 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			  struct ieee80211_device *ieee)
ieee              953 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	int wpa_ie_len = ieee->wpa_ie_len;
ieee              960 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	unsigned int rate_len = ieee80211_MFIE_rate_len(ieee);
ieee              968 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	crypt = ieee->crypt[ieee->tx_keyidx];
ieee              969 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	encrypt = ieee->host_encrypt && crypt && crypt->ops && ((0 == strcmp(crypt->ops->name, "WEP") || wpa_ie_len));
ieee              972 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->pHTInfo->bCurrentHTSupport && ieee->pHTInfo->bEnableHT) {
ieee              973 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ht_cap_buf = (u8 *)&ieee->pHTInfo->SelfHTCap;
ieee              974 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ht_cap_len = sizeof(ieee->pHTInfo->SelfHTCap);
ieee              975 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		HTConstructCapabilityElement(ieee, ht_cap_buf, &ht_cap_len, encrypt);
ieee              976 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->pHTInfo->bCurrentRT2RTAggregation) {
ieee              977 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			realtek_ie_buf = ieee->pHTInfo->szRT2RTAggBuffer;
ieee              978 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			realtek_ie_len = sizeof(ieee->pHTInfo->szRT2RTAggBuffer);
ieee              979 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			HTConstructRT2RTAggElement(ieee, realtek_ie_buf, &realtek_ie_len);
ieee              982 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->qos_support)
ieee             1006 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		+ ieee->tx_headroom;
ieee             1018 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		+ ieee->tx_headroom;
ieee             1025 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	skb_reserve(skb, ieee->tx_headroom);
ieee             1032 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(hdr->header.addr2, ieee->dev->dev_addr, ETH_ALEN);
ieee             1035 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(ieee->ap_mac_addr, beacon->bssid, ETH_ALEN);//for HW security, John
ieee             1044 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->short_slot)
ieee             1058 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_MFIE_Brate(ieee, &tag);
ieee             1059 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_MFIE_Grate(ieee, &tag);
ieee             1112 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->pHTInfo->bCurrentHTSupport && ieee->pHTInfo->bEnableHT) {
ieee             1113 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->pHTInfo->ePeerHTSpecVer != HT_SPEC_VER_EWC) {
ieee             1124 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		skb_put_data(skb, ieee->wpa_ie, wpa_ie_len);
ieee             1128 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_WMM_Info(ieee, &tag);
ieee             1133 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_TURBO_Info(ieee, &tag);
ieee             1137 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->pHTInfo->bCurrentHTSupport && ieee->pHTInfo->bEnableHT) {
ieee             1138 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->pHTInfo->ePeerHTSpecVer == HT_SPEC_VER_EWC) {
ieee             1146 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->pHTInfo->bCurrentRT2RTAggregation) {
ieee             1158 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_associate_abort(struct ieee80211_device *ieee)
ieee             1161 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             1163 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->associate_seq++;
ieee             1171 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->state == IEEE80211_ASSOCIATING_AUTHENTICATING) {
ieee             1173 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->softmac_stats.no_auth_rs++;
ieee             1176 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->softmac_stats.no_ass_rs++;
ieee             1179 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->state = IEEE80211_ASSOCIATING_RETRY;
ieee             1181 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	schedule_delayed_work(&ieee->associate_retry_wq, \
ieee             1184 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             1194 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_associate_step1(struct ieee80211_device *ieee)
ieee             1196 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	struct ieee80211_network *beacon = &ieee->current_network;
ieee             1201 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->softmac_stats.tx_auth_rq++;
ieee             1202 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	skb = ieee80211_authentication_req(beacon, ieee, 0);
ieee             1205 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_associate_abort(ieee);
ieee             1207 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->state = IEEE80211_ASSOCIATING_AUTHENTICATING;
ieee             1209 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		softmac_mgmt_xmit(skb, ieee);
ieee             1211 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (!timer_pending(&ieee->associate_timer)) {
ieee             1212 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->associate_timer.expires = jiffies + (HZ / 2);
ieee             1213 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			add_timer(&ieee->associate_timer);
ieee             1219 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_auth_challenge(struct ieee80211_device *ieee,
ieee             1225 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	struct ieee80211_network *beacon = &ieee->current_network;
ieee             1228 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->associate_seq++;
ieee             1229 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->softmac_stats.tx_auth_rq++;
ieee             1231 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	skb = ieee80211_authentication_req(beacon, ieee, chlen + 2);
ieee             1233 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_associate_abort(ieee);
ieee             1242 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_encrypt_fragment(ieee, skb, sizeof(struct rtl_80211_hdr_3addr));
ieee             1244 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		softmac_mgmt_xmit(skb, ieee);
ieee             1245 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		mod_timer(&ieee->associate_timer, jiffies + (HZ / 2));
ieee             1251 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_associate_step2(struct ieee80211_device *ieee)
ieee             1254 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	struct ieee80211_network *beacon = &ieee->current_network;
ieee             1256 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	del_timer_sync(&ieee->associate_timer);
ieee             1260 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->softmac_stats.tx_ass_rq++;
ieee             1261 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	skb = ieee80211_association_req(beacon, ieee);
ieee             1263 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_associate_abort(ieee);
ieee             1265 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		softmac_mgmt_xmit(skb, ieee);
ieee             1266 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		mod_timer(&ieee->associate_timer, jiffies + (HZ / 2));
ieee             1272 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	struct ieee80211_device *ieee = container_of(work, struct ieee80211_device, associate_complete_wq);
ieee             1274 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee80211_is_54g(&ieee->current_network) &&
ieee             1275 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	    (ieee->modulation & IEEE80211_OFDM_MODULATION)) {
ieee             1276 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->rate = 108;
ieee             1277 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		printk(KERN_INFO"Using G rates:%d\n", ieee->rate);
ieee             1279 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->rate = 22;
ieee             1280 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		printk(KERN_INFO"Using B rates:%d\n", ieee->rate);
ieee             1282 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->pHTInfo->bCurrentHTSupport && ieee->pHTInfo->bEnableHT) {
ieee             1284 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		HTOnAssocRsp(ieee);
ieee             1286 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		printk("Successfully associated, ht not enabled(%d, %d)\n", ieee->pHTInfo->bCurrentHTSupport, ieee->pHTInfo->bEnableHT);
ieee             1287 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		memset(ieee->dot11HTOperationalRateSet, 0, 16);
ieee             1290 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->LinkDetectInfo.SlotNum = 2 * (1 + ieee->current_network.beacon_interval / 500);
ieee             1292 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->LinkDetectInfo.NumRecvBcnInPeriod == 0 || ieee->LinkDetectInfo.NumRecvDataInPeriod == 0) {
ieee             1293 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->LinkDetectInfo.NumRecvBcnInPeriod = 1;
ieee             1294 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->LinkDetectInfo.NumRecvDataInPeriod = 1;
ieee             1296 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->link_change(ieee->dev);
ieee             1297 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (!ieee->is_silent_reset) {
ieee             1299 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		notify_wx_assoc_event(ieee);
ieee             1302 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->is_silent_reset = false;
ieee             1305 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->data_hard_resume)
ieee             1306 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->data_hard_resume(ieee->dev);
ieee             1307 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	netif_carrier_on(ieee->dev);
ieee             1310 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_associate_complete(struct ieee80211_device *ieee)
ieee             1314 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	del_timer_sync(&ieee->associate_timer);
ieee             1316 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->state = IEEE80211_LINKED;
ieee             1318 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	schedule_work(&ieee->associate_complete_wq);
ieee             1323 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	struct ieee80211_device *ieee = container_of(work, struct ieee80211_device, associate_procedure_wq);
ieee             1324 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->sync_scan_hurryup = 1;
ieee             1325 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_lock(&ieee->wx_mutex);
ieee             1327 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->data_hard_stop)
ieee             1328 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->data_hard_stop(ieee->dev);
ieee             1330 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_stop_scan(ieee);
ieee             1331 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	printk("===>%s(), chan:%d\n", __func__, ieee->current_network.channel);
ieee             1333 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	HTSetConnectBwMode(ieee, HT_CHANNEL_WIDTH_20, HT_EXTCHNL_OFFSET_NO_EXT);
ieee             1335 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->associate_seq = 1;
ieee             1336 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_associate_step1(ieee);
ieee             1338 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_unlock(&ieee->wx_mutex);
ieee             1341 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void ieee80211_softmac_new_net(struct ieee80211_device *ieee, struct ieee80211_network *net)
ieee             1351 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->state != IEEE80211_NOLINK)
ieee             1354 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if ((ieee->iw_mode == IW_MODE_INFRA) && !(net->capability & WLAN_CAPABILITY_BSS))
ieee             1357 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if ((ieee->iw_mode == IW_MODE_ADHOC) && !(net->capability & WLAN_CAPABILITY_IBSS))
ieee             1360 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->iw_mode == IW_MODE_INFRA || ieee->iw_mode == IW_MODE_ADHOC) {
ieee             1365 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		apset = ieee->wap_set;//(memcmp(ieee->current_network.bssid, zero,ETH_ALEN)!=0 );
ieee             1366 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ssidset = ieee->ssid_set;//ieee->current_network.ssid[0] != '\0';
ieee             1368 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		apmatch = (memcmp(ieee->current_network.bssid, net->bssid, ETH_ALEN) == 0);
ieee             1369 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ssidmatch = (ieee->current_network.ssid_len == net->ssid_len) &&
ieee             1370 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			(!strncmp(ieee->current_network.ssid, net->ssid, net->ssid_len));
ieee             1387 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				strncpy(tmp_ssid, ieee->current_network.ssid, IW_ESSID_MAX_SIZE);
ieee             1388 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				tmp_ssid_len = ieee->current_network.ssid_len;
ieee             1390 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			memcpy(&ieee->current_network, net, sizeof(struct ieee80211_network));
ieee             1392 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			strncpy(ieee->current_network.ssid, tmp_ssid, IW_ESSID_MAX_SIZE);
ieee             1393 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->current_network.ssid_len = tmp_ssid_len;
ieee             1395 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			       ieee->current_network.ssid,
ieee             1396 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			       ieee->current_network.channel,
ieee             1397 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			       ieee->current_network.qos_data.supported,
ieee             1398 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			       ieee->pHTInfo->bEnableHT,
ieee             1399 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			       ieee->current_network.bssht.bdSupportHT);
ieee             1402 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			HTResetIOTSetting(ieee->pHTInfo);
ieee             1403 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			if (ieee->iw_mode == IW_MODE_INFRA) {
ieee             1405 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->AsocRetryCount = 0;
ieee             1407 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				if ((ieee->current_network.qos_data.supported == 1) &&
ieee             1409 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				    ieee->current_network.bssht.bdSupportHT) {
ieee             1412 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 					HTResetSelfAndSavePeerSetting(ieee, &ieee->current_network);
ieee             1414 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 					ieee->pHTInfo->bCurrentHTSupport = false;
ieee             1417 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->state = IEEE80211_ASSOCIATING;
ieee             1418 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				schedule_work(&ieee->associate_procedure_wq);
ieee             1420 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				if (ieee80211_is_54g(&ieee->current_network) &&
ieee             1421 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				    (ieee->modulation & IEEE80211_OFDM_MODULATION)) {
ieee             1422 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 					ieee->rate = 108;
ieee             1423 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 					ieee->SetWirelessMode(ieee->dev, IEEE_G);
ieee             1426 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 					ieee->rate = 22;
ieee             1427 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 					ieee->SetWirelessMode(ieee->dev, IEEE_B);
ieee             1430 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				memset(ieee->dot11HTOperationalRateSet, 0, 16);
ieee             1432 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->state = IEEE80211_LINKED;
ieee             1438 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_softmac_check_all_nets(struct ieee80211_device *ieee)
ieee             1443 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             1445 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	list_for_each_entry(target, &ieee->network_list, list) {
ieee             1450 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->state != IEEE80211_NOLINK)
ieee             1453 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->scan_age == 0 || time_after(target->last_scanned + ieee->scan_age, jiffies))
ieee             1454 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee80211_softmac_new_net(ieee, target);
ieee             1457 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             1502 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static short probe_rq_parse(struct ieee80211_device *ieee, struct sk_buff *skb, u8 *src)
ieee             1539 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	return (!strncmp(ssid, ieee->current_network.ssid, ssidlen));
ieee             1559 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static inline u16 assoc_parse(struct ieee80211_device *ieee, struct sk_buff *skb, int *aid)
ieee             1575 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	    ((ieee->mode == IEEE_G) &&
ieee             1576 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	     (ieee->current_network.mode == IEEE_N_24G) &&
ieee             1577 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	     (ieee->AsocRetryCount++ < (RT_ASOC_RETRY_LIMIT - 1)))) {
ieee             1578 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->pHTInfo->IOTAction |= HT_IOT_ACT_PURE_N_MODE;
ieee             1580 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->AsocRetryCount = 0;
ieee             1587 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_probe_rq(struct ieee80211_device *ieee, struct sk_buff *skb)
ieee             1592 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->softmac_stats.rx_probe_rq++;
ieee             1594 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (probe_rq_parse(ieee, skb, dest)) {
ieee             1596 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->softmac_stats.tx_probe_rs++;
ieee             1597 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_resp_to_probe(ieee, dest);
ieee             1602 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_auth_rq(struct ieee80211_device *ieee, struct sk_buff *skb)
ieee             1607 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->softmac_stats.rx_auth_rq++;
ieee             1611 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_resp_to_auth(ieee, status, dest);
ieee             1616 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_assoc_rq(struct ieee80211_device *ieee, struct sk_buff *skb)
ieee             1621 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->softmac_stats.rx_ass_rq++;
ieee             1623 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_resp_to_assoc_rq(ieee, dest);
ieee             1629 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_sta_ps_send_null_frame(struct ieee80211_device *ieee,
ieee             1632 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	struct sk_buff *buf = ieee80211_null_func(ieee, pwr);
ieee             1635 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		softmac_ps_mgmt_xmit(buf, ieee);
ieee             1639 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static short ieee80211_sta_ps_sleep(struct ieee80211_device *ieee, u32 *time_h,
ieee             1650 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	dtim = ieee->current_network.dtim_data;
ieee             1653 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	timeout = ieee->current_network.beacon_interval; //should we use ps_timeout value or beacon_interval
ieee             1654 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->current_network.dtim_data = IEEE80211_DTIM_INVALID;
ieee             1656 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (dtim & ((IEEE80211_DTIM_UCAST | IEEE80211_DTIM_MBCAST) & ieee->ps))
ieee             1660 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			dev_trans_start(ieee->dev) + msecs_to_jiffies(timeout)))
ieee             1664 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->last_rx_ps_time + msecs_to_jiffies(timeout)))
ieee             1667 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if ((ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE) &&
ieee             1668 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	    (ieee->mgmt_queue_tail != ieee->mgmt_queue_head))
ieee             1672 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		*time_l = ieee->current_network.last_dtim_sta_time[0]
ieee             1673 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			+ (ieee->current_network.beacon_interval
ieee             1674 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			   * ieee->current_network.dtim_period) * 1000;
ieee             1678 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		*time_h = ieee->current_network.last_dtim_sta_time[1];
ieee             1679 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (time_l && *time_l < ieee->current_network.last_dtim_sta_time[0])
ieee             1686 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static inline void ieee80211_sta_ps(struct ieee80211_device *ieee)
ieee             1693 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             1695 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if ((ieee->ps == IEEE80211_PS_DISABLED ||
ieee             1696 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	     ieee->iw_mode != IW_MODE_INFRA ||
ieee             1697 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	     ieee->state != IEEE80211_LINKED)) {
ieee             1699 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		spin_lock_irqsave(&ieee->mgmt_tx_lock, flags2);
ieee             1701 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_sta_wakeup(ieee, 1);
ieee             1703 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		spin_unlock_irqrestore(&ieee->mgmt_tx_lock, flags2);
ieee             1706 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	sleep = ieee80211_sta_ps_sleep(ieee, &th, &tl);
ieee             1712 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->sta_sleep == 1) {
ieee             1713 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->enter_sleep_state(ieee->dev, th, tl);
ieee             1714 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		} else if (ieee->sta_sleep == 0) {
ieee             1716 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			spin_lock_irqsave(&ieee->mgmt_tx_lock, flags2);
ieee             1718 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			if (ieee->ps_is_queue_empty(ieee->dev)) {
ieee             1719 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->sta_sleep = 2;
ieee             1721 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->ps_request_tx_ack(ieee->dev);
ieee             1723 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee80211_sta_ps_send_null_frame(ieee, 1);
ieee             1725 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->ps_th = th;
ieee             1726 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->ps_tl = tl;
ieee             1728 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			spin_unlock_irqrestore(&ieee->mgmt_tx_lock, flags2);
ieee             1732 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		spin_lock_irqsave(&ieee->mgmt_tx_lock, flags2);
ieee             1734 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_sta_wakeup(ieee, 1);
ieee             1736 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		spin_unlock_irqrestore(&ieee->mgmt_tx_lock, flags2);
ieee             1739 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             1742 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_sta_wakeup(struct ieee80211_device *ieee, short nl)
ieee             1744 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->sta_sleep == 0) {
ieee             1747 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->ps_request_tx_ack(ieee->dev);
ieee             1748 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee80211_sta_ps_send_null_frame(ieee, 0);
ieee             1753 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->sta_sleep == 1)
ieee             1754 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->sta_wake_up(ieee->dev);
ieee             1756 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->sta_sleep = 0;
ieee             1759 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->ps_request_tx_ack(ieee->dev);
ieee             1760 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_sta_ps_send_null_frame(ieee, 0);
ieee             1764 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_ps_tx_ack(struct ieee80211_device *ieee, short success)
ieee             1768 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             1770 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->sta_sleep == 2) {
ieee             1773 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->sta_sleep = 1;
ieee             1774 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->enter_sleep_state(ieee->dev, ieee->ps_th, ieee->ps_tl);
ieee             1781 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if ((ieee->sta_sleep == 0) && !success) {
ieee             1782 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			spin_lock_irqsave(&ieee->mgmt_tx_lock, flags2);
ieee             1783 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee80211_sta_ps_send_null_frame(ieee, 0);
ieee             1784 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			spin_unlock_irqrestore(&ieee->mgmt_tx_lock, flags2);
ieee             1787 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             1791 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_process_action(struct ieee80211_device *ieee,
ieee             1807 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee80211_rx_ADDBAReq(ieee, skb);
ieee             1809 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee80211_rx_ADDBARsp(ieee, skb);
ieee             1811 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee80211_rx_DELBA(ieee, skb);
ieee             1819 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_check_auth_response(struct ieee80211_device *ieee,
ieee             1831 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->open_wep || !challenge) {
ieee             1832 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->state = IEEE80211_ASSOCIATING_AUTHENTICATED;
ieee             1833 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->softmac_stats.rx_auth_rs_ok++;
ieee             1834 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			iotAction = ieee->pHTInfo->IOTAction;
ieee             1836 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				if (!ieee->GetNmodeSupportBySecCfg(ieee->dev)) {
ieee             1838 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 					if (IsHTHalfNmodeAPs(ieee)) {
ieee             1845 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 					netdev_dbg(ieee->dev, "SEC(%d, %d)\n",
ieee             1853 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->SetWirelessMode(ieee->dev,
ieee             1854 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 						ieee->current_network.mode);
ieee             1857 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->SetWirelessMode(ieee->dev, IEEE_G);
ieee             1860 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			if (ieee->current_network.mode == IEEE_N_24G &&
ieee             1862 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				netdev_dbg(ieee->dev, "enter half N mode\n");
ieee             1863 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->bHalfWirelessN24GMode = true;
ieee             1865 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->bHalfWirelessN24GMode = false;
ieee             1867 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee80211_associate_step2(ieee);
ieee             1869 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee80211_auth_challenge(ieee, challenge, chlen);
ieee             1872 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->softmac_stats.rx_auth_rs_err++;
ieee             1874 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_associate_abort(ieee);
ieee             1879 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee80211_rx_frame_softmac(struct ieee80211_device *ieee, struct sk_buff *skb,
ieee             1889 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (!ieee->proto_started)
ieee             1892 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->sta_sleep || (ieee->ps != IEEE80211_PS_DISABLED &&
ieee             1893 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->iw_mode == IW_MODE_INFRA &&
ieee             1894 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->state == IEEE80211_LINKED))
ieee             1895 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		tasklet_schedule(&ieee->ps_task);
ieee             1899 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->last_rx_ps_time = jiffies;
ieee             1906 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if ((ieee->softmac_features & IEEE_SOFTMAC_ASSOCIATE) &&
ieee             1907 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		    ieee->state == IEEE80211_ASSOCIATING_AUTHENTICATED &&
ieee             1908 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		    ieee->iw_mode == IW_MODE_INFRA) {
ieee             1912 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			errcode = assoc_parse(ieee, skb, &aid);
ieee             1914 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->state = IEEE80211_LINKED;
ieee             1915 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->assoc_id = aid;
ieee             1916 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->softmac_stats.rx_ass_ok++;
ieee             1919 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				if (ieee->qos_support) {
ieee             1922 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 					if (ieee80211_parse_info_param(ieee, assoc_resp->info_element,\
ieee             1928 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 						memcpy(ieee->pHTInfo->PeerHTCapBuf, network->bssht.bdHTCapBuf, network->bssht.bdHTCapLen);
ieee             1929 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 						memcpy(ieee->pHTInfo->PeerHTInfoBuf, network->bssht.bdHTInfoBuf, network->bssht.bdHTInfoLen);
ieee             1931 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 					if (ieee->handle_assoc_response)
ieee             1932 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 						ieee->handle_assoc_response(ieee->dev, (struct ieee80211_assoc_response_frame *)header, network);
ieee             1934 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee80211_associate_complete(ieee);
ieee             1937 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->softmac_stats.rx_ass_err++;
ieee             1942 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				if (ieee->AsocRetryCount < RT_ASOC_RETRY_LIMIT)
ieee             1943 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 					schedule_work(&ieee->associate_procedure_wq);
ieee             1945 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 					ieee80211_associate_abort(ieee);
ieee             1952 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if ((ieee->softmac_features & IEEE_SOFTMAC_ASSOCIATE) &&
ieee             1953 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		    ieee->iw_mode == IW_MODE_MASTER)
ieee             1954 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee80211_rx_assoc_rq(ieee, skb);
ieee             1958 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->softmac_features & IEEE_SOFTMAC_ASSOCIATE) {
ieee             1959 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			if (ieee->state == IEEE80211_ASSOCIATING_AUTHENTICATING
ieee             1960 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			    && ieee->iw_mode == IW_MODE_INFRA) {
ieee             1962 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee80211_check_auth_response(ieee, skb);
ieee             1963 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			} else if (ieee->iw_mode == IW_MODE_MASTER) {
ieee             1964 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee80211_rx_auth_rq(ieee, skb);
ieee             1970 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if ((ieee->softmac_features & IEEE_SOFTMAC_PROBERS) &&
ieee             1971 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		    ((ieee->iw_mode == IW_MODE_ADHOC ||
ieee             1972 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		      ieee->iw_mode == IW_MODE_MASTER) &&
ieee             1973 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		     ieee->state == IEEE80211_LINKED)) {
ieee             1974 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee80211_rx_probe_rq(ieee, skb);
ieee             1983 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if ((ieee->softmac_features & IEEE_SOFTMAC_ASSOCIATE) &&
ieee             1984 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		    ieee->state == IEEE80211_LINKED &&
ieee             1985 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		    ieee->iw_mode == IW_MODE_INFRA) {
ieee             1986 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->state = IEEE80211_ASSOCIATING;
ieee             1987 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->softmac_stats.reassoc++;
ieee             1989 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			notify_wx_assoc_event(ieee);
ieee             1991 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			RemovePeerTS(ieee, header->addr2);
ieee             1992 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			schedule_work(&ieee->associate_procedure_wq);
ieee             1996 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_process_action(ieee, skb);
ieee             2024 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_softmac_xmit(struct ieee80211_txb *txb, struct ieee80211_device *ieee)
ieee             2031 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             2034 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_sta_wakeup(ieee, 0);
ieee             2037 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->stats.tx_bytes += le16_to_cpu(txb->payload_size);
ieee             2038 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->stats.tx_packets++;
ieee             2041 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->stats.multicast++;
ieee             2046 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if ((skb_queue_len(&ieee->skb_drv_aggQ[queue_index]) != 0) ||
ieee             2048 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if ((skb_queue_len(&ieee->skb_waitQ[queue_index]) != 0) ||
ieee             2050 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		    (!ieee->check_nic_enough_desc(ieee->dev, queue_index)) || \
ieee             2051 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		    (ieee->queue_stop)) {
ieee             2059 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			skb_queue_tail(&ieee->skb_drv_aggQ[queue_index], txb->fragments[i]);
ieee             2061 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			skb_queue_tail(&ieee->skb_waitQ[queue_index], txb->fragments[i]);
ieee             2064 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->softmac_data_hard_start_xmit(txb->fragments[i],
ieee             2065 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 							   ieee->dev, ieee->rate);
ieee             2074 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             2079 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_resume_tx(struct ieee80211_device *ieee)
ieee             2082 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	for (i = ieee->tx_pending.frag; i < ieee->tx_pending.txb->nr_frags; i++) {
ieee             2083 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->queue_stop) {
ieee             2084 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->tx_pending.frag = i;
ieee             2087 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->softmac_data_hard_start_xmit(ieee->tx_pending.txb->fragments[i],
ieee             2088 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 							   ieee->dev, ieee->rate);
ieee             2090 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->stats.tx_packets++;
ieee             2091 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			netif_trans_update(ieee->dev);
ieee             2095 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_txb_free(ieee->tx_pending.txb);
ieee             2096 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->tx_pending.txb = NULL;
ieee             2099 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_reset_queue(struct ieee80211_device *ieee)
ieee             2103 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             2104 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	init_mgmt_queue(ieee);
ieee             2105 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->tx_pending.txb) {
ieee             2106 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_txb_free(ieee->tx_pending.txb);
ieee             2107 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->tx_pending.txb = NULL;
ieee             2109 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->queue_stop = 0;
ieee             2110 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             2114 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_wake_queue(struct ieee80211_device *ieee)
ieee             2120 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             2121 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (!ieee->queue_stop)
ieee             2124 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->queue_stop = 0;
ieee             2126 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->softmac_features & IEEE_SOFTMAC_SINGLE_QUEUE) {
ieee             2127 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		while (!ieee->queue_stop && (skb = dequeue_mgmt(ieee))) {
ieee             2130 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
ieee             2132 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			if (ieee->seq_ctrl[0] == 0xFFF)
ieee             2133 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->seq_ctrl[0] = 0;
ieee             2135 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->seq_ctrl[0]++;
ieee             2137 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->softmac_data_hard_start_xmit(skb, ieee->dev, ieee->basic_rate);
ieee             2141 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (!ieee->queue_stop && ieee->tx_pending.txb)
ieee             2142 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_resume_tx(ieee);
ieee             2144 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (!ieee->queue_stop && netif_queue_stopped(ieee->dev)) {
ieee             2145 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->softmac_stats.swtxawake++;
ieee             2146 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		netif_wake_queue(ieee->dev);
ieee             2149 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             2153 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_stop_queue(struct ieee80211_device *ieee)
ieee             2158 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (!netif_queue_stopped(ieee->dev)) {
ieee             2159 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		netif_stop_queue(ieee->dev);
ieee             2160 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->softmac_stats.swtxstop++;
ieee             2162 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->queue_stop = 1;
ieee             2168 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_start_master_bss(struct ieee80211_device *ieee)
ieee             2170 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->assoc_id = 1;
ieee             2172 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->current_network.ssid_len == 0) {
ieee             2173 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		strncpy(ieee->current_network.ssid,
ieee             2177 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->current_network.ssid_len = strlen(IEEE80211_DEFAULT_TX_ESSID);
ieee             2178 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->ssid_set = 1;
ieee             2181 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(ieee->current_network.bssid, ieee->dev->dev_addr, ETH_ALEN);
ieee             2183 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->set_chan(ieee->dev, ieee->current_network.channel);
ieee             2184 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->state = IEEE80211_LINKED;
ieee             2185 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->link_change(ieee->dev);
ieee             2186 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	notify_wx_assoc_event(ieee);
ieee             2188 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->data_hard_resume)
ieee             2189 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->data_hard_resume(ieee->dev);
ieee             2191 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	netif_carrier_on(ieee->dev);
ieee             2194 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_start_monitor_mode(struct ieee80211_device *ieee)
ieee             2196 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->raw_tx) {
ieee             2197 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->data_hard_resume)
ieee             2198 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->data_hard_resume(ieee->dev);
ieee             2200 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		netif_carrier_on(ieee->dev);
ieee             2206 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	struct ieee80211_device *ieee = container_of(dwork, struct ieee80211_device, start_ibss_wq);
ieee             2214 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (!ieee->proto_started) {
ieee             2218 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_lock(&ieee->wx_mutex);
ieee             2220 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->current_network.ssid_len == 0) {
ieee             2221 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		strcpy(ieee->current_network.ssid, IEEE80211_DEFAULT_TX_ESSID);
ieee             2222 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->current_network.ssid_len = strlen(IEEE80211_DEFAULT_TX_ESSID);
ieee             2223 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->ssid_set = 1;
ieee             2227 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_softmac_check_all_nets(ieee);
ieee             2230 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->state == IEEE80211_NOLINK)
ieee             2231 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->current_network.channel = 6;
ieee             2246 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->state == IEEE80211_NOLINK)
ieee             2247 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_start_scan_syncro(ieee);
ieee             2250 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->state == IEEE80211_NOLINK) {
ieee             2252 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (!ieee->wap_set)
ieee             2253 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			eth_random_addr(ieee->current_network.bssid);
ieee             2255 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->modulation & IEEE80211_CCK_MODULATION) {
ieee             2256 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->current_network.rates_len = 4;
ieee             2258 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->current_network.rates[0] = IEEE80211_BASIC_RATE_MASK | IEEE80211_CCK_RATE_1MB;
ieee             2259 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->current_network.rates[1] = IEEE80211_BASIC_RATE_MASK | IEEE80211_CCK_RATE_2MB;
ieee             2260 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->current_network.rates[2] = IEEE80211_BASIC_RATE_MASK | IEEE80211_CCK_RATE_5MB;
ieee             2261 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->current_network.rates[3] = IEEE80211_BASIC_RATE_MASK | IEEE80211_CCK_RATE_11MB;
ieee             2263 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->current_network.rates_len = 0;
ieee             2265 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->modulation & IEEE80211_OFDM_MODULATION) {
ieee             2266 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->current_network.rates_ex_len = 8;
ieee             2268 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->current_network.rates_ex[0] = IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_6MB;
ieee             2269 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->current_network.rates_ex[1] = IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_9MB;
ieee             2270 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->current_network.rates_ex[2] = IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_12MB;
ieee             2271 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->current_network.rates_ex[3] = IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_18MB;
ieee             2272 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->current_network.rates_ex[4] = IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_24MB;
ieee             2273 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->current_network.rates_ex[5] = IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_36MB;
ieee             2274 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->current_network.rates_ex[6] = IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_48MB;
ieee             2275 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->current_network.rates_ex[7] = IEEE80211_BASIC_RATE_MASK | IEEE80211_OFDM_RATE_54MB;
ieee             2277 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->rate = 108;
ieee             2279 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->current_network.rates_ex_len = 0;
ieee             2280 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->rate = 22;
ieee             2284 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->current_network.QoS_Enable = 0;
ieee             2285 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->SetWirelessMode(ieee->dev, IEEE_G);
ieee             2286 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->current_network.atim_window = 0;
ieee             2287 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->current_network.capability = WLAN_CAPABILITY_IBSS;
ieee             2288 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->short_slot)
ieee             2289 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->current_network.capability |= WLAN_CAPABILITY_SHORT_SLOT;
ieee             2292 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->state = IEEE80211_LINKED;
ieee             2294 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->set_chan(ieee->dev, ieee->current_network.channel);
ieee             2295 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->link_change(ieee->dev);
ieee             2297 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	notify_wx_assoc_event(ieee);
ieee             2299 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_start_send_beacons(ieee);
ieee             2301 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->data_hard_resume)
ieee             2302 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->data_hard_resume(ieee->dev);
ieee             2303 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	netif_carrier_on(ieee->dev);
ieee             2305 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_unlock(&ieee->wx_mutex);
ieee             2308 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c inline void ieee80211_start_ibss(struct ieee80211_device *ieee)
ieee             2310 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	schedule_delayed_work(&ieee->start_ibss_wq, 150);
ieee             2314 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_start_bss(struct ieee80211_device *ieee)
ieee             2321 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (IS_DOT11D_ENABLE(ieee) && !IS_COUNTRY_IE_VALID(ieee)) {
ieee             2322 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (!ieee->bGlobalDomain)
ieee             2330 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_softmac_check_all_nets(ieee);
ieee             2339 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             2341 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->state == IEEE80211_NOLINK) {
ieee             2342 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->actscanning = true;
ieee             2343 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_start_scan(ieee);
ieee             2345 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             2349 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_disassociate(struct ieee80211_device *ieee)
ieee             2351 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	netif_carrier_off(ieee->dev);
ieee             2352 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->softmac_features & IEEE_SOFTMAC_TX_QUEUE)
ieee             2353 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_reset_queue(ieee);
ieee             2355 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->data_hard_stop)
ieee             2356 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->data_hard_stop(ieee->dev);
ieee             2357 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (IS_DOT11D_ENABLE(ieee))
ieee             2358 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		dot11d_reset(ieee);
ieee             2359 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->state = IEEE80211_NOLINK;
ieee             2360 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->is_set_key = false;
ieee             2361 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->link_change(ieee->dev);
ieee             2363 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	notify_wx_assoc_event(ieee);
ieee             2370 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	struct ieee80211_device *ieee = container_of(dwork, struct ieee80211_device, associate_retry_wq);
ieee             2373 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_lock(&ieee->wx_mutex);
ieee             2374 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (!ieee->proto_started)
ieee             2377 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->state != IEEE80211_ASSOCIATING_RETRY)
ieee             2393 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->state = IEEE80211_NOLINK;
ieee             2395 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_softmac_check_all_nets(ieee);
ieee             2397 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee             2399 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->state == IEEE80211_NOLINK)
ieee             2400 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_start_scan(ieee);
ieee             2402 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee             2405 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_unlock(&ieee->wx_mutex);
ieee             2408 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c struct sk_buff *ieee80211_get_beacon_(struct ieee80211_device *ieee)
ieee             2415 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	skb = ieee80211_probe_resp(ieee, broadcast_addr);
ieee             2426 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c struct sk_buff *ieee80211_get_beacon(struct ieee80211_device *ieee)
ieee             2431 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	skb = ieee80211_get_beacon_(ieee);
ieee             2436 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	b->header.seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4);
ieee             2438 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->seq_ctrl[0] == 0xFFF)
ieee             2439 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->seq_ctrl[0] = 0;
ieee             2441 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->seq_ctrl[0]++;
ieee             2447 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_softmac_stop_protocol(struct ieee80211_device *ieee)
ieee             2449 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->sync_scan_hurryup = 1;
ieee             2450 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_lock(&ieee->wx_mutex);
ieee             2451 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_stop_protocol(ieee);
ieee             2452 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_unlock(&ieee->wx_mutex);
ieee             2456 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_stop_protocol(struct ieee80211_device *ieee)
ieee             2458 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (!ieee->proto_started)
ieee             2461 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->proto_started = 0;
ieee             2463 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_stop_send_beacons(ieee);
ieee             2464 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	del_timer_sync(&ieee->associate_timer);
ieee             2465 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	cancel_delayed_work(&ieee->associate_retry_wq);
ieee             2466 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	cancel_delayed_work(&ieee->start_ibss_wq);
ieee             2467 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_stop_scan(ieee);
ieee             2469 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_disassociate(ieee);
ieee             2470 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	RemoveAllTS(ieee); //added as we disconnect from the previous BSS, Remove all TS
ieee             2473 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_softmac_start_protocol(struct ieee80211_device *ieee)
ieee             2475 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->sync_scan_hurryup = 0;
ieee             2476 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_lock(&ieee->wx_mutex);
ieee             2477 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_start_protocol(ieee);
ieee             2478 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_unlock(&ieee->wx_mutex);
ieee             2482 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_start_protocol(struct ieee80211_device *ieee)
ieee             2487 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->proto_started)
ieee             2490 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->proto_started = 1;
ieee             2492 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->current_network.channel == 0) {
ieee             2497 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		} while (!GET_DOT11D_INFO(ieee)->channel_map[ch]);
ieee             2498 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->current_network.channel = ch;
ieee             2501 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->current_network.beacon_interval == 0)
ieee             2502 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->current_network.beacon_interval = 100;
ieee             2507 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->last_rxseq_num[i] = -1;
ieee             2508 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->last_rxfrag_num[i] = -1;
ieee             2509 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->last_packet_time[i] = 0;
ieee             2512 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->init_wmmparam_flag = 0;//reinitialize AC_xx_PARAM registers.
ieee             2519 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->iw_mode == IW_MODE_INFRA)
ieee             2520 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_start_bss(ieee);
ieee             2522 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	else if (ieee->iw_mode == IW_MODE_ADHOC)
ieee             2523 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_start_ibss(ieee);
ieee             2525 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	else if (ieee->iw_mode == IW_MODE_MASTER)
ieee             2526 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_start_master_bss(ieee);
ieee             2528 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	else if (ieee->iw_mode == IW_MODE_MONITOR)
ieee             2529 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_start_monitor_mode(ieee);
ieee             2533 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_softmac_init(struct ieee80211_device *ieee)
ieee             2536 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memset(&ieee->current_network, 0, sizeof(struct ieee80211_network));
ieee             2538 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->state = IEEE80211_NOLINK;
ieee             2539 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->sync_scan_hurryup = 0;
ieee             2541 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->seq_ctrl[i] = 0;
ieee             2543 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->dot11d_info = kzalloc(sizeof(struct rt_dot11d_info), GFP_KERNEL);
ieee             2544 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (!ieee->dot11d_info)
ieee             2547 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->LinkDetectInfo.SlotNum = 2;
ieee             2548 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->LinkDetectInfo.NumRecvBcnInPeriod = 0;
ieee             2549 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->LinkDetectInfo.NumRecvDataInPeriod = 0;
ieee             2551 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->assoc_id = 0;
ieee             2552 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->queue_stop = 0;
ieee             2553 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->scanning = 0;
ieee             2554 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->softmac_features = 0; //so IEEE2100-like driver are happy
ieee             2555 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->wap_set = 0;
ieee             2556 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->ssid_set = 0;
ieee             2557 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->proto_started = 0;
ieee             2558 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->basic_rate = IEEE80211_DEFAULT_BASIC_RATE;
ieee             2559 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->rate = 22;
ieee             2560 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->ps = IEEE80211_PS_DISABLED;
ieee             2561 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->sta_sleep = 0;
ieee             2562 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->Regdot11HTOperationalRateSet[0] = 0xff;//support MCS 0~7
ieee             2563 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->Regdot11HTOperationalRateSet[1] = 0xff;//support MCS 8~15
ieee             2564 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->Regdot11HTOperationalRateSet[4] = 0x01;
ieee             2566 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->actscanning = false;
ieee             2567 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->beinretry = false;
ieee             2568 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->is_set_key = false;
ieee             2569 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	init_mgmt_queue(ieee);
ieee             2571 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->sta_edca_param[0] = 0x0000A403;
ieee             2572 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->sta_edca_param[1] = 0x0000A427;
ieee             2573 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->sta_edca_param[2] = 0x005E4342;
ieee             2574 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->sta_edca_param[3] = 0x002F3262;
ieee             2575 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->aggregation = true;
ieee             2576 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->enable_rx_imm_BA = true;
ieee             2577 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->tx_pending.txb = NULL;
ieee             2579 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	timer_setup(&ieee->associate_timer, ieee80211_associate_abort_cb, 0);
ieee             2581 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	timer_setup(&ieee->beacon_timer, ieee80211_send_beacon_cb, 0);
ieee             2583 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	INIT_DELAYED_WORK(&ieee->start_ibss_wq, ieee80211_start_ibss_wq);
ieee             2584 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	INIT_WORK(&ieee->associate_complete_wq, ieee80211_associate_complete_wq);
ieee             2585 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	INIT_WORK(&ieee->associate_procedure_wq, ieee80211_associate_procedure_wq);
ieee             2586 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	INIT_DELAYED_WORK(&ieee->softmac_scan_wq, ieee80211_softmac_scan_wq);
ieee             2587 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	INIT_DELAYED_WORK(&ieee->associate_retry_wq, ieee80211_associate_retry_wq);
ieee             2588 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	INIT_WORK(&ieee->wx_sync_scan_wq, ieee80211_wx_sync_scan_wq);
ieee             2590 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_init(&ieee->wx_mutex);
ieee             2591 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_init(&ieee->scan_mutex);
ieee             2593 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_lock_init(&ieee->mgmt_tx_lock);
ieee             2594 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	spin_lock_init(&ieee->beacon_lock);
ieee             2596 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	tasklet_init(&ieee->ps_task,
ieee             2598 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		     (unsigned long)ieee);
ieee             2601 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void ieee80211_softmac_free(struct ieee80211_device *ieee)
ieee             2603 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_lock(&ieee->wx_mutex);
ieee             2604 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	kfree(ieee->dot11d_info);
ieee             2605 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->dot11d_info = NULL;
ieee             2606 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	del_timer_sync(&ieee->associate_timer);
ieee             2608 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	cancel_delayed_work(&ieee->associate_retry_wq);
ieee             2610 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_unlock(&ieee->wx_mutex);
ieee             2617 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static int ieee80211_wpa_enable(struct ieee80211_device *ieee, int value)
ieee             2622 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee->wpa_enabled = value;
ieee             2626 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static void ieee80211_wpa_assoc_frame(struct ieee80211_device *ieee,
ieee             2630 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_wpa_enable(ieee, 1);
ieee             2632 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_disassociate(ieee);
ieee             2635 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static int ieee80211_wpa_mlme(struct ieee80211_device *ieee, int command, int reason)
ieee             2645 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_disassociate(ieee);
ieee             2656 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static int ieee80211_wpa_set_wpa_ie(struct ieee80211_device *ieee,
ieee             2670 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		kfree(ieee->wpa_ie);
ieee             2671 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->wpa_ie = buf;
ieee             2672 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->wpa_ie_len = param->u.wpa_ie.len;
ieee             2674 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		kfree(ieee->wpa_ie);
ieee             2675 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->wpa_ie = NULL;
ieee             2676 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->wpa_ie_len = 0;
ieee             2679 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	ieee80211_wpa_assoc_frame(ieee, ieee->wpa_ie, ieee->wpa_ie_len);
ieee             2686 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static int ieee80211_wpa_set_auth_algs(struct ieee80211_device *ieee, int value)
ieee             2694 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->open_wep = 0;
ieee             2695 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->auth_mode = 1;
ieee             2698 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->open_wep = 1;
ieee             2699 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->auth_mode = 0;
ieee             2702 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->open_wep = 1;
ieee             2703 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->auth_mode = 2;
ieee             2706 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->set_security)
ieee             2707 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->set_security(ieee->dev, &sec);
ieee             2714 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static int ieee80211_wpa_set_param(struct ieee80211_device *ieee, u8 name, u32 value)
ieee             2721 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ret = ieee80211_wpa_enable(ieee, value);
ieee             2725 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->tkip_countermeasures = value;
ieee             2744 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->drop_unencrypted = value;
ieee             2755 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		if (ieee->set_security)
ieee             2756 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->set_security(ieee->dev, &sec);
ieee             2761 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->privacy_invoked = value;
ieee             2765 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ret = ieee80211_wpa_set_auth_algs(ieee, value);
ieee             2769 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->ieee802_1x = value;
ieee             2773 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		spin_lock_irqsave(&ieee->wpax_suitlist_lock, flags);
ieee             2774 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->wpax_type_set = 1;
ieee             2775 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->wpax_type_notify = value;
ieee             2776 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		spin_unlock_irqrestore(&ieee->wpax_suitlist_lock, flags);
ieee             2788 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c static int ieee80211_wpa_set_encryption(struct ieee80211_device *ieee,
ieee             2814 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		crypt = &ieee->crypt[param->u.crypt.idx];
ieee             2826 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee80211_crypt_delayed_deinit(ieee, crypt);
ieee             2836 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (!(ieee->host_encrypt || ieee->host_decrypt) &&
ieee             2860 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee80211_crypt_delayed_deinit(ieee, crypt);
ieee             2894 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->tx_keyidx = param->u.crypt.idx;
ieee             2917 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->set_security)
ieee             2918 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ieee->set_security(ieee->dev, &sec);
ieee             2925 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->reset_on_keychange &&
ieee             2926 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	    ieee->iw_mode != IW_MODE_INFRA &&
ieee             2927 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	    ieee->reset_port &&
ieee             2928 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	    ieee->reset_port(ieee->dev)) {
ieee             2938 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 							 struct ieee80211_device *ieee,
ieee             2953 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	memcpy(disass->header.addr2, ieee->dev->dev_addr, ETH_ALEN);
ieee             2961 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c SendDisassociation(struct ieee80211_device *ieee,
ieee             2966 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	struct ieee80211_network *beacon = &ieee->current_network;
ieee             2969 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	skb = ieee80211_disassociate_skb(beacon, ieee, asRsn);
ieee             2971 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		softmac_mgmt_xmit(skb, ieee);
ieee             2977 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c int ieee80211_wpa_supplicant_ioctl(struct ieee80211_device *ieee, struct iw_point *p)
ieee             2982 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_lock(&ieee->wx_mutex);
ieee             2998 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ret = ieee80211_wpa_set_param(ieee, param->u.wpa_param.name,
ieee             3003 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ret = ieee80211_wpa_set_wpa_ie(ieee, param, p->length);
ieee             3007 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ret = ieee80211_wpa_set_encryption(ieee, param, p->length);
ieee             3011 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		ret = ieee80211_wpa_mlme(ieee, param->u.mlme.command,
ieee             3026 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	mutex_unlock(&ieee->wx_mutex);
ieee             3032 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c void notify_wx_assoc_event(struct ieee80211_device *ieee)
ieee             3037 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	if (ieee->state == IEEE80211_LINKED)
ieee             3038 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 		memcpy(wrqu.ap_addr.sa_data, ieee->current_network.bssid, ETH_ALEN);
ieee             3041 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	wireless_send_event(ieee->dev, SIOCGIWAP, &wrqu, NULL);
ieee               30 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c int ieee80211_wx_set_freq(struct ieee80211_device *ieee, struct iw_request_info *a,
ieee               36 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee               38 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->iw_mode == IW_MODE_INFRA) {
ieee               65 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		if (!(GET_DOT11D_INFO(ieee)->channel_map)[fwrq->m]) {
ieee               69 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->current_network.channel = fwrq->m;
ieee               70 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->set_chan(ieee->dev, ieee->current_network.channel);
ieee               72 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		if (ieee->iw_mode == IW_MODE_ADHOC || ieee->iw_mode == IW_MODE_MASTER)
ieee               73 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 			if (ieee->state == IEEE80211_LINKED) {
ieee               74 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 				ieee80211_stop_send_beacons(ieee);
ieee               75 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 				ieee80211_start_send_beacons(ieee);
ieee               81 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee               86 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c int ieee80211_wx_get_freq(struct ieee80211_device *ieee,
ieee               92 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->current_network.channel == 0)
ieee               95 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	fwrq->m = ieee80211_wlan_frequencies[ieee->current_network.channel - 1] * 100000;
ieee              104 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c int ieee80211_wx_get_wap(struct ieee80211_device *ieee,
ieee              112 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->iw_mode == IW_MODE_MONITOR)
ieee              116 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee              118 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->state != IEEE80211_LINKED &&
ieee              119 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->state != IEEE80211_LINKED_SCANNING &&
ieee              120 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->wap_set == 0)
ieee              125 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		       ieee->current_network.bssid, ETH_ALEN);
ieee              127 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee              133 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c int ieee80211_wx_set_wap(struct ieee80211_device *ieee,
ieee              142 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	short ifup = ieee->proto_started; /* dev->flags & IFF_UP; */
ieee              145 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	ieee->sync_scan_hurryup = 1;
ieee              147 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee              149 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->iw_mode == IW_MODE_MASTER) {
ieee              160 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee80211_stop_protocol(ieee);
ieee              165 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee              167 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	memcpy(ieee->current_network.bssid, temp->sa_data, ETH_ALEN);
ieee              168 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	ieee->wap_set = !is_zero_ether_addr(temp->sa_data);
ieee              170 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee              173 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee80211_start_protocol(ieee);
ieee              175 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              180 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c int ieee80211_wx_get_essid(struct ieee80211_device *ieee, struct iw_request_info *a, union iwreq_data *wrqu, char *b)
ieee              185 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->iw_mode == IW_MODE_MONITOR)
ieee              189 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee              191 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->current_network.ssid[0] == '\0' ||
ieee              192 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->current_network.ssid_len == 0) {
ieee              197 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->state != IEEE80211_LINKED &&
ieee              198 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->state != IEEE80211_LINKED_SCANNING &&
ieee              199 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->ssid_set == 0) {
ieee              203 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	len = ieee->current_network.ssid_len;
ieee              205 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	strncpy(b, ieee->current_network.ssid, len);
ieee              209 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee              216 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c int ieee80211_wx_set_rate(struct ieee80211_device *ieee,
ieee              223 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	ieee->rate = target_rate / 100000;
ieee              229 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c int ieee80211_wx_get_rate(struct ieee80211_device *ieee,
ieee              235 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	tmp_rate = TxCountToDataRate(ieee, ieee->softmac_stats.CurrentShowTxate);
ieee              243 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c int ieee80211_wx_set_rts(struct ieee80211_device *ieee,
ieee              248 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->rts = DEFAULT_RTS_THRESHOLD;
ieee              253 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->rts = wrqu->rts.value;
ieee              259 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c int ieee80211_wx_get_rts(struct ieee80211_device *ieee,
ieee              263 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	wrqu->rts.value = ieee->rts;
ieee              270 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c int ieee80211_wx_set_mode(struct ieee80211_device *ieee, struct iw_request_info *a,
ieee              274 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	ieee->sync_scan_hurryup = 1;
ieee              276 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee              278 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (wrqu->mode == ieee->iw_mode)
ieee              282 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->dev->type = ARPHRD_IEEE80211;
ieee              284 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->dev->type = ARPHRD_ETHER;
ieee              286 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (!ieee->proto_started) {
ieee              287 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->iw_mode = wrqu->mode;
ieee              289 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee80211_stop_protocol(ieee);
ieee              290 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->iw_mode = wrqu->mode;
ieee              291 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee80211_start_protocol(ieee);
ieee              295 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              302 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	struct ieee80211_device *ieee = container_of(work, struct ieee80211_device, wx_sync_scan_wq);
ieee              308 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	chan = ieee->current_network.channel;
ieee              309 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	netif_carrier_off(ieee->dev);
ieee              311 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->data_hard_stop)
ieee              312 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->data_hard_stop(ieee->dev);
ieee              314 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	ieee80211_stop_send_beacons(ieee);
ieee              316 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	ieee->state = IEEE80211_LINKED_SCANNING;
ieee              317 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	ieee->link_change(ieee->dev);
ieee              318 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	ieee->InitialGainHandler(ieee->dev, IG_Backup);
ieee              319 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->pHTInfo->bCurrentHTSupport && ieee->pHTInfo->bEnableHT && ieee->pHTInfo->bCurBW40MHz) {
ieee              321 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		chan_offset = ieee->pHTInfo->CurSTAExtChnlOffset;
ieee              322 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		bandwidth = (enum ht_channel_width)ieee->pHTInfo->bCurBW40MHz;
ieee              324 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->SetBWModeHandler(ieee->dev, HT_CHANNEL_WIDTH_20, HT_EXTCHNL_OFFSET_NO_EXT);
ieee              326 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	ieee80211_start_scan_syncro(ieee);
ieee              330 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 			ieee->set_chan(ieee->dev, chan + 2);
ieee              332 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 			ieee->set_chan(ieee->dev, chan - 2);
ieee              334 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 			ieee->set_chan(ieee->dev, chan);
ieee              335 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->SetBWModeHandler(ieee->dev, bandwidth, chan_offset);
ieee              337 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->set_chan(ieee->dev, chan);
ieee              340 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	ieee->InitialGainHandler(ieee->dev, IG_Restore);
ieee              341 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	ieee->state = IEEE80211_LINKED;
ieee              342 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	ieee->link_change(ieee->dev);
ieee              344 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->LinkDetectInfo.NumRecvBcnInPeriod == 0 || ieee->LinkDetectInfo.NumRecvDataInPeriod == 0) {
ieee              345 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->LinkDetectInfo.NumRecvBcnInPeriod = 1;
ieee              346 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->LinkDetectInfo.NumRecvDataInPeriod = 1;
ieee              348 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->data_hard_resume)
ieee              349 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->data_hard_resume(ieee->dev);
ieee              351 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->iw_mode == IW_MODE_ADHOC || ieee->iw_mode == IW_MODE_MASTER)
ieee              352 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee80211_start_send_beacons(ieee);
ieee              354 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	netif_carrier_on(ieee->dev);
ieee              355 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              359 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c int ieee80211_wx_set_scan(struct ieee80211_device *ieee, struct iw_request_info *a,
ieee              364 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee              366 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->iw_mode == IW_MODE_MONITOR || !(ieee->proto_started)) {
ieee              371 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->state == IEEE80211_LINKED) {
ieee              372 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		queue_work(ieee->wq, &ieee->wx_sync_scan_wq);
ieee              378 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              383 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c int ieee80211_wx_set_essid(struct ieee80211_device *ieee,
ieee              392 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	ieee->sync_scan_hurryup = 1;
ieee              393 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee              395 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	proto_started = ieee->proto_started;
ieee              402 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->iw_mode == IW_MODE_MONITOR) {
ieee              408 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee80211_stop_protocol(ieee);
ieee              414 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee              419 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		strncpy(ieee->current_network.ssid, extra, len + 1);
ieee              420 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->current_network.ssid_len = len + 1;
ieee              421 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->ssid_set = 1;
ieee              423 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->ssid_set = 0;
ieee              424 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->current_network.ssid[0] = '\0';
ieee              425 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->current_network.ssid_len = 0;
ieee              427 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee              430 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee80211_start_protocol(ieee);
ieee              432 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              437 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c int ieee80211_wx_get_mode(struct ieee80211_device *ieee, struct iw_request_info *a,
ieee              441 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	wrqu->mode = ieee->iw_mode;
ieee              446 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c int ieee80211_wx_set_rawtx(struct ieee80211_device *ieee,
ieee              453 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	short prev = ieee->raw_tx;
ieee              455 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee              458 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->raw_tx = 1;
ieee              460 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->raw_tx = 0;
ieee              463 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	      ieee->raw_tx ? "enabled" : "disabled");
ieee              465 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->iw_mode == IW_MODE_MONITOR) {
ieee              466 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		if (prev == 0 && ieee->raw_tx) {
ieee              467 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 			if (ieee->data_hard_resume)
ieee              468 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 				ieee->data_hard_resume(ieee->dev);
ieee              470 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 			netif_carrier_on(ieee->dev);
ieee              473 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		if (prev && ieee->raw_tx == 1)
ieee              474 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 			netif_carrier_off(ieee->dev);
ieee              477 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              483 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c int ieee80211_wx_get_name(struct ieee80211_device *ieee,
ieee              488 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->modulation & IEEE80211_CCK_MODULATION) {
ieee              490 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		if (ieee->modulation & IEEE80211_OFDM_MODULATION)
ieee              492 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	} else if (ieee->modulation & IEEE80211_OFDM_MODULATION) {
ieee              496 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->mode & (IEEE_N_24G | IEEE_N_5G))
ieee              499 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if ((ieee->state == IEEE80211_LINKED) ||
ieee              500 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	    (ieee->state == IEEE80211_LINKED_SCANNING))
ieee              502 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	else if (ieee->state != IEEE80211_NOLINK)
ieee              510 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c int ieee80211_wx_set_power(struct ieee80211_device *ieee,
ieee              516 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee              519 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->ps = IEEE80211_PS_DISABLED;
ieee              524 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->ps_timeout = wrqu->power.value / 1000;
ieee              530 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->ps_period = wrqu->power.value / 1000;
ieee              536 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->ps = IEEE80211_PS_UNICAST;
ieee              539 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->ps = IEEE80211_PS_MBCAST;
ieee              542 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		ieee->ps = IEEE80211_PS_UNICAST | IEEE80211_PS_MBCAST;
ieee              555 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              562 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c int ieee80211_wx_get_power(struct ieee80211_device *ieee,
ieee              566 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee              568 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if (ieee->ps == IEEE80211_PS_DISABLED) {
ieee              577 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		wrqu->power.value = ieee->ps_timeout * 1000;
ieee              582 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 		wrqu->power.value = ieee->ps_period * 1000;
ieee              586 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	if ((ieee->ps & (IEEE80211_PS_MBCAST | IEEE80211_PS_UNICAST)) == (IEEE80211_PS_MBCAST | IEEE80211_PS_UNICAST))
ieee              588 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	else if (ieee->ps & IEEE80211_PS_MBCAST)
ieee              594 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              165 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	struct ieee80211_device *ieee,
ieee              169 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	struct ieee80211_crypt_data *crypt = ieee->crypt[ieee->tx_keyidx];
ieee              177 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	if (ieee->tkip_countermeasures &&
ieee              185 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			       ieee->dev->name, header->addr1);
ieee              208 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		       ieee->dev->name, frag->len);
ieee              209 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		ieee->ieee_stats.tx_discards++;
ieee              290 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c static void ieee80211_tx_query_agg_cap(struct ieee80211_device *ieee,
ieee              293 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	PRT_HIGH_THROUGHPUT	pHTInfo = ieee->pHTInfo;
ieee              305 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	if (!ieee->GetNmodeSupportBySecCfg(ieee->dev)) {
ieee              309 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		if (!GetTs(ieee, (struct ts_common_info **)(&pTxTs), hdr->addr1, skb->priority, TX_DIR, true)) {
ieee              314 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			TsStartAddBaProcess(ieee, pTxTs);
ieee              323 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		if (ieee->iw_mode == IW_MODE_INFRA) {
ieee              350 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c static void ieee80211_qurey_ShortPreambleMode(struct ieee80211_device *ieee,
ieee              356 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	} else if (ieee->current_network.capability & WLAN_CAPABILITY_SHORT_PREAMBLE) {
ieee              362 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c ieee80211_query_HTCapShortGI(struct ieee80211_device *ieee, struct cb_desc *tcb_desc)
ieee              364 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	PRT_HIGH_THROUGHPUT		pHTInfo = ieee->pHTInfo;
ieee              382 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c static void ieee80211_query_BandwidthMode(struct ieee80211_device *ieee,
ieee              385 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	PRT_HIGH_THROUGHPUT	pHTInfo = ieee->pHTInfo;
ieee              398 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	if (pHTInfo->bCurBW40MHz && pHTInfo->bCurTxBW40MHz && !ieee->bandwidth_auto_switch.bforced_tx20Mhz)
ieee              403 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c static void ieee80211_query_protectionmode(struct ieee80211_device *ieee,
ieee              420 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	if (ieee->mode < IEEE_N_24G) /* b, g mode */ {
ieee              425 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		if (skb->len > ieee->rts) {
ieee              428 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		} else if (ieee->current_network.buseprotection) {
ieee              437 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
ieee              440 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			if (ieee->current_network.buseprotection) {// CTS-to-SELF
ieee              457 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			if (skb->len > ieee->rts) {
ieee              488 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	if (ieee->current_network.capability & WLAN_CAPABILITY_SHORT_PREAMBLE)
ieee              490 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	if (ieee->mode == IW_MODE_MASTER)
ieee              502 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c static void ieee80211_txrate_selectmode(struct ieee80211_device *ieee,
ieee              505 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	if (ieee->bTxDisableRateFallBack)
ieee              508 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	if (ieee->bTxUseDriverAssingedRate)
ieee              511 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		if (ieee->iw_mode == IW_MODE_INFRA || ieee->iw_mode == IW_MODE_ADHOC)
ieee              516 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c static void ieee80211_query_seqnum(struct ieee80211_device *ieee,
ieee              523 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		if (!GetTs(ieee, (struct ts_common_info **)(&pTS), dst, skb->priority, TX_DIR, true)) {
ieee              532 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	struct ieee80211_device *ieee = netdev_priv(dev);
ieee              537 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	struct net_device_stats *stats = &ieee->stats;
ieee              547 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	int qos_actived = ieee->current_network.qos_data.active;
ieee              553 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee              558 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	if ((!ieee->hard_start_xmit && !(ieee->softmac_features & IEEE_SOFTMAC_TX_QUEUE)) ||
ieee              559 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	   ((!ieee->softmac_data_hard_start_xmit && (ieee->softmac_features & IEEE_SOFTMAC_TX_QUEUE)))) {
ieee              561 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		       ieee->dev->name);
ieee              566 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	if (likely(ieee->raw_tx == 0)) {
ieee              569 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			ieee->dev->name, skb->len);
ieee              576 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		crypt = ieee->crypt[ieee->tx_keyidx];
ieee              578 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		encrypt = !(ether_type == ETH_P_PAE && ieee->ieee802_1x) &&
ieee              579 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			ieee->host_encrypt && crypt && crypt->ops;
ieee              581 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		if (!encrypt && ieee->ieee802_1x &&
ieee              582 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		ieee->drop_unencrypted && ether_type != ETH_P_PAE) {
ieee              617 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		if (ieee->iw_mode == IW_MODE_INFRA) {
ieee              622 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			memcpy(&header.addr1, ieee->current_network.bssid, ETH_ALEN);
ieee              625 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		} else if (ieee->iw_mode == IW_MODE_ADHOC) {
ieee              631 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			memcpy(&header.addr3, ieee->current_network.bssid, ETH_ALEN);
ieee              643 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			frag_size = ieee->fts;//default:392
ieee              651 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			skb->priority = ieee80211_classify(skb, &ieee->current_network);
ieee              663 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		if (ieee->config &
ieee              686 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		txb = ieee80211_alloc_txb(nr_frags, frag_size + ieee->tx_headroom, GFP_ATOMIC);
ieee              689 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			ieee->dev->name);
ieee              713 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			skb_reserve(skb_frag, ieee->tx_headroom);
ieee              716 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 				if (ieee->hwsec_active)
ieee              741 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 				frag_hdr->seq_ctl = cpu_to_le16(ieee->seq_ctrl[UP2AC(skb->priority) + 1] << 4 | i);
ieee              743 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 				frag_hdr->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4 | i);
ieee              763 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 				ieee80211_encrypt_fragment(ieee, skb_frag, hdr_len);
ieee              764 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			if (ieee->config &
ieee              770 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			if (ieee->seq_ctrl[UP2AC(skb->priority) + 1] == 0xFFF)
ieee              771 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 				ieee->seq_ctrl[UP2AC(skb->priority) + 1] = 0;
ieee              773 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 				ieee->seq_ctrl[UP2AC(skb->priority) + 1]++;
ieee              775 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			if (ieee->seq_ctrl[0] == 0xFFF)
ieee              776 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 				ieee->seq_ctrl[0] = 0;
ieee              778 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 				ieee->seq_ctrl[0]++;
ieee              783 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			ieee->dev->name, skb->len);
ieee              790 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			ieee->dev->name);
ieee              808 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		ieee80211_txrate_selectmode(ieee, tcb_desc);
ieee              810 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			tcb_desc->data_rate = ieee->basic_rate;
ieee              812 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			tcb_desc->data_rate = CURRENT_RATE(ieee->mode, ieee->rate, ieee->HTCurrentOperaRate);
ieee              813 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		ieee80211_qurey_ShortPreambleMode(ieee, tcb_desc);
ieee              814 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		ieee80211_tx_query_agg_cap(ieee, txb->fragments[0], tcb_desc);
ieee              815 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		ieee80211_query_HTCapShortGI(ieee, tcb_desc);
ieee              816 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		ieee80211_query_BandwidthMode(ieee, tcb_desc);
ieee              817 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		ieee80211_query_protectionmode(ieee, tcb_desc, txb->fragments[0]);
ieee              818 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		ieee80211_query_seqnum(ieee, txb->fragments[0], header.addr1);
ieee              820 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee              823 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 		if (ieee->softmac_features & IEEE_SOFTMAC_TX_QUEUE) {
ieee              824 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			ieee80211_softmac_xmit(txb, ieee);
ieee              826 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 			if ((*ieee->hard_start_xmit)(txb, dev) == 0) {
ieee              838 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee               39 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c static inline char *rtl819x_translate_scan(struct ieee80211_device *ieee,
ieee              146 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		max_mcs = HTGetHighestMCSRate(ieee, ht_cap->MCS, MCS_FILTER_ALL);
ieee              182 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	if (ieee->wpa_enabled && network->wpa_ie_len) {
ieee              197 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	if (ieee->wpa_enabled && network->rsn_ie_len) {
ieee              226 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c int ieee80211_wx_get_scan(struct ieee80211_device *ieee,
ieee              240 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	mutex_lock(&ieee->wx_mutex);
ieee              241 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	spin_lock_irqsave(&ieee->lock, flags);
ieee              243 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	list_for_each_entry(network, &ieee->network_list, list) {
ieee              249 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		if (ieee->scan_age == 0 ||
ieee              250 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		    time_after(network->last_scanned + ieee->scan_age, jiffies))
ieee              251 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			ev = rtl819x_translate_scan(ieee, ev, stop, network, info);
ieee              262 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	spin_unlock_irqrestore(&ieee->lock, flags);
ieee              263 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	mutex_unlock(&ieee->wx_mutex);
ieee              273 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c int ieee80211_wx_set_encode(struct ieee80211_device *ieee,
ieee              278 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	struct net_device *dev = ieee->dev;
ieee              295 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		key = ieee->tx_keyidx;
ieee              300 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	crypt = &ieee->crypt[key];
ieee              306 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			ieee80211_crypt_delayed_deinit(ieee, crypt);
ieee              313 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			if (ieee->crypt[i]) {
ieee              317 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 					ieee, &ieee->crypt[i]);
ieee              339 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		ieee80211_crypt_delayed_deinit(ieee, crypt);
ieee              386 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		ieee->tx_keyidx = key;
ieee              409 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			ieee->tx_keyidx = key;
ieee              416 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	ieee->open_wep = !(erq->flags & IW_ENCODE_RESTRICTED);
ieee              417 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	ieee->auth_mode = ieee->open_wep ? WLAN_AUTH_OPEN : WLAN_AUTH_SHARED_KEY;
ieee              418 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	sec.auth_mode = ieee->open_wep ? WLAN_AUTH_OPEN : WLAN_AUTH_SHARED_KEY;
ieee              428 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	if (ieee->set_security)
ieee              429 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		ieee->set_security(dev, &sec);
ieee              436 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	if (ieee->reset_on_keychange &&
ieee              437 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	    ieee->iw_mode != IW_MODE_INFRA &&
ieee              438 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	    ieee->reset_port && ieee->reset_port(dev)) {
ieee              446 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c int ieee80211_wx_get_encode(struct ieee80211_device *ieee,
ieee              456 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	if (ieee->iw_mode == IW_MODE_MONITOR)
ieee              465 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		key = ieee->tx_keyidx;
ieee              467 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	crypt = ieee->crypt[key];
ieee              480 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	if (ieee->open_wep)
ieee              489 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c int ieee80211_wx_set_encode_ext(struct ieee80211_device *ieee,
ieee              494 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	struct net_device *dev = ieee->dev;
ieee              512 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		idx = ieee->tx_keyidx;
ieee              516 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		crypt = &ieee->crypt[idx];
ieee              523 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		if (ieee->iw_mode == IW_MODE_INFRA)
ieee              525 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			crypt = &ieee->crypt[idx];
ieee              535 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			ieee80211_crypt_delayed_deinit(ieee, crypt);
ieee              539 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			if (ieee->crypt[i])
ieee              587 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		ieee80211_crypt_delayed_deinit(ieee, crypt);
ieee              615 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		ieee->tx_keyidx = idx;
ieee              642 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	if (ieee->set_security)
ieee              643 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		ieee->set_security(ieee->dev, &sec);
ieee              645 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	if (ieee->reset_on_keychange &&
ieee              646 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	    ieee->iw_mode != IW_MODE_INFRA &&
ieee              647 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	    ieee->reset_port && ieee->reset_port(dev)) {
ieee              655 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c int ieee80211_wx_get_encode_ext(struct ieee80211_device *ieee,
ieee              674 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		idx = ieee->tx_keyidx;
ieee              678 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		if (idx != 0 || ieee->iw_mode != IW_MODE_INFRA)
ieee              681 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 	crypt = ieee->crypt[idx];
ieee              710 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c int ieee80211_wx_set_mlme(struct ieee80211_device *ieee,
ieee              718 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		ieee80211_disassociate(ieee);
ieee              727 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c int ieee80211_wx_set_auth(struct ieee80211_device *ieee,
ieee              744 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		ieee->tkip_countermeasures = data->value;
ieee              747 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		ieee->drop_unencrypted = data->value;
ieee              754 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			ieee->open_wep = 0;
ieee              755 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			ieee->auth_mode = 1;
ieee              757 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			ieee->open_wep = 1;
ieee              758 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			ieee->auth_mode = 0;
ieee              760 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			ieee->open_wep = 1;
ieee              761 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 			ieee->auth_mode = 2;
ieee              767 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		ieee->wpa_enabled = (data->value) ? 1 : 0;
ieee              771 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		ieee->ieee802_1x = data->value;
ieee              774 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		ieee->privacy_invoked = data->value;
ieee              783 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c int ieee80211_wx_set_gen_ie(struct ieee80211_device *ieee, u8 *ie, size_t len)
ieee              801 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		kfree(ieee->wpa_ie);
ieee              802 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		ieee->wpa_ie = buf;
ieee              803 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		ieee->wpa_ie_len = len;
ieee              805 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		kfree(ieee->wpa_ie);
ieee              806 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		ieee->wpa_ie = NULL;
ieee              807 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c 		ieee->wpa_ie_len = 0;
ieee               19 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c static void ActivateBAEntry(struct ieee80211_device *ieee, struct ba_record *pBA, u16 Time)
ieee               31 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c static void DeActivateBAEntry(struct ieee80211_device *ieee, struct ba_record *pBA)
ieee               43 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c static u8 TxTsDeleteBA(struct ieee80211_device *ieee, struct tx_ts_record *pTxTs)
ieee               51 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		DeActivateBAEntry(ieee, pPendingBa);
ieee               57 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		DeActivateBAEntry(ieee, pAdmittedBa);
ieee               71 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c static u8 RxTsDeleteBA(struct ieee80211_device *ieee, struct rx_ts_record *pRxTs)
ieee               77 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		DeActivateBAEntry(ieee, pBa);
ieee              108 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c static struct sk_buff *ieee80211_ADDBA(struct ieee80211_device *ieee, u8 *Dst, struct ba_record *pBA, u16 StatusCode, u8 type)
ieee              113 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	u16 len = ieee->tx_headroom + 9;
ieee              115 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	IEEE80211_DEBUG(IEEE80211_DL_TRACE | IEEE80211_DL_BA, "========>%s(), frame(%d) sentd to:%pM, ieee->dev:%p\n", __func__, type, Dst, ieee->dev);
ieee              125 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	skb_reserve(skb, ieee->tx_headroom);
ieee              130 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	memcpy(BAReq->addr2, ieee->dev->dev_addr, ETH_ALEN);
ieee              132 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	memcpy(BAReq->addr3, ieee->current_network.bssid, ETH_ALEN);
ieee              145 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		netdev_info(ieee->dev, "=====>to send ADDBARSP\n");
ieee              181 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	struct ieee80211_device  *ieee,
ieee              193 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	u16 len = 6 + ieee->tx_headroom;
ieee              209 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	skb_reserve(skb, ieee->tx_headroom);
ieee              214 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	memcpy(Delba->addr2, ieee->dev->dev_addr, ETH_ALEN);
ieee              215 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	memcpy(Delba->addr3, ieee->current_network.bssid, ETH_ALEN);
ieee              246 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c static void ieee80211_send_ADDBAReq(struct ieee80211_device *ieee,
ieee              250 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	skb = ieee80211_ADDBA(ieee, dst, pBA, 0, ACT_ADDBAREQ); //construct ACT_ADDBAREQ frames so set statuscode zero.
ieee              253 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		softmac_mgmt_xmit(skb, ieee);
ieee              270 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c static void ieee80211_send_ADDBARsp(struct ieee80211_device *ieee, u8 *dst,
ieee              274 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	skb = ieee80211_ADDBA(ieee, dst, pBA, StatusCode, ACT_ADDBARSP); //construct ACT_ADDBARSP frames
ieee              276 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		softmac_mgmt_xmit(skb, ieee);
ieee              295 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c static void ieee80211_send_DELBA(struct ieee80211_device *ieee, u8 *dst,
ieee              300 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	skb = ieee80211_DELBA(ieee, dst, pBA, TxRxSelect, ReasonCode); //construct ACT_ADDBARSP frames
ieee              302 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		softmac_mgmt_xmit(skb, ieee);
ieee              315 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c int ieee80211_rx_ADDBAReq(struct ieee80211_device *ieee, struct sk_buff *skb)
ieee              345 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	netdev_info(ieee->dev, "====================>rx ADDBAREQ from :%pM\n", dst);
ieee              347 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	if ((ieee->current_network.qos_data.active == 0) ||
ieee              348 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		(!ieee->pHTInfo->bCurrentHTSupport)) //||
ieee              352 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		IEEE80211_DEBUG(IEEE80211_DL_ERR, "Failed to reply on ADDBA_REQ as some capability is not ready(%d, %d)\n", ieee->current_network.qos_data.active, ieee->pHTInfo->bCurrentHTSupport);
ieee              358 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 			ieee,
ieee              380 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	DeActivateBAEntry(ieee, pBA);
ieee              386 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev))
ieee              390 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	ActivateBAEntry(ieee, pBA, pBA->timeout_value);
ieee              391 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	ieee80211_send_ADDBARsp(ieee, dst, pBA, ADDBA_STATUS_SUCCESS);
ieee              403 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		ieee80211_send_ADDBARsp(ieee, dst, &BA, rc);
ieee              415 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c int ieee80211_rx_ADDBARsp(struct ieee80211_device *ieee, struct sk_buff *skb)
ieee              443 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	if (ieee->current_network.qos_data.active == 0  ||
ieee              444 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	    !ieee->pHTInfo->bCurrentHTSupport ||
ieee              445 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	    !ieee->pHTInfo->bCurrentAMPDUEnable) {
ieee              446 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		IEEE80211_DEBUG(IEEE80211_DL_ERR, "reject to ADDBA_RSP as some capability is not ready(%d, %d, %d)\n", ieee->current_network.qos_data.active, ieee->pHTInfo->bCurrentHTSupport, ieee->pHTInfo->bCurrentAMPDUEnable);
ieee              457 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 			ieee,
ieee              487 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		DeActivateBAEntry(ieee, pPendingBA);
ieee              500 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 			DeActivateBAEntry(ieee, pAdmittedBA);
ieee              513 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		DeActivateBAEntry(ieee, pAdmittedBA);
ieee              514 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		ActivateBAEntry(ieee, pAdmittedBA, *pBaTimeoutVal);
ieee              527 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		ieee80211_send_DELBA(ieee, dst, &BA, TX_DIR, ReasonCode);
ieee              539 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c int ieee80211_rx_DELBA(struct ieee80211_device *ieee, struct sk_buff *skb)
ieee              553 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	if (ieee->current_network.qos_data.active == 0 ||
ieee              554 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	    !ieee->pHTInfo->bCurrentHTSupport) {
ieee              555 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		IEEE80211_DEBUG(IEEE80211_DL_ERR, "received DELBA while QOS or HT is not supported(%d, %d)\n", ieee->current_network.qos_data.active, ieee->pHTInfo->bCurrentHTSupport);
ieee              568 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 				ieee,
ieee              578 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		RxTsDeleteBA(ieee, pRxTs);
ieee              583 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 			ieee,
ieee              598 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		TxTsDeleteBA(ieee, pTxTs);
ieee              608 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	struct ieee80211_device *ieee,
ieee              620 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	DeActivateBAEntry(ieee, pBA);
ieee              631 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	ActivateBAEntry(ieee, pBA, BA_SETUP_TIMEOUT);
ieee              633 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	ieee80211_send_ADDBAReq(ieee, pTS->ts_common_info.addr, pBA);
ieee              637 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c TsInitDelBA(struct ieee80211_device *ieee, struct ts_common_info *pTsCommonInfo, enum tr_select TxRxSelect)
ieee              642 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		if (TxTsDeleteBA(ieee, pTxTs))
ieee              644 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 				ieee,
ieee              651 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		if (RxTsDeleteBA(ieee, pRxTs))
ieee              653 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 				ieee,
ieee              678 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	struct ieee80211_device *ieee = container_of(pTxTs, struct ieee80211_device, TxTsRecord[pTxTs->num]);
ieee              679 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	TxTsDeleteBA(ieee, pTxTs);
ieee              681 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		ieee,
ieee              691 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	struct ieee80211_device *ieee = container_of(pRxTs, struct ieee80211_device, RxTsRecord[pRxTs->num]);
ieee              693 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 	RxTsDeleteBA(ieee, pRxTs);
ieee              695 drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c 		ieee,
ieee               59 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c void HTUpdateDefaultSetting(struct ieee80211_device *ieee)
ieee               61 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	PRT_HIGH_THROUGHPUT	pHTInfo = ieee->pHTInfo;
ieee               93 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	ieee->bTxDisableRateFallBack = 0;
ieee               94 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	ieee->bTxUseDriverAssingedRate = 0;
ieee              215 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c static u16 HTMcsToDataRate(struct ieee80211_device *ieee, u8 nMcsRate)
ieee              217 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	PRT_HIGH_THROUGHPUT	pHTInfo = ieee->pHTInfo;
ieee              234 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c u16  TxCountToDataRate(struct ieee80211_device *ieee, u8 nDataRate)
ieee              269 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c bool IsHTHalfNmodeAPs(struct ieee80211_device *ieee)
ieee              272 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	struct ieee80211_network *net = &ieee->current_network;
ieee              302 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c static void HTIOTPeerDetermine(struct ieee80211_device *ieee)
ieee              304 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	PRT_HIGH_THROUGHPUT	pHTInfo = ieee->pHTInfo;
ieee              305 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	struct ieee80211_network *net = &ieee->current_network;
ieee              342 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c static u8 HTIOTActIsDisableMCS14(struct ieee80211_device *ieee, u8 *PeerMacAddr)
ieee              360 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c static bool HTIOTActIsDisableMCS15(struct ieee80211_device *ieee)
ieee              398 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c static bool HTIOTActIsDisableMCSTwoSpatialStream(struct ieee80211_device *ieee,
ieee              415 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c static u8 HTIOTActIsDisableEDCATurbo(struct ieee80211_device *ieee,
ieee              469 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c void HTConstructCapabilityElement(struct ieee80211_device *ieee, u8 *posHTCap, u8 *len, u8 IsEncrypt)
ieee              471 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	PRT_HIGH_THROUGHPUT	pHT = ieee->pHTInfo;
ieee              493 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev))
ieee              528 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	memcpy(pCapELE->MCS, ieee->Regdot11HTOperationalRateSet, 16);
ieee              542 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev)) {
ieee              583 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c void HTConstructInfoElement(struct ieee80211_device *ieee, u8 *posHTInfo, u8 *len, u8 IsEncrypt)
ieee              585 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	PRT_HIGH_THROUGHPUT	pHT = ieee->pHTInfo;
ieee              596 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	if ((ieee->iw_mode == IW_MODE_ADHOC) || (ieee->iw_mode == IW_MODE_MASTER)) { //ap mode is not currently supported
ieee              597 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		pHTInfoEle->ControlChl			= ieee->current_network.channel;
ieee              599 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 											(ieee->current_network.channel <= 6) ?
ieee              652 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c void HTConstructRT2RTAggElement(struct ieee80211_device *ieee, u8 *posRT2RTAgg, u8 *len)
ieee              668 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	if (ieee->bSupportRemoteWakeUp)
ieee              701 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c static u8 HT_PickMCSRate(struct ieee80211_device *ieee, u8 *pOperateMCS)
ieee              710 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	switch (ieee->mode) {
ieee              759 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c u8 HTGetHighestMCSRate(struct ieee80211_device *ieee, u8 *pMCSRateSet, u8 *pMCSFilter)
ieee              787 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 					if (HTMcsToDataRate(ieee, (8 * i + j)) > HTMcsToDataRate(ieee, mcsRate))
ieee              805 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c static u8 HTFilterMCSRate(struct ieee80211_device *ieee, u8 *pSupportMCS,
ieee              812 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		pOperateMCS[i] = ieee->Regdot11HTOperationalRateSet[i] & pSupportMCS[i];
ieee              820 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	HT_PickMCSRate(ieee, pOperateMCS);
ieee              823 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev))
ieee              836 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c void HTOnAssocRsp(struct ieee80211_device *ieee)
ieee              838 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	PRT_HIGH_THROUGHPUT	pHTInfo = ieee->pHTInfo;
ieee              877 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	HTSetConnectBwMode(ieee, (enum ht_channel_width)(pPeerHTCap->ChlWidth), (enum ht_extension_chan_offset)(pPeerHTInfo->ExtChlOffset));
ieee              936 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		if (ieee->current_network.bssht.bdRT2RTAggregation) {
ieee              937 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 			if (ieee->pairwise_key_type != KEY_TYPE_NA)
ieee              958 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	if (ieee->pairwise_key_type != KEY_TYPE_NA)
ieee              989 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	HTFilterMCSRate(ieee, pPeerHTCap->MCS, ieee->dot11HTOperationalRateSet);
ieee             1001 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	ieee->HTHighestOperaRate = HTGetHighestMCSRate(ieee, ieee->dot11HTOperationalRateSet, pMcsFilter);
ieee             1002 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	ieee->HTCurrentOperaRate = ieee->HTHighestOperaRate;
ieee             1020 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c void HTInitializeHTInfo(struct ieee80211_device *ieee)
ieee             1022 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
ieee             1074 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		u8 *RegHTSuppRateSets = &ieee->RegHTSuppRateSet[0];
ieee             1112 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c void HTResetSelfAndSavePeerSetting(struct ieee80211_device *ieee,	struct ieee80211_network *pNetwork)
ieee             1114 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	PRT_HIGH_THROUGHPUT		pHTInfo = ieee->pHTInfo;
ieee             1148 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		HTIOTPeerDetermine(ieee);
ieee             1155 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		bIOTAction = HTIOTActIsDisableMCS14(ieee, pNetwork->bssid);
ieee             1159 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		bIOTAction = HTIOTActIsDisableMCS15(ieee);
ieee             1163 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		bIOTAction = HTIOTActIsDisableMCSTwoSpatialStream(ieee, pNetwork->bssid);
ieee             1167 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		bIOTAction = HTIOTActIsDisableEDCATurbo(ieee, pNetwork->bssid);
ieee             1187 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c void HTUpdateSelfAndPeerSetting(struct ieee80211_device *ieee,	struct ieee80211_network *pNetwork)
ieee             1189 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	PRT_HIGH_THROUGHPUT	        pHTInfo = ieee->pHTInfo;
ieee             1215 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c u8 HTCCheck(struct ieee80211_device *ieee, u8 *pFrame)
ieee             1217 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	if (ieee->pHTInfo->bCurrentHTSupport) {
ieee             1226 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c static void HTSetConnectBwModeCallback(struct ieee80211_device *ieee)
ieee             1228 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
ieee             1234 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 			ieee->set_chan(ieee->dev, ieee->current_network.channel + 2);
ieee             1236 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 			ieee->set_chan(ieee->dev, ieee->current_network.channel - 2);
ieee             1238 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 			ieee->set_chan(ieee->dev, ieee->current_network.channel);
ieee             1240 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		ieee->SetBWModeHandler(ieee->dev, HT_CHANNEL_WIDTH_20_40, pHTInfo->CurSTAExtChnlOffset);
ieee             1242 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		ieee->set_chan(ieee->dev, ieee->current_network.channel);
ieee             1243 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		ieee->SetBWModeHandler(ieee->dev, HT_CHANNEL_WIDTH_20, HT_EXTCHNL_OFFSET_NO_EXT);
ieee             1252 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c void HTSetConnectBwMode(struct ieee80211_device *ieee, enum ht_channel_width Bandwidth, enum ht_extension_chan_offset Offset)
ieee             1254 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;
ieee             1271 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	if (Bandwidth == HT_CHANNEL_WIDTH_20_40 && (!ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev))) {
ieee             1273 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 		if (ieee->current_network.channel < 2 && Offset == HT_EXTCHNL_OFFSET_LOWER)
ieee             1295 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c 	HTSetConnectBwModeCallback(ieee);
ieee               29 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	struct ieee80211_device *ieee = container_of(pRxTs, struct ieee80211_device, RxTsRecord[pRxTs->num]);
ieee               38 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	spin_lock_irqsave(&(ieee->reorder_spinlock), flags);
ieee               55 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 				ieee->stats_IndicateArray[index] = pReorderEntry->prxb;
ieee               58 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 				list_add_tail(&pReorderEntry->List, &ieee->RxReorder_Unused_List);
ieee               73 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 			spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags);
ieee               76 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 		ieee80211_indicate_packets(ieee, ieee->stats_IndicateArray, index);
ieee               82 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 			  jiffies + msecs_to_jiffies(ieee->pHTInfo->RxReorderPendingTime));
ieee               84 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags);
ieee               97 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	struct ieee80211_device *ieee = container_of(pTxTs, struct ieee80211_device, TxTsRecord[num]);
ieee               99 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	TsInitAddBA(ieee, pTxTs, BA_POLICY_IMMEDIATE, false);
ieee              132 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c void TSInitialize(struct ieee80211_device *ieee)
ieee              134 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	struct tx_ts_record     *pTxTS  = ieee->TxTsRecord;
ieee              135 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	struct rx_ts_record     *pRxTS  = ieee->RxTsRecord;
ieee              136 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	struct rx_reorder_entry	*pRxReorderEntry = ieee->RxReorderEntry;
ieee              140 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	INIT_LIST_HEAD(&ieee->Tx_TS_Admit_List);
ieee              141 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	INIT_LIST_HEAD(&ieee->Tx_TS_Pending_List);
ieee              142 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	INIT_LIST_HEAD(&ieee->Tx_TS_Unused_List);
ieee              159 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 		list_add_tail(&pTxTS->ts_common_info.list, &ieee->Tx_TS_Unused_List);
ieee              164 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	INIT_LIST_HEAD(&ieee->Rx_TS_Admit_List);
ieee              165 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	INIT_LIST_HEAD(&ieee->Rx_TS_Pending_List);
ieee              166 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	INIT_LIST_HEAD(&ieee->Rx_TS_Unused_List);
ieee              178 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 		list_add_tail(&pRxTS->ts_common_info.list, &ieee->Rx_TS_Unused_List);
ieee              182 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	INIT_LIST_HEAD(&ieee->RxReorder_Unused_List);
ieee              184 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 		list_add_tail(&pRxReorderEntry->List, &ieee->RxReorder_Unused_List);
ieee              187 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 		pRxReorderEntry = &ieee->RxReorderEntry[count + 1];
ieee              191 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c static void AdmitTS(struct ieee80211_device *ieee,
ieee              203 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c static struct ts_common_info *SearchAdmitTRStream(struct ieee80211_device *ieee,
ieee              212 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	if (ieee->iw_mode == IW_MODE_MASTER) { //ap mode
ieee              220 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	} else if (ieee->iw_mode == IW_MODE_ADHOC) {
ieee              238 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 		psearch_list = &ieee->Tx_TS_Admit_List;
ieee              240 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 		psearch_list = &ieee->Rx_TS_Admit_List;
ieee              288 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	struct ieee80211_device		*ieee,
ieee              306 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	if (ieee->current_network.qos_data.supported == 0) {
ieee              339 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 			ieee,
ieee              359 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 								(&ieee->Tx_TS_Unused_List) :
ieee              360 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 								(&ieee->Rx_TS_Unused_List);
ieee              364 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 								(&ieee->Tx_TS_Admit_List) :
ieee              365 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 								(&ieee->Rx_TS_Admit_List);
ieee              367 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 			enum direction_value	Dir =		(ieee->iw_mode == IW_MODE_MASTER) ?
ieee              395 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 				AdmitTS(ieee, *ppTS, 0);
ieee              408 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c static void RemoveTsEntry(struct ieee80211_device *ieee, struct ts_common_info *pTs,
ieee              415 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	TsInitDelBA(ieee, pTs, TxRxSelect);
ieee              424 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 			spin_lock_irqsave(&(ieee->reorder_spinlock), flags);
ieee              432 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 					spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags);
ieee              441 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 			list_add_tail(&pRxReorderEntry->List, &ieee->RxReorder_Unused_List);
ieee              442 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 			spin_unlock_irqrestore(&(ieee->reorder_spinlock), flags);
ieee              451 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c void RemovePeerTS(struct ieee80211_device *ieee, u8 *Addr)
ieee              456 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	list_for_each_entry_safe(pTS, pTmpTS, &ieee->Tx_TS_Pending_List, list) {
ieee              458 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 			RemoveTsEntry(ieee, pTS, TX_DIR);
ieee              460 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 			list_add_tail(&pTS->list, &ieee->Tx_TS_Unused_List);
ieee              464 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	list_for_each_entry_safe(pTS, pTmpTS, &ieee->Tx_TS_Admit_List, list) {
ieee              467 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 			RemoveTsEntry(ieee, pTS, TX_DIR);
ieee              469 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 			list_add_tail(&pTS->list, &ieee->Tx_TS_Unused_List);
ieee              473 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	list_for_each_entry_safe(pTS, pTmpTS, &ieee->Rx_TS_Pending_List, list) {
ieee              475 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 			RemoveTsEntry(ieee, pTS, RX_DIR);
ieee              477 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 			list_add_tail(&pTS->list, &ieee->Rx_TS_Unused_List);
ieee              481 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	list_for_each_entry_safe(pTS, pTmpTS, &ieee->Rx_TS_Admit_List, list) {
ieee              483 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 			RemoveTsEntry(ieee, pTS, RX_DIR);
ieee              485 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 			list_add_tail(&pTS->list, &ieee->Rx_TS_Unused_List);
ieee              490 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c void RemoveAllTS(struct ieee80211_device *ieee)
ieee              494 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	list_for_each_entry_safe(pTS, pTmpTS, &ieee->Tx_TS_Pending_List, list) {
ieee              495 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 		RemoveTsEntry(ieee, pTS, TX_DIR);
ieee              497 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 		list_add_tail(&pTS->list, &ieee->Tx_TS_Unused_List);
ieee              500 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	list_for_each_entry_safe(pTS, pTmpTS, &ieee->Tx_TS_Admit_List, list) {
ieee              501 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 		RemoveTsEntry(ieee, pTS, TX_DIR);
ieee              503 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 		list_add_tail(&pTS->list, &ieee->Tx_TS_Unused_List);
ieee              506 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	list_for_each_entry_safe(pTS, pTmpTS, &ieee->Rx_TS_Pending_List, list) {
ieee              507 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 		RemoveTsEntry(ieee, pTS, RX_DIR);
ieee              509 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 		list_add_tail(&pTS->list, &ieee->Rx_TS_Unused_List);
ieee              512 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 	list_for_each_entry_safe(pTS, pTmpTS, &ieee->Rx_TS_Admit_List, list) {
ieee              513 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 		RemoveTsEntry(ieee, pTS, RX_DIR);
ieee              515 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c 		list_add_tail(&pTS->list, &ieee->Rx_TS_Unused_List);
ieee              519 drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c void TsStartAddBaProcess(struct ieee80211_device *ieee, struct tx_ts_record *pTxTS)
ieee              159 drivers/staging/rtl8192u/r8192U_core.c 	struct ieee80211_device *ieee = priv->ieee80211;
ieee              172 drivers/staging/rtl8192u/r8192U_core.c 		rtl8192u_dot11d_init(ieee);
ieee              173 drivers/staging/rtl8192u/r8192U_core.c 		ieee->bGlobalDomain = false;
ieee              185 drivers/staging/rtl8192u/r8192U_core.c 			memset(GET_DOT11D_INFO(ieee)->channel_map, 0,
ieee              186 drivers/staging/rtl8192u/r8192U_core.c 			       sizeof(GET_DOT11D_INFO(ieee)->channel_map));
ieee              191 drivers/staging/rtl8192u/r8192U_core.c 				GET_DOT11D_INFO(ieee)->channel_map[ChannelPlan[channel_plan].Channel[i]] = 1;
ieee              200 drivers/staging/rtl8192u/r8192U_core.c 		GET_DOT11D_INFO(ieee)->dot11d_enabled = 0;
ieee              201 drivers/staging/rtl8192u/r8192U_core.c 		dot11d_reset(ieee);
ieee              202 drivers/staging/rtl8192u/r8192U_core.c 		ieee->bGlobalDomain = true;
ieee              482 drivers/staging/rtl8192u/r8192U_core.c 	struct ieee80211_device *ieee = priv->ieee80211;
ieee              485 drivers/staging/rtl8192u/r8192U_core.c 	list_for_each_entry(target, &ieee->network_list, list) {
ieee             1718 drivers/staging/rtl8192u/r8192U_core.c 	struct ieee80211_device *ieee = priv->ieee80211;
ieee             1720 drivers/staging/rtl8192u/r8192U_core.c 	if (ieee->state == IEEE80211_LINKED) {
ieee             1727 drivers/staging/rtl8192u/r8192U_core.c 		if (ieee->pairwise_key_type == KEY_TYPE_WEP40 ||
ieee             1728 drivers/staging/rtl8192u/r8192U_core.c 		    ieee->pairwise_key_type == KEY_TYPE_WEP104)
ieee             1732 drivers/staging/rtl8192u/r8192U_core.c 	if (ieee->iw_mode == IW_MODE_INFRA || ieee->iw_mode == IW_MODE_ADHOC) {
ieee             1758 drivers/staging/rtl8192u/r8192U_core.c 	struct ieee80211_device *ieee = priv->ieee80211;
ieee             1759 drivers/staging/rtl8192u/r8192U_core.c 	struct ieee80211_network *net = &ieee->current_network;
ieee             1761 drivers/staging/rtl8192u/r8192U_core.c 	if (ieee->pHTInfo->bCurrentHTSupport)
ieee             1762 drivers/staging/rtl8192u/r8192U_core.c 		HTUpdateSelfAndPeerSetting(ieee, net);
ieee             1763 drivers/staging/rtl8192u/r8192U_core.c 	ieee->pHTInfo->bCurrentRT2RTLongSlotTime =
ieee             1943 drivers/staging/rtl8192u/r8192U_core.c 	struct ieee80211_device *ieee = priv->ieee80211;
ieee             1944 drivers/staging/rtl8192u/r8192U_core.c 	u8 *pMcsRate = ieee->dot11HTOperationalRateSet;
ieee             1950 drivers/staging/rtl8192u/r8192U_core.c 	switch (ieee->mode) {
ieee             1962 drivers/staging/rtl8192u/r8192U_core.c 		if (ieee->pHTInfo->PeerMimoPs == MIMO_PS_STATIC) {
ieee             1975 drivers/staging/rtl8192u/r8192U_core.c 	if (ieee->pHTInfo->bCurTxBW40MHz && ieee->pHTInfo->bCurShortGI40MHz)
ieee             1977 drivers/staging/rtl8192u/r8192U_core.c 	else if (!ieee->pHTInfo->bCurTxBW40MHz &&
ieee             1978 drivers/staging/rtl8192u/r8192U_core.c 		 ieee->pHTInfo->bCurShortGI20MHz)
ieee             1989 drivers/staging/rtl8192u/r8192U_core.c 	struct ieee80211_device *ieee = priv->ieee80211;
ieee             1990 drivers/staging/rtl8192u/r8192U_core.c 	struct ieee80211_network *network = &ieee->current_network;
ieee             1991 drivers/staging/rtl8192u/r8192U_core.c 	int wpa_ie_len = ieee->wpa_ie_len;
ieee             1995 drivers/staging/rtl8192u/r8192U_core.c 	crypt = ieee->crypt[ieee->tx_keyidx];
ieee             2000 drivers/staging/rtl8192u/r8192U_core.c 		  (ieee->host_encrypt && crypt && crypt->ops &&
ieee             2009 drivers/staging/rtl8192u/r8192U_core.c 		if (((ieee->wpa_ie[0] == 0xdd) && (!memcmp(&(ieee->wpa_ie[14]), ccmp_ie, 4))) || ((ieee->wpa_ie[0] == 0x30) && (!memcmp(&ieee->wpa_ie[10], ccmp_rsn_ie, 4))))
ieee             2029 drivers/staging/rtl8192u/r8192U_core.c 	struct ieee80211_device *ieee = priv->ieee80211;
ieee             2033 drivers/staging/rtl8192u/r8192U_core.c 	if (ieee->mode == WIRELESS_MODE_N_24G ||
ieee             2034 drivers/staging/rtl8192u/r8192U_core.c 	    ieee->mode == WIRELESS_MODE_N_5G)
ieee             2035 drivers/staging/rtl8192u/r8192U_core.c 		memcpy(ieee->Regdot11HTOperationalRateSet,
ieee             2036 drivers/staging/rtl8192u/r8192U_core.c 		       ieee->RegHTSuppRateSet, 16);
ieee             2038 drivers/staging/rtl8192u/r8192U_core.c 		memset(ieee->Regdot11HTOperationalRateSet, 0, 16);
ieee             3142 drivers/staging/rtl8192u/r8192U_core.c 	struct ieee80211_device *ieee = priv->ieee80211;
ieee             3173 drivers/staging/rtl8192u/r8192U_core.c 		ieee->sync_scan_hurryup = 1;
ieee             3174 drivers/staging/rtl8192u/r8192U_core.c 		if (ieee->state == IEEE80211_LINKED) {
ieee             3175 drivers/staging/rtl8192u/r8192U_core.c 			mutex_lock(&ieee->wx_mutex);
ieee             3178 drivers/staging/rtl8192u/r8192U_core.c 			del_timer_sync(&ieee->associate_timer);
ieee             3179 drivers/staging/rtl8192u/r8192U_core.c 			cancel_delayed_work(&ieee->associate_retry_wq);
ieee             3180 drivers/staging/rtl8192u/r8192U_core.c 			ieee80211_stop_scan(ieee);
ieee             3182 drivers/staging/rtl8192u/r8192U_core.c 			mutex_unlock(&ieee->wx_mutex);
ieee             3209 drivers/staging/rtl8192u/r8192U_core.c 		ieee->is_silent_reset = 1;
ieee             3211 drivers/staging/rtl8192u/r8192U_core.c 		if (ieee->state == IEEE80211_LINKED &&
ieee             3212 drivers/staging/rtl8192u/r8192U_core.c 		    ieee->iw_mode == IW_MODE_INFRA) {
ieee             3213 drivers/staging/rtl8192u/r8192U_core.c 			ieee->set_chan(ieee->dev,
ieee             3214 drivers/staging/rtl8192u/r8192U_core.c 				       ieee->current_network.channel);
ieee             3216 drivers/staging/rtl8192u/r8192U_core.c 			queue_work(ieee->wq, &ieee->associate_complete_wq);
ieee             3218 drivers/staging/rtl8192u/r8192U_core.c 		} else if (ieee->state == IEEE80211_LINKED &&
ieee             3219 drivers/staging/rtl8192u/r8192U_core.c 			   ieee->iw_mode == IW_MODE_ADHOC) {
ieee             3220 drivers/staging/rtl8192u/r8192U_core.c 			ieee->set_chan(ieee->dev,
ieee             3221 drivers/staging/rtl8192u/r8192U_core.c 				       ieee->current_network.channel);
ieee             3222 drivers/staging/rtl8192u/r8192U_core.c 			ieee->link_change(ieee->dev);
ieee             3224 drivers/staging/rtl8192u/r8192U_core.c 			ieee80211_start_send_beacons(ieee);
ieee             3226 drivers/staging/rtl8192u/r8192U_core.c 			if (ieee->data_hard_resume)
ieee             3227 drivers/staging/rtl8192u/r8192U_core.c 				ieee->data_hard_resume(ieee->dev);
ieee             3228 drivers/staging/rtl8192u/r8192U_core.c 			netif_carrier_on(ieee->dev);
ieee             3275 drivers/staging/rtl8192u/r8192U_core.c 	struct ieee80211_device *ieee = priv->ieee80211;
ieee             3287 drivers/staging/rtl8192u/r8192U_core.c 	if (ieee->state == IEEE80211_LINKED) {
ieee             3288 drivers/staging/rtl8192u/r8192U_core.c 		if (ieee->LinkDetectInfo.NumRxOkInPeriod > 666 ||
ieee             3289 drivers/staging/rtl8192u/r8192U_core.c 		    ieee->LinkDetectInfo.NumTxOkInPeriod > 666) {
ieee             3292 drivers/staging/rtl8192u/r8192U_core.c 		ieee->LinkDetectInfo.NumRxOkInPeriod = 0;
ieee             3293 drivers/staging/rtl8192u/r8192U_core.c 		ieee->LinkDetectInfo.NumTxOkInPeriod = 0;
ieee             3294 drivers/staging/rtl8192u/r8192U_core.c 		ieee->LinkDetectInfo.bBusyTraffic = bBusyTraffic;
ieee             3527 drivers/staging/rtl8192u/r8192U_core.c 	struct ieee80211_device *ieee = priv->ieee80211;
ieee             3553 drivers/staging/rtl8192u/r8192U_core.c 					ieee->pairwise_key_type = KEY_TYPE_CCMP;
ieee             3555 drivers/staging/rtl8192u/r8192U_core.c 					ieee->pairwise_key_type = KEY_TYPE_TKIP;
ieee             3558 drivers/staging/rtl8192u/r8192U_core.c 						ieee->pairwise_key_type = KEY_TYPE_WEP104;
ieee             3560 drivers/staging/rtl8192u/r8192U_core.c 						ieee->pairwise_key_type = KEY_TYPE_WEP40;
ieee             3562 drivers/staging/rtl8192u/r8192U_core.c 					ieee->pairwise_key_type = KEY_TYPE_NA;
ieee             3565 drivers/staging/rtl8192u/r8192U_core.c 				if (ieee->pairwise_key_type) {
ieee             3575 drivers/staging/rtl8192u/r8192U_core.c 					       ieee->pairwise_key_type,
ieee             3576 drivers/staging/rtl8192u/r8192U_core.c 					       (u8 *)ieee->ap_mac_addr,
ieee             3578 drivers/staging/rtl8192u/r8192U_core.c 					if (ieee->auth_mode != 2)
ieee             3581 drivers/staging/rtl8192u/r8192U_core.c 						       ieee->pairwise_key_type,
ieee             3582 drivers/staging/rtl8192u/r8192U_core.c 						       (u8 *)ieee->ap_mac_addr,
ieee             3588 drivers/staging/rtl8192u/r8192U_core.c 					ieee->group_key_type = KEY_TYPE_CCMP;
ieee             3590 drivers/staging/rtl8192u/r8192U_core.c 					ieee->group_key_type = KEY_TYPE_TKIP;
ieee             3593 drivers/staging/rtl8192u/r8192U_core.c 						ieee->group_key_type = KEY_TYPE_WEP104;
ieee             3595 drivers/staging/rtl8192u/r8192U_core.c 						ieee->group_key_type = KEY_TYPE_WEP40;
ieee             3597 drivers/staging/rtl8192u/r8192U_core.c 					ieee->group_key_type = KEY_TYPE_NA;
ieee             3600 drivers/staging/rtl8192u/r8192U_core.c 				if (ieee->group_key_type) {
ieee             3605 drivers/staging/rtl8192u/r8192U_core.c 					       ieee->group_key_type,
ieee             4929 drivers/staging/rtl8192u/r8192U_core.c 	struct ieee80211_device *ieee = priv->ieee80211;
ieee             4932 drivers/staging/rtl8192u/r8192U_core.c 	if (((ieee->pairwise_key_type == KEY_TYPE_WEP40) || (ieee->pairwise_key_type == KEY_TYPE_WEP104)) && (priv->ieee80211->auth_mode != 2)) {
ieee             4935 drivers/staging/rtl8192u/r8192U_core.c 	} else if ((ieee->iw_mode == IW_MODE_ADHOC) && (ieee->pairwise_key_type & (KEY_TYPE_CCMP | KEY_TYPE_TKIP))) {
ieee             4946 drivers/staging/rtl8192u/r8192U_core.c 	ieee->hwsec_active = 1;
ieee             4949 drivers/staging/rtl8192u/r8192U_core.c 	if ((ieee->pHTInfo->IOTAction & HT_IOT_ACT_PURE_N_MODE) || !hwwep) {
ieee             4950 drivers/staging/rtl8192u/r8192U_core.c 		ieee->hwsec_active = 0;
ieee             4954 drivers/staging/rtl8192u/r8192U_core.c 		 __func__, ieee->hwsec_active, ieee->pairwise_key_type,
ieee             3005 drivers/staging/rtl8192u/r8192U_dm.c 	struct ieee80211_device *ieee = priv->ieee80211;
ieee             3008 drivers/staging/rtl8192u/r8192U_dm.c 	read_nic_byte(dev, CURRENT_TX_RATE_REG, &ieee->softmac_stats.CurrentShowTxate);
ieee             3012 drivers/staging/rtl8192u/r8192U_dm.c 	read_nic_byte(dev, INITIAL_TX_RATE_REG, &ieee->softmac_stats.last_packet_rate);
ieee             3015 drivers/staging/rtl8192u/r8192U_dm.c 	read_nic_dword(dev, TX_RETRY_COUNT_REG, &ieee->softmac_stats.txretrycount);
ieee              324 drivers/staging/rtl8192u/r8192U_wx.c 	struct ieee80211_device *ieee = priv->ieee80211;
ieee              336 drivers/staging/rtl8192u/r8192U_wx.c 			ieee->current_network.ssid_len = req->essid_len;
ieee              337 drivers/staging/rtl8192u/r8192U_wx.c 			memcpy(ieee->current_network.ssid, req->essid, req->essid_len);
ieee              504 drivers/staging/rtl8192u/r8192U_wx.c 	struct ieee80211_device *ieee = priv->ieee80211;
ieee              546 drivers/staging/rtl8192u/r8192U_wx.c 			key_idx = ieee->tx_keyidx;
ieee              565 drivers/staging/rtl8192u/r8192U_wx.c 			ieee->pairwise_key_type = KEY_TYPE_WEP40;
ieee              579 drivers/staging/rtl8192u/r8192U_wx.c 			ieee->pairwise_key_type = KEY_TYPE_WEP104;
ieee              727 drivers/staging/rtl8192u/r8192U_wx.c 	struct ieee80211_device *ieee = priv->ieee80211;
ieee              752 drivers/staging/rtl8192u/r8192U_wx.c 		if ((!group) || (IW_MODE_ADHOC == ieee->iw_mode) || (alg ==  KEY_TYPE_WEP40)) {
ieee              755 drivers/staging/rtl8192u/r8192U_wx.c 			ieee->pairwise_key_type = alg;
ieee              760 drivers/staging/rtl8192u/r8192U_wx.c 		if ((alg & KEY_TYPE_WEP40) && (ieee->auth_mode != 2)) {
ieee              770 drivers/staging/rtl8192u/r8192U_wx.c 			ieee->group_key_type = alg;
ieee              783 drivers/staging/rtl8192u/r8192U_wx.c 					(u8 *)ieee->ap_mac_addr,/* MacAddr */
ieee              942 drivers/staging/rtl8192u/r8192U_wx.c 	struct ieee80211_device *ieee = priv->ieee80211;
ieee              948 drivers/staging/rtl8192u/r8192U_wx.c 	if (ieee->state < IEEE80211_LINKED) {
ieee              956 drivers/staging/rtl8192u/r8192U_wx.c 	tmp_level = (&ieee->current_network)->stats.rssi;
ieee              957 drivers/staging/rtl8192u/r8192U_wx.c 	tmp_qual = (&ieee->current_network)->stats.signal;
ieee              958 drivers/staging/rtl8192u/r8192U_wx.c 	tmp_noise = (&ieee->current_network)->stats.noise;
ieee              211 include/linux/nvme.h 	__u8			ieee[3];
ieee              145 include/linux/qed/qed_if.h 	bool ieee;
ieee             1033 net/dcb/dcbnl.c 	struct nlattr *ieee, *app;
ieee             1042 net/dcb/dcbnl.c 	ieee = nla_nest_start_noflag(skb, DCB_ATTR_IEEE);
ieee             1043 net/dcb/dcbnl.c 	if (!ieee)
ieee             1164 net/dcb/dcbnl.c 	nla_nest_end(skb, ieee);
ieee             1428 net/dcb/dcbnl.c 	struct nlattr *ieee[DCB_ATTR_IEEE_MAX + 1];
ieee             1437 net/dcb/dcbnl.c 	err = nla_parse_nested_deprecated(ieee, DCB_ATTR_IEEE_MAX,
ieee             1443 net/dcb/dcbnl.c 	if (ieee[DCB_ATTR_IEEE_ETS] && ops->ieee_setets) {
ieee             1444 net/dcb/dcbnl.c 		struct ieee_ets *ets = nla_data(ieee[DCB_ATTR_IEEE_ETS]);
ieee             1450 net/dcb/dcbnl.c 	if (ieee[DCB_ATTR_IEEE_MAXRATE] && ops->ieee_setmaxrate) {
ieee             1452 net/dcb/dcbnl.c 			nla_data(ieee[DCB_ATTR_IEEE_MAXRATE]);
ieee             1458 net/dcb/dcbnl.c 	if (ieee[DCB_ATTR_IEEE_QCN] && ops->ieee_setqcn) {
ieee             1460 net/dcb/dcbnl.c 			nla_data(ieee[DCB_ATTR_IEEE_QCN]);
ieee             1467 net/dcb/dcbnl.c 	if (ieee[DCB_ATTR_IEEE_PFC] && ops->ieee_setpfc) {
ieee             1468 net/dcb/dcbnl.c 		struct ieee_pfc *pfc = nla_data(ieee[DCB_ATTR_IEEE_PFC]);
ieee             1474 net/dcb/dcbnl.c 	if (ieee[DCB_ATTR_DCB_BUFFER] && ops->dcbnl_setbuffer) {
ieee             1476 net/dcb/dcbnl.c 			nla_data(ieee[DCB_ATTR_DCB_BUFFER]);
ieee             1483 net/dcb/dcbnl.c 	if (ieee[DCB_ATTR_IEEE_APP_TABLE]) {
ieee             1487 net/dcb/dcbnl.c 		nla_for_each_nested(attr, ieee[DCB_ATTR_IEEE_APP_TABLE], rem) {
ieee             1529 net/dcb/dcbnl.c 	struct nlattr *ieee[DCB_ATTR_IEEE_MAX + 1];
ieee             1538 net/dcb/dcbnl.c 	err = nla_parse_nested_deprecated(ieee, DCB_ATTR_IEEE_MAX,
ieee             1544 net/dcb/dcbnl.c 	if (ieee[DCB_ATTR_IEEE_APP_TABLE]) {
ieee             1548 net/dcb/dcbnl.c 		nla_for_each_nested(attr, ieee[DCB_ATTR_IEEE_APP_TABLE], rem) {