]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: Send alpha2 only if non-zero
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 21 Nov 2014 13:08:02 +0000 (15:08 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 21 Nov 2014 13:18:01 +0000 (14:18 +0100)
commitad1889fd90395e7a66349f730a684667fdfee19a
tree0c5c07c10dd0a10ce4ba6f2c5633bd93eab2f284
parentbc951dd8fd0a286ed7b66172abb7e8d8cb88d89a
mac80211_hwsim: Send alpha2 only if non-zero

A properly set alpha2 value consists of two chars that both contain
letters or digits. If no value is set, both chars keep their initial
value zero. Therefore do not send the alpha2 parameter to user space
if either of the characters has been left at its initial zero value.

Signed-off-by: Patrik Flykt <patrik.flykt@linux.intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c