On 23-06-14 11:34, Johannes Berg wrote:
On Tue, 2014-06-17 at 11:16 +0200, Arend van Spriel wrote:
/**
+ * wiphy_is_40mhz_24ghz_disabled - check whether 40MHz bandwidth in 2.4G
that seems incomplete :)
No. It *is* incomplete ;-)
+ * @wiphy: The wiphy to check.
+ *
+ * Return: true is 40MHz is disabled in 2.4G band.
+ */
+bool wiphy_is_40mhz_24ghz_disabled(struct wiphy *wiphy);
Why should that have a wiphy argument?
It is up to cfg80211 to determine the logic behind the function. It is
just context supplied by the caller. The fact that it is determined by a
module parameter is internal cfg80211 stuff.
Might also be simpler to just export the variable?
Either way is pretty simple I guess.
Gr. AvS
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html