From: Michal Kazior Date: Fri, 5 Jul 2013 13:15:08 +0000 (+0300) Subject: ath10k: silent warning in IBSS mode X-Git-Tag: MMI-PSA29.97-13-9~13299^2~225^2~25^2~111 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=09af8f85c6a1fbe9c1ffc6253a4c0e8a0d8a9033;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ath10k: silent warning in IBSS mode There is no TIM IE generated in IBSS beacons by mac80211. Signed-off-by: Michal Kazior Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index 7d4b7987422d..1b5312d1f0ce 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -501,8 +501,8 @@ static void ath10k_wmi_update_tim(struct ath10k *ar, ie = (u8 *)cfg80211_find_ie(WLAN_EID_TIM, ies, (u8 *)skb_tail_pointer(bcn) - ies); if (!ie) { - /* highly unlikely for mac80211 */ - ath10k_warn("no tim ie found;\n"); + if (arvif->vdev_type != WMI_VDEV_TYPE_IBSS) + ath10k_warn("no tim ie found;\n"); return; }