From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c:612 iwl_mvm_mld_start_ap_ibss() warn: missing error code 'ret'
Date: Sun, 15 Sep 2024 22:07:27 +0800 [thread overview]
Message-ID: <202409160031.caQ4LNOA-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Johannes Berg <johannes.berg@intel.com>
CC: Miri Korenblit <miriam.rachel.korenblit@intel.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d42f7708e27cc68d080ac9d3803d27e86821d775
commit: 3f3126515fbee0e364f8218f6171c091d8e2555e wifi: iwlwifi: mvm: add mvm-specific guard
date: 4 months ago
:::::: branch date: 9 hours ago
:::::: commit date: 4 months ago
config: csky-randconfig-r073-20240915 (https://download.01.org/0day-ci/archive/20240916/202409160031.caQ4LNOA-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 14.1.0
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202409160031.caQ4LNOA-lkp@intel.com/
smatch warnings:
drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c:612 iwl_mvm_mld_start_ap_ibss() warn: missing error code 'ret'
vim +/ret +612 drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c
bde2f9b420f692 Mukesh Sisodiya 2024-04-16 573
f947b62c03b15d Miri Korenblit 2023-03-20 574 static int iwl_mvm_mld_start_ap_ibss(struct ieee80211_hw *hw,
cbce62a315f67e Miri Korenblit 2023-03-28 575 struct ieee80211_vif *vif,
cbce62a315f67e Miri Korenblit 2023-03-28 576 struct ieee80211_bss_conf *link_conf)
f947b62c03b15d Miri Korenblit 2023-03-20 577 {
f947b62c03b15d Miri Korenblit 2023-03-20 578 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw);
f947b62c03b15d Miri Korenblit 2023-03-20 579 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
f947b62c03b15d Miri Korenblit 2023-03-20 580 int ret;
f947b62c03b15d Miri Korenblit 2023-03-20 581
3f3126515fbee0 Johannes Berg 2024-05-12 582 guard(mvm)(mvm);
bde2f9b420f692 Mukesh Sisodiya 2024-04-16 583
bde2f9b420f692 Mukesh Sisodiya 2024-04-16 584 if (vif->type == NL80211_IFTYPE_AP)
bde2f9b420f692 Mukesh Sisodiya 2024-04-16 585 iwl_mvm_send_ap_tx_power_constraint_cmd(mvm, vif, link_conf);
bde2f9b420f692 Mukesh Sisodiya 2024-04-16 586
36cf537798cb6c Gregory Greenman 2023-03-28 587 /* Send the beacon template */
36cf537798cb6c Gregory Greenman 2023-03-28 588 ret = iwl_mvm_mac_ctxt_beacon_changed(mvm, vif, link_conf);
36cf537798cb6c Gregory Greenman 2023-03-28 589 if (ret)
3f3126515fbee0 Johannes Berg 2024-05-12 590 return ret;
36cf537798cb6c Gregory Greenman 2023-03-28 591
bf976c814c864e Johannes Berg 2023-03-28 592 /* the link should be already activated when assigning chan context */
bf976c814c864e Johannes Berg 2023-03-28 593 ret = iwl_mvm_link_changed(mvm, vif, link_conf,
bf976c814c864e Johannes Berg 2023-03-28 594 LINK_CONTEXT_MODIFY_ALL &
bf976c814c864e Johannes Berg 2023-03-28 595 ~LINK_CONTEXT_MODIFY_ACTIVE,
f947b62c03b15d Miri Korenblit 2023-03-20 596 true);
f947b62c03b15d Miri Korenblit 2023-03-20 597 if (ret)
3f3126515fbee0 Johannes Berg 2024-05-12 598 return ret;
f947b62c03b15d Miri Korenblit 2023-03-20 599
62e0ccb2170e7a Gregory Greenman 2023-03-28 600 ret = iwl_mvm_mld_add_mcast_sta(mvm, vif, link_conf);
f947b62c03b15d Miri Korenblit 2023-03-20 601 if (ret)
3f3126515fbee0 Johannes Berg 2024-05-12 602 return ret;
f947b62c03b15d Miri Korenblit 2023-03-20 603
f947b62c03b15d Miri Korenblit 2023-03-20 604 /* Send the bcast station. At this stage the TBTT and DTIM time
f947b62c03b15d Miri Korenblit 2023-03-20 605 * events are added and applied to the scheduler
f947b62c03b15d Miri Korenblit 2023-03-20 606 */
62e0ccb2170e7a Gregory Greenman 2023-03-28 607 ret = iwl_mvm_mld_add_bcast_sta(mvm, vif, link_conf);
f947b62c03b15d Miri Korenblit 2023-03-20 608 if (ret)
f947b62c03b15d Miri Korenblit 2023-03-20 609 goto out_rm_mcast;
f947b62c03b15d Miri Korenblit 2023-03-20 610
f947b62c03b15d Miri Korenblit 2023-03-20 611 if (iwl_mvm_start_ap_ibss_common(hw, vif, &ret))
f947b62c03b15d Miri Korenblit 2023-03-20 @612 goto out_failed;
f947b62c03b15d Miri Korenblit 2023-03-20 613
f947b62c03b15d Miri Korenblit 2023-03-20 614 /* Need to update the P2P Device MAC (only GO, IBSS is single vif) */
f947b62c03b15d Miri Korenblit 2023-03-20 615 if (vif->p2p && mvm->p2p_device_vif)
f947b62c03b15d Miri Korenblit 2023-03-20 616 iwl_mvm_mld_mac_ctxt_changed(mvm, mvm->p2p_device_vif, false);
f947b62c03b15d Miri Korenblit 2023-03-20 617
f947b62c03b15d Miri Korenblit 2023-03-20 618 iwl_mvm_bt_coex_vif_change(mvm);
f947b62c03b15d Miri Korenblit 2023-03-20 619
f947b62c03b15d Miri Korenblit 2023-03-20 620 /* we don't support TDLS during DCM */
f947b62c03b15d Miri Korenblit 2023-03-20 621 if (iwl_mvm_phy_ctx_count(mvm) > 1)
f947b62c03b15d Miri Korenblit 2023-03-20 622 iwl_mvm_teardown_tdls_peers(mvm);
f947b62c03b15d Miri Korenblit 2023-03-20 623
fd940de72d493c Avraham Stern 2023-06-12 624 iwl_mvm_ftm_restart_responder(mvm, vif, link_conf);
f947b62c03b15d Miri Korenblit 2023-03-20 625
3f3126515fbee0 Johannes Berg 2024-05-12 626 return 0;
f947b62c03b15d Miri Korenblit 2023-03-20 627
f947b62c03b15d Miri Korenblit 2023-03-20 628 out_failed:
f947b62c03b15d Miri Korenblit 2023-03-20 629 iwl_mvm_power_update_mac(mvm);
f947b62c03b15d Miri Korenblit 2023-03-20 630 mvmvif->ap_ibss_active = false;
62e0ccb2170e7a Gregory Greenman 2023-03-28 631 iwl_mvm_mld_rm_bcast_sta(mvm, vif, link_conf);
f947b62c03b15d Miri Korenblit 2023-03-20 632 out_rm_mcast:
62e0ccb2170e7a Gregory Greenman 2023-03-28 633 iwl_mvm_mld_rm_mcast_sta(mvm, vif, link_conf);
f947b62c03b15d Miri Korenblit 2023-03-20 634 return ret;
f947b62c03b15d Miri Korenblit 2023-03-20 635 }
f947b62c03b15d Miri Korenblit 2023-03-20 636
:::::: The code at line 612 was first introduced by commit
:::::: f947b62c03b15d14349668384bb365aabe898650 wifi: iwlwifi: mvm: add start_ap() and join_ibss() callbacks for MLD mode
:::::: TO: Miri Korenblit <miriam.rachel.korenblit@intel.com>
:::::: CC: Johannes Berg <johannes.berg@intel.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2024-09-15 14:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-15 14:07 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-09-15 14:24 drivers/net/wireless/intel/iwlwifi/mvm/mld-mac80211.c:612 iwl_mvm_mld_start_ap_ibss() warn: missing error code 'ret' Dan Carpenter
2024-11-17 19:47 kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202409160031.caQ4LNOA-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--cc=oe-kbuild@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.