Re: [PATCH 24/26] staging: wilc1000: add ops tx power in cfg80211

2016-01-22 Thread Dan Carpenter
On Tue, Jan 12, 2016 at 04:39:53PM +0900, Glen Lee wrote: > +static void handle_set_tx_pwr(struct wilc_vif *vif, u8 tx_pwr) > +{ > + s32 ret = 0; s32 should almost always be changed to int. Don't initialize variables with bogus values. GCC has a helper warning for uninitialized variables

[PATCH 24/26] staging: wilc1000: add ops tx power in cfg80211

2016-01-11 Thread Glen Lee
This patch implements set_tx_power and get_tx_power of cfg80211_ops. In addition, Id of HOST_IF_MSG_DEL_ALL_RX_BA_SESSIONS is changed with 37. Signed-off-by: Glen Lee --- drivers/staging/wilc1000/host_interface.c | 88 ++-