mwifiex: use modified ieee80211_channel_to_frequency() API
PATCH 1/2 mwifiex: use modified ieee80211_channel_to_frequency() API
From: Amitkumar Karwar <[email protected]>
After Bruno Randolf's recent code changes (commit 59eb21a6 "cfg80211: Extend channel to frequency mapping for 802.11j") ieee80211_channel_to_frequency() API expects an extra "band" parameter. Update the driver code to provide this extra parameter.
--- drivers/net/wireless/mwifiex/cfg80211.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/net/wireless/mwifiex/cfg80211.c +2 -1
@@ -916,7 +916,8 @@ mwifiex_cfg80211_inform_ibss_bss(struct mwifiex_private *priv) ie_len = ie_buf[1 ] +sizeof (struct ieee_types_header ); chan =__ieee80211_get_channel (priv->wdev->wiphy, -ieee80211_channel_to_frequency (bss_info.bss_chan)); +ieee80211_channel_to_frequency (bss_info.bss_chan, + priv->curr_bss_params.band)); cfg80211_inform_bss(priv->wdev->wiphy, chan, bss_info.bssid, 0, WLAN_CAPABILITY_IBSS,
Signature · 1 line
1.7.0.2
PATCH 2/2 mwifiex: fix list_del corruption while unloading modules
From: Amitkumar Karwar <[email protected]>
Driver uses pre-allocated number of command buffers. The command free queue keeps track of command buffers currently free/available for use.
Currently while unloading the driver, command free queue is freed after releasing pre-allocated command buffers which sometimes leads to list_del corruption issue. Therefore command free queue is freed before releasing command buffers to fix the issue.
--- drivers/net/wireless/mwifiex/init.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
drivers/net/wireless/mwifiex/init.c +4 -3
@@ -353,6 +353,10 @@ mwifiex_free_adapter(struct mwifiex_adapter *adapter) }mwifiex_cancel_all_pending_cmd (adapter); + +/* Free lock variables */ +mwifiex_free_lock_list (adapter); +/* Free command buffer */ PRINTM (MINFO ,"Free Command buffer\n" );mwifiex_free_cmd_buffer (adapter);
@@ -367,9 +371,6 @@ mwifiex_free_adapter(struct mwifiex_adapter *adapter)mwifiex_free_buffer (adapter->sleep_cfm); -/* Free lock variables */ -mwifiex_free_lock_list (adapter); -LEAVE ();return ; }
Signature · 1 line
1.7.0.2