[PATCH] use nla_type() from libnl

raghunathan.kailasanathan at wipro.com raghunathan.kailasanathan
Thu Feb 10 05:25:38 PST 2011


compiler errors when using nl_mode->nla_type. libnl provides 
nla_type() which can be used to derive nla_type from struct nlattr

---
--- a/src/drivers/driver_nl80211.c	2011-02-10 16:56:56.630940254 +0530
+++ b/src/drivers/driver_nl80211.c	2011-02-10 16:57:05.082943644 +0530
@@ -1499,7 +1499,7 @@
 		int i;
 		nla_for_each_nested(nl_mode,
 				    tb[NL80211_ATTR_SUPPORTED_IFTYPES], i) {
-			switch (nl_mode->nla_type) {
+			switch (nla_type(nl_mode)) {
 			case NL80211_IFTYPE_AP:
 				info->ap_supported = 1;
 				break;


---

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com



More information about the Hostap mailing list