linux-wifi-hotspot: Cannot create hotspot when wifi connected on iwlwifi after Linux kernel 6.11

Describe the bug Unable to create hotspot when connected to any WIFI, when running with Linux kernel version >= 6.11.0 Also, unable to connect to WIFI when hotspot on, when running with Linux kernel version >= 6.11.0 There is no such problem on Linux kernel 6.10

To Reproduce Steps to reproduce the behavior:

  1. Connect to any WIFI on a OS with kernel version >= 6.11.0
  2. Run linux-wifi-hotspot
  3. Click on ‘Create hotspot’
  4. Fail to create hotspot and show Not running

Expected behavior Hotspot enabled, which is that case when kernel version <= 6.10

Screenshots 图片

Desktop (please complete the following information):

  • OS: Debian
  • Version: 12
  • Card: ax200

Additional context I have done bisect off kernel to find out some hints.

Between 6.10 and 6.11, such commit breaks all WIFI:

commit 5c38bedac16a946402b627621b3d4bfcc9952479
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Tue Jun 18 20:03:02 2024 +0300

    wifi: iwlwifi: mvm: unify and fix interface combinations
    
    AP interfaces fundamentally cannot leave the channel, so multi-
    channel operation with them isn't really possible. We shouldn't
    advertise support for such, at least not as long as we don't
    have full multi-radio support. Thus, remove the AP bit from the
    interface combinations for two channels and add another set for
    just one channel that has it.
    
    Also, to avoid duplicating everything even more, unify the NAN
    and non-NAN cases.

And such commit fixs WIFI. However, after that, hotspot is not fixed.

commit 4278d88fedcfde1b91a5cfa96acb0e06d7742e12 (HEAD)
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Tue Jul 2 13:00:00 2024 +0200

    wifi: iwlwifi: mvm: fix interface combinations
    
    The NAN code referenced in this commit isn't actually
    present in the driver (any more), and the commit didn't
    add the extra NAN entry. Thus, the -1 is incorrect.

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 5
  • Comments: 16

Most upvoted comments

@CicadaSeventeen has a regression bug report been made on the linux kernel side yet?

Kernel people refused to fix it.

see :

https://bugzilla.kernel.org/show_bug.cgi?id=219394#c1

Dear @Ja4e thank you for the additional info. I don’t think your problems stem from this issue. There are some related issues in the list already about problems with 5GHz or no ip address. The particular issue we are writing in, was nicely analyzed by @CicadaSeventeen and will only go forward if a iwlwifi kernel dev steps up. You’re issues on the other hand have the possibility to be solved on your side or with a different kernel change, for now that’s not clear. If you want your problems to be solved, I suggest you focus on one configuration at a time, describe which steps you took to set it up and post it in a better fitting (or new) issue.

I have this same problem on manjaro: it works in Kernel 6.6 but not anymore on Kernel 6.11 or 6.12. In the Manjaro Forum @linux-aarhus tested that it really is a problem of iwlwifi and not seen with another driver. I wonder how the other kernel wifi drivers see this: Will they follow iwlwifi and also disable these interface combinations?

In that same thread I tried to get wifi-p2p working like the kernel dev said, but I failed. Is wifi-p2p something that could be implemented in linux-wifi-hotspot?

No it actually affects rtl wifi adapter as well. That commit likely caused the 5ghz wifi not being able to connect else okay working as usual should be the same as the intel iwlwifi as well, that commit likely broke the 5ghz features

Dear @puzzle9, sorry for the late reply. I don’t think this project is going to stop, I for one see it as very useful. The problem documented in this issue affects only the iwlwifi driver in the linux kernel, meaning this issue affects only recent wifi cards produced by intel, other manufacturers should work (if they have the capability of interface combinations). Also this issue is only about using a wifi card in combined mode, you can still use it to configure a hotspot in a nice way. If it’s a intel card, you can’t have a wifi bridge and you need to stop the ingoing connection (client). Then you have to think, whether you actually need internet connection in the to be opened network and how to get it in (not at all, cable, other wifi adaptor)