OSDN Git Service

mac80211_hwsim: Fix radio dump for radio idx 0
authorAndrew Zaborowski <andrew.zaborowski@intel.com>
Tue, 22 May 2018 00:43:56 +0000 (02:43 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 22 May 2018 08:24:17 +0000 (10:24 +0200)
commitfed4825096cfbbfd654cb292ab6eb193911aef01
treed5656c93e75d3a84deec61c9e34ce118cb839e71
parent5247a77ced2d3396a32679c7480e8bcd5b26e471
mac80211_hwsim: Fix radio dump for radio idx 0

Since 6335698e24ec11e1324b916177da6721df724dd8 the radio with idx of 0
will not get dumped in HWSIM_CMD_GET_RADIO because of the last_idx
checks.  Offset cb->args[0] by 1 similarly to what is done in nl80211.c.

Fixes: 6335698e24ec ("mac80211_hwsim: add generation count for netlink dump operation")
Signed-off-by: Andrew Zaborowski <andrew.zaborowski@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c