Electronic device for wireless LAN communication and operating method thereoff
By intelligently determining a Group Owner for direct communication based on DFS channel availability and connection status, the electronic device addresses MCC issues, enhancing transmission speed and stability in wireless LAN systems.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- SAMSUNG ELECTRONICS CO LTD
- Filing Date
- 2025-08-27
- Publication Date
- 2026-04-23
AI Technical Summary
Multi-channel concurrency (MCC) situations in wireless LAN communication due to the use of DFS channels can lead to performance degradation and unnecessary channel switching, especially when an external device is within the service area of a DFS owner AP but not explicitly connected to it.
An electronic device intelligently determines a Group Owner (GO) for direct communication based on DFS channel availability and connection status, enabling the use of DFS channels even when the external device is within the service area of a DFS owner AP, thereby reducing performance degradation and minimizing channel switching.
This approach significantly reduces performance degradation, minimizes unnecessary channel switching, and enhances transmission speed and stability, providing a seamless user experience with improved reliability and efficiency in dynamic network environments.
Smart Images

Figure KR2025013036_23042026_PF_FP_ABST
Abstract
Description
Electronic device for wireless LAN communication and method of operation thereof
[0001] An embodiment of the present disclosure relates to an electronic device for wireless LAN communication and a method of operating the same.
[0002] A wireless local area network (WLAN) system can support wireless connections for various electronic devices, such as smartphones, tablet PCs, or notebooks, using designated frequency bands (e.g., the 2.4 GHz band, the 5 GHz band, and / or the 6 GHz band).
[0003] Wireless LAN systems can be installed not only in private spaces such as homes but also in public spaces such as airports, train stations, offices, or department stores. Wireless LAN systems can be defined by the IEEE (Institute of Electrical and Electronics Engineers) 802.11 standard. For example, the IEEE 802.11 standard is continuously evolving, such as IEEE 802.11b, IEEE 802.11a, IEEE 802.11g, IEEE 802.11n, IEEE 802.11ac, IEEE 802.11ax, and IEEE 802.11be.
[0004] The information described above may be provided as related art for the purpose of aiding understanding of the present disclosure. No claim or determination is made as to whether any of the foregoing may be applied as prior art related to the present disclosure.
[0005] An electronic device connected to direct communication based on wireless LAN communication (e.g., Wi-Fi Direct) and an external electronic device may use the DFS channel for direct communication based on wireless LAN communication based on specified dynamic frequency selection (DFS) conditions. For example, an electronic device connected to a DFS owner access point (or DFS AP) may use the DFS channel for direct communication based on wireless LAN communication with an external electronic device by acting as a group owner (e.g., GO (group owner)) if the external electronic device is not connected to the DFS owner AP but is located within the service area of the DFS owner AP.
[0006] When an external electronic device establishes direct communication based on wireless LAN communication with an electronic device at the request of the external electronic device for data transmission to the electronic device, it may operate (or be set) as a group owner based on a specified group owner setting method (e.g., autonomous GO method). If the external electronic device has a higher group owner preference value (e.g., GO intent) than the electronic device connected via direct communication based on wireless LAN communication, it may operate (or be set) as a group owner based on a specified group owner setting method.
[0007] If an external electronic device is selected as the group owner based on the designated group owner setting method but is connected to a DFS owner AP, the designated DFS conditions are not satisfied, and a channel other than the DFS channel may be selected for direct communication based on wireless LAN communication with the electronic device. In this case, a multi-channel concurrency (MCC) situation may occur due to wireless LAN communication with the DFS owner AP using the DFS channel and direct communication based on wireless LAN communication with the external electronic device using a channel other than the DFS channel, which may result in performance degradation of wireless LAN communication.
[0008] Embodiments of the present disclosure disclose an apparatus and method for using a DFS channel for direct communication based on wireless LAN communication in an electronic device.
[0009] The technical problems to be solved in this document are not limited to those mentioned above, and other technical problems not mentioned will be clearly understood by those skilled in the art to which this disclosure belongs from the description below.
[0010] According to one embodiment, the electronic device may include a communication circuit supporting wireless LAN communication, at least one processor including a processing circuit, and a memory for storing instructions. According to one embodiment, the instructions may include instructions that cause the electronic device to transmit a search request message when executed individually or collectively by at least one processor. According to one embodiment, the instructions may include instructions that cause the electronic device to receive a response message from an external electronic device when executed individually or collectively by at least one processor. According to one embodiment, the instructions may include instructions that cause the electronic device to check first information related to the dynamic frequency selection (DFS) function of the external electronic device in the response message when executed individually or collectively by at least one processor. According to one embodiment, the instructions may include instructions that, when executed individually or collectively by at least one processor, cause the electronic device to transmit a message to the external electronic device that includes information indicating that the external electronic device is connected to the DFS owner AP, if the first information related to the DFS function of the external electronic device includes information indicating that the external electronic device is connected to the DFS owner AP.
[0011] According to one embodiment, the method of operation of an electronic device may include the operation of transmitting a search request message. According to one embodiment, the method of operation of an electronic device may include the operation of receiving a response message from an external electronic device. According to one embodiment, the method of operation of an electronic device may include the operation of checking first information related to the dynamic frequency selection (DFS) function of the external electronic device in the response message. According to one embodiment, if the first information related to the DFS function of the external electronic device includes information indicating that the external electronic device is connected to a DFS owner AP, the method of operation of an electronic device may include the operation of transmitting a message to the external electronic device that includes information causing the external electronic device to operate as a group owner for controlling the direct connection between the electronic device and the external electronic device via wireless LAN.
[0012] According to one embodiment, a non-transient computer-readable storage medium (or computer program product) storing one or more programs may be described. According to one embodiment, the one or more programs may include instructions that, when executed by at least one processor of an electronic device, cause the electronic device to perform the following operations: transmitting a search request message; receiving a response message from an external electronic device; verifying first information related to the dynamic frequency selection (DFS) function of the external electronic device in the response message; and, if the first information related to the DFS function of the external electronic device includes information indicating that the external electronic device is connected to a DFS owner AP, transmitting a message to the external electronic device that includes information causing the external electronic device to operate as a group owner for controlling the direct connection between the electronic device and the external electronic device via a wireless LAN.
[0013] According to an exemplary embodiment of the present disclosure, when an electronic device is connected to an external electronic device for direct communication based on wireless LAN communication, the electronic device or the external electronic device can be configured as the group owner of the direct communication based on wireless LAN communication based on connection information between the electronic device and the DFS owner AP and connection information between the external electronic device and the DFS owner AP, thereby enabling the use of a DFS channel for direct communication based on wireless LAN communication. In particular, an electronic device and an external electronic device connected to each other via direct communication based on wireless LAN communication (e.g., Wi-Fi Direct) can use a DFS channel for direct communication based on wireless LAN communication under specified DFS conditions. For example, if the external electronic device is not connected to the DFS owner AP but is located within the service area of the DFS owner AP, the electronic device connected to the DFS owner AP can operate as a group owner (e.g., GO) and can use a DFS channel for direct communication with the external electronic device via wireless LAN communication. According to one embodiment, an electronic device intelligently determines a Group Owner (GO) for direct communication (e.g., Wi-Fi Direct) based on DFS channel availability and the connection status with an AP. This enables the use of the DFS channel even if at least one electronic device is located within the service area, even if it is not explicitly connected to the DFS owner AP. As a result, the system can significantly reduce performance degradation caused by multi-channel concurrency (MCC), minimize unnecessary channel switching, and improve the transmission speed and stability of direct communication. Furthermore, by exchanging DFS-related information using low-power communication protocols such as Bluetooth Low Energy (BLE), it provides energy efficiency and a seamless user experience without user intervention. These technical effects can comprehensively improve the reliability and efficiency of wireless communication in dynamic and heterogeneous network environments.
[0014] In addition, various effects that can be identified directly or indirectly through this document may be provided.
[0015] The effects obtainable from the present disclosure are not limited to those mentioned above, and other unmentioned effects will be clearly understood by those skilled in the art to which the present disclosure belongs from the description below.
[0016] In relation to the description of the drawings, the same or similar reference numerals may be used for identical or similar components.
[0017] FIG. 1 is a block diagram of an electronic device in a network environment according to one embodiment.
[0018] FIG. 2 is a block diagram of an electronic device for wireless LAN communication according to one embodiment.
[0019] FIG. 3 is a flowchart for setting a group owner of direct communication based on wireless LAN communication in an electronic device according to one embodiment.
[0020] FIG. 4 is a flowchart for setting a group owner based on information related to a DFS function in an electronic device according to one embodiment.
[0021] FIG. 5 is a flowchart for connecting direct communication based on wireless LAN communication with an external electronic device in an electronic device according to one embodiment.
[0022] FIG. 6 is a flowchart for connecting direct communication based on wireless LAN communication between an electronic device and an external electronic device according to one embodiment.
[0023] FIG. 7 is an example of connecting direct communication based on wireless LAN communication with an external electronic device in an electronic device according to one embodiment.
[0024] FIG. 8 is a flowchart for setting a group owner of direct communication based on wireless LAN communication in an electronic device according to one embodiment.
[0025] FIG. 9 is a flowchart for transmitting a group owner preference value in an electronic device according to one embodiment.
[0026] FIG. 10 is a flowchart for updating a group owner preference value in an electronic device according to one embodiment.
[0027] FIG. 11 is an example of setting a group owner based on a group owner preference value in an electronic device according to one embodiment.
[0028] FIG. 12 is an example of setting a group owner based on a group owner preference value in an electronic device according to one embodiment.
[0029] FIG. 13 is a flowchart for creating a persistent group based on information related to a DFS function in an electronic device according to one embodiment.
[0030] The following embodiments are described in detail with reference to the attached drawings.
[0031] FIG. 1 is a block diagram of an electronic device (101) in a network environment (100) according to one embodiment. Referring to FIG. 1, in the network environment (100), the electronic device (101) may communicate with an electronic device (102) through a first network (198) (e.g., a short-range wireless communication network) or may communicate with at least one of an electronic device (104) or a server (108) through a second network (199) (e.g., a long-range wireless communication network). According to one embodiment, the electronic device (101) may communicate with the electronic device (104) through the server (108). According to one embodiment, the electronic device (101) may include a processor (120), memory (130), input module (150), sound output module (155), display module (160), audio module (170), sensor module (176), interface (177), connection terminal (178), haptic module (179), camera module (180), power management module (188), battery (189), communication module (190), subscriber identification module (196), or antenna module (197). In some embodiments, at least one of these components (e.g., connection terminal (178)) may be omitted from the electronic device (101), or one or more other components may be added. In some embodiments, some of these components (e.g., sensor module (176), camera module (180), or antenna module (197)) may be integrated into a single component (e.g., display module (160)).
[0032] The processor (120) can control at least one other component (e.g., a hardware or software component) of the electronic device (101) connected to the processor (120) by executing software (e.g., a program (140)), and can perform various data processing or operations. According to one embodiment, as at least part of the data processing or operations, the processor (120) can store commands or data received from other components (e.g., a sensor module (176) or a communication module (190)) in volatile memory (132), process the commands or data stored in volatile memory (132), and store the resulting data in non-volatile memory (134). According to one embodiment, the processor (120) may include a main processor (121) (e.g., a central processing unit or an application processor) or an auxiliary processor (123) that can operate independently or together with it (e.g., a graphics processing unit, a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor). For example, if the electronic device (101) includes a main processor (121) and an auxiliary processor (123), the auxiliary processor (123) may be configured to use lower power than the main processor (121) or to be specialized for a designated function. The auxiliary processor (123) may be implemented separately from the main processor (121) or as part thereof.
[0033] The auxiliary processor (123) may control at least some of the functions or states associated with at least one component of the electronic device (101) (e.g., display module (160), sensor module (176), or communication module (190)) on behalf of the main processor (121) while the main processor (121) is in an inactive (e.g., sleep) state, or together with the main processor (121) while the main processor (121) is in an active (e.g., application execution) state. According to one embodiment, the auxiliary processor (123) (e.g., image signal processor or communication processor) may be implemented as part of another functionally related component (e.g., camera module (180) or communication module (190)). According to one embodiment, the auxiliary processor (123) (e.g., neural network processing unit) may include a hardware structure specialized for processing an artificial intelligence model. The artificial intelligence model may be generated through machine learning. Such learning may be performed, for example, on the electronic device (101) itself where the artificial intelligence model is executed, or through a separate server (e.g., server (108)). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but is not limited to the examples described above. The artificial intelligence model may include a plurality of artificial neural network layers.An artificial neural network may be a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q-network, or a combination of two or more of these, but is not limited to the examples described above. In addition to the hardware structure, the artificial intelligence model may include a software structure, either additionally or substantially.
[0034] The memory (130) can store various data used by at least one component of the electronic device (101) (e.g., processor (120) or sensor module (176)). The data may include, for example, input data or output data for software (e.g., program (140)) and related commands. The memory (130) may include volatile memory (132) or non-volatile memory (134).
[0035] The program (140) may be stored as software in memory (130) and may include, for example, an operating system (142), middleware (144), or an application (146).
[0036] The input module (150) can receive commands or data to be used for a component of the electronic device (101) (e.g., processor (120)) from outside the electronic device (101) (e.g., user). The input module (150) may include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).
[0037] The sound output module (155) can output a sound signal to the outside of the electronic device (101). The sound output module (155) may include, for example, a speaker or a receiver. The speaker may be used for general purposes, such as multimedia playback or recording playback. The receiver may be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from the speaker or as part thereof.
[0038] The display module (160) can visually provide information to an external (e.g., user) of the electronic device (101). The display module (160) may include, for example, a display, a holographic device, or a projector and a control circuit for controlling said device. According to one embodiment, the display module (160) may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of the force generated by the touch.
[0039] The audio module (170) can convert sound into an electrical signal or, conversely, convert an electrical signal into sound. According to one embodiment, the audio module (170) can acquire sound through the input module (150) or output sound through the sound output module (155) or an external electronic device (e.g., electronic device (102)) (e.g., speaker or headphones) connected directly or wirelessly to the electronic device (101).
[0040] The sensor module (176) can detect the operating state of the electronic device (101) (e.g., power or temperature) or the external environmental state (e.g., user state) and generate an electrical signal or data value corresponding to the detected state. According to one embodiment, the sensor module (176) may include, for example, a gesture sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an accelerometer sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biosensor, a temperature sensor, a humidity sensor, or an illuminance sensor.
[0041] The interface (177) may support one or more specified protocols that can be used for the electronic device (101) to be connected directly or wirelessly to an external electronic device (e.g., electronic device (102)). According to one embodiment, the interface (177) may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
[0042] The connection terminal (178) may include a connector through which the electronic device (101) can be physically connected to an external electronic device (e.g., electronic device (102)). According to one embodiment, the connection terminal (178) may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).
[0043] The haptic module (179) can convert an electrical signal into a mechanical stimulus (e.g., vibration or movement) or an electrical stimulus that can be perceived by the user through tactile or kinesthetic senses. According to one embodiment, the haptic module (179) may include, for example, a motor, a piezoelectric element, or an electric stimulation device.
[0044] The camera module (180) can capture still images and video. According to one embodiment, the camera module (180) may include one or more lenses, image sensors, image signal processors, or flashes.
[0045] The power management module (188) can manage power supplied to the electronic device (101). According to one embodiment, the power management module (188) can be implemented, for example, as at least part of a power management integrated circuit (PMIC).
[0046] The battery (189) can supply power to at least one component of the electronic device (101). According to one embodiment, the battery (189) may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
[0047] The communication module (190) can support the establishment of a direct (e.g., wired) communication channel or a wireless communication channel between an electronic device (101) and an external electronic device (e.g., electronic device (102), electronic device (104), or server (108)), and the performance of communication through the established communication channel. The communication module (190) may include one or more communication processors that operate independently of the processor (120) (e.g., application processor) and support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module (190) may include a wireless communication module (192) (e.g., cellular communication module, short-range wireless communication module, or GNSS (global navigation satellite system) communication module) or a wired communication module (194) (e.g., LAN (local area network) communication module, or power line communication module). The corresponding communication module among these communication modules can communicate with an external electronic device (104) through a first network (198) (e.g., a short-range communication network such as Bluetooth, Wi-Fi Direct, or IrDA (infrared data association)) or a second network (199) (e.g., a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., a LAN or WAN)). These various types of communication modules may be integrated into a single component (e.g., a single chip) or implemented as multiple separate components (e.g., multiple chips). The wireless communication module (192) can identify or authenticate the electronic device (101) within a communication network such as the first network (198) or the second network (199) using subscriber information (e.g., International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module (196).
[0048] The wireless communication module (192) can support 5G networks and next-generation communication technologies following 4G networks, for example, new radio access technology. The NR access technology can support high-speed transmission of high-capacity data (enhanced mobile broadband (eMBB)), minimization of terminal power and connection of multiple terminals (massive machine type communications (mMTC)), or high reliability and low latency (ultra-reliable and low-latency communications (URLLC)). The wireless communication module (192) can support a high-frequency band (e.g., mmWave band) to achieve a high data transmission rate (or throughput), for example. The wireless communication module (192) can support various technologies for securing performance in the high-frequency band, such as beamforming, massive MIMO (multiple-input and multiple-output), full-dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large-scale antenna. The wireless communication module (192) can support various requirements specified in the electronic device (101), external electronic device (e.g., electronic device (104)), or network system (e.g., second network (199)). According to one embodiment, the wireless communication module (192) may support a peak data rate for eMBB realization (e.g., 20 Gbps or more), loss coverage for mMTC realization (e.g., 164 dB or less), or U-plane latency for URLLC realization (e.g., downlink (DL) and uplink (UL) each 0.5 ms or less, or round trip 1 ms or less).According to one embodiment, the subscriber identification module (196) may include a plurality of subscriber identification modules. For example, the plurality of subscriber identification modules may store different subscriber identification information.
[0049] An antenna module (197) can transmit a signal or power to or from an external source (e.g., an external electronic device). According to one embodiment, the antenna module (197) may include an antenna comprising a radiator made of a conductor or a conductive pattern formed on a substrate (e.g., a PCB). According to one embodiment, the antenna module (197) may include a plurality of antennas (e.g., an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network, such as a first network (198) or a second network (199), may be selected from the plurality of antennas, for example, by a communication module (190). A signal or power may be transmitted or received between the communication module (190) and an external electronic device through the selected at least one antenna. According to some embodiments, in addition to the radiator, other components (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as part of the antenna module (197).
[0050] According to one embodiment, the antenna module (197) may form a high frequency (e.g., mmWave) antenna module. According to one embodiment, the high frequency (e.g., mmWave) antenna module may include a printed circuit board, an RFIC disposed on or adjacent to a first surface (e.g., bottom surface) of the printed circuit board and capable of supporting a specified high frequency band (e.g., mmWave band), and a plurality of antennas (e.g., array antennas) disposed on or adjacent to a second surface (e.g., top surface or side surface) of the printed circuit board and capable of transmitting or receiving a signal of the specified high frequency band. For example, the plurality of antennas may include a patch array antenna and / or a dipole array antenna.
[0051] At least some of the components can be connected to each other via a communication method between peripheral devices (e.g., bus, GPIO (general purpose input and output), SPI (serial peripheral interface), or MIPI (mobile industry processor interface)) and exchange signals (e.g., commands or data) with each other.
[0052] According to one embodiment, commands or data may be transmitted or received between an electronic device (101) and an external electronic device (104) through a server (108) connected to a second network (199). Each of the external electronic devices (102, or 104) may be the same or a different type of device as the electronic device (101). According to one embodiment, all or part of the operations performed on the electronic device (101) may be performed on one or more of the external electronic devices (102, 104, or 108). For example, if the electronic device (101) needs to perform a function or service automatically or in response to a request from a user or another device, the electronic device (101) may request one or more external electronic devices to perform at least part of the function or service instead of performing the function or service itself or additionally. One or more external electronic devices that receive the above request may execute at least part of the requested function or service, or additional function or service related to the request, and transmit the result of the execution to the electronic device (101). The electronic device (101) may provide the result as is or additionally processed as at least part of the response to the request. For this purpose, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used. The electronic device (101) may provide ultra-low latency services using, for example, distributed computing or mobile edge computing. In one embodiment, the external electronic device (104) may include an Internet of Things (IoT) device. The server (108) may be an intelligent server using machine learning and / or neural networks. According to one embodiment, the external electronic device (104) or the server (108) may be included within a second network (199).The electronic device (101) can be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.
[0053] An electronic device according to one embodiment disclosed in this document may be of various forms. The electronic device may include, for example, a portable communication device (e.g., a smartphone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a consumer electronics device. The electronic device according to the embodiment of this document is not limited to the aforementioned devices.
[0054] The embodiments of this document and the terms used therein are not intended to limit the technical features described in this document to specific embodiments, and should be understood to include various modifications, equivalents, or substitutions of said embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of said items unless the relevant context clearly indicates otherwise. In this document, phrases such as "A or B," "at least one of A and B," "at least one of A or B," "A, B or C," "at least one of A, B and C," and "at least one of A, B, or C" may each include any one of the items listed together in the corresponding phrase, or all possible combinations thereof. Terms such as "first," "second," or "first" or "second" may be used simply to distinguish said components from other said components and do not limit said components in any other aspect (e.g., importance or order). Where any (e.g., 1st) component is referred to as “coupled” or “connected” to another (e.g., 2nd) component, with or without the terms “functionally” or “communicationly,” it means that said any component may be connected to said other component directly (e.g., via a wire), wirelessly, or through a third component.
[0055] As used in one embodiment of this document, the term “module” may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit, for example. A module may be a component formed integrally, or a minimum unit of said component or a part thereof that performs one or more functions. For example, according to one embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).
[0056] One embodiment of the present document may be implemented as software (e.g., program (140)) comprising one or more instructions stored in a storage medium (e.g., internal memory (136) or external memory (138)) readable by a machine (e.g., electronic device (101)). For example, a processor (e.g., processor (120)) of the machine (e.g., electronic device (101)) may call at least one of the one or more instructions stored in the storage medium and execute it. This enables the machine to be operated to perform at least one function according to the at least one called instruction. The one or more instructions may include code generated by a compiler or code that can be executed by an interpreter. The storage medium readable by the machine may be provided in the form of a non-transitory storage medium. Here, 'non-temporary' simply means that the storage medium is a tangible device and does not contain a signal (e.g., electromagnetic waves), and the term does not distinguish between cases where data is stored semi-permanently and cases where it is stored temporarily.
[0057] A method according to one embodiment disclosed in this document may be provided by being included in a computer program product. The computer program product may be traded between a seller and a buyer as a product. The computer program product may be distributed in the form of a device-readable storage medium (e.g., compact disc read-only memory (CD-ROM)) or an application store (e.g., Play Store). TM It can be distributed online (e.g., downloaded or uploaded) through ) or directly between two user devices (e.g., smartphones). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily created on a device-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or a relay server.
[0058] According to one embodiment, each component (e.g., module or program) of the components described above may include a singular or multiple entities, and some of the multiple entities may be separated and placed in other components. According to one embodiment, one or more of the components or operations among the aforementioned components may be omitted, or one or more other components or operations may be added. Generally or additionally, multiple components (e.g., module or program) may be integrated into a single component. In this case, the integrated component may perform one or more functions of each of the multiple components in the same or similar manner as those performed by the corresponding component among the multiple components prior to integration. According to one embodiment, operations performed by the module, program, or other components may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or one or more other operations may be added.
[0059] FIG. 2 is a block diagram of an electronic device for wireless LAN communication according to one embodiment. According to one embodiment, the electronic device (101) of FIG. 2 may be at least partially similar to the electronic device (101) of FIG. 1, or may include other embodiments of the electronic device.
[0060] According to one embodiment with reference to FIG. 2, the electronic device (101) may include a processor (200), a communication circuit (210), and / or a memory (220). For example, the processor (200) may be substantially identical to the processor (120) of FIG. 1 (e.g., an application processor and / or a communication processor) or may be included in the processor (120). The communication circuit (210) may be substantially identical to the wireless communication module (192) of FIG. 1 or may be included in the wireless communication module (192). The memory (220) may be substantially identical to the memory (130) of FIG. 1 or may be included in the memory (130). For example, the processor (200) may be operatively, functionally, and / or electrically connected to the communication circuit (210) and / or the memory (220). For example, the processor (200) may include at least one processor including a processing circuit.
[0061] According to one embodiment, the processor (200) may control the communication circuit (210) to transmit a search request message when an event related to direct communication based on wireless LAN communication is detected. For example, the search request message may include information related to the dynamic frequency selection (DFS) function of the electronic device (101). For example, the information related to the DFS function may include at least one of support information (or information on whether support is provided) for the DFS of the electronic device (101) or information related to the DFS owner AP (access point) (or DFS AP) connected to the electronic device (101). For example, the information related to the DFS owner AP connected to the electronic device (101) may include at least one of identification information (e.g., SSID (service set identifier) or BSSID (basic service set identifier)) of the DFS owner AP to which the electronic device (101) is connected (or connected) when the electronic device (101) is connected (or connected) to the DFS owner AP or channel information for wireless LAN communication with the DFS owner AP. For example, a DFS owner AP may represent an AP capable of using (or being allocated) a DFS channel. For example, a search request message may include a message of out-of-band (OOB) communication (e.g., a BLE advertisement message). For example, an event related to direct communication based on wireless LAN communication may be detected based on at least one of the execution of an application or function related to direct communication based on wireless LAN communication, the reception of user input related to direct communication based on wireless LAN communication (e.g., touch input or gesture input), or the reception of a control signal related to direct communication based on wireless LAN communication.
[0062] According to one embodiment, the processor (200) may receive a search response message corresponding to a search request message through a communication circuit (210). For example, when the processor (200) receives a search response message from at least one external electronic device, it may output a list of external electronic devices corresponding to the search response message through an output device (e.g., a display) of the electronic device (101). The processor (200) may identify (or select) an external electronic device for performing direct communication based on wireless LAN communication based on an input corresponding to the list of external electronic devices. For example, the search response message may include information related to the DFS function of the external electronic device. For example, the information related to the DFS function may include at least one of support information (or information on whether support is provided) for the DFS of the external electronic device, information related to the DFS owner AP connected to the external electronic device, or information indicating that the external electronic device is located in the service area of the DFS owner AP connected to the electronic device (101). For example, information related to a DFS owner AP connected to an external electronic device may include at least one of identification information (e.g., SSID or BSSID) of the DFS owner AP to which the external electronic device is connected (or connected) or channel information for wireless LAN communication with the DFS owner AP when the external electronic device is connected (or connected) to the DFS owner AP. For example, the search response message may include a message for OOB communication (e.g., a BLE advertisement message). For example, information indicating that the external electronic device is located within the service area of the DFS owner AP connected to the electronic device (101) may include a state in which the external electronic device can receive (or detect) a signal (e.g., a beacon signal) of the DFS owner AP connected to the electronic device (101). For example, the external electronic device may be connected to or not connected to the DFS owner AP within the service area of the DFS owner AP connected to the electronic device (101).
[0063] According to one embodiment, the processor (200) can set the group owner of direct communication based on wireless LAN communication based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device. For example, the processor (200) can check whether specified DFS usage conditions are satisfied based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device. For example, a state satisfying specified DFS usage conditions may include a state in which the electronic device (101) and the external electronic device support DFS, at least one of the electronic device (101) or the external electronic device is connected to the DFS owner AP, and is located in the service area of the DFS owner AP connected to the other electronic device. For example, a state in which the electronic device (101) is located in the service area of a DFS owner AP connected to another electronic device may include at least one of a state in which the electronic device (101) can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the external electronic device, or a state in which the external electronic device can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the electronic device (101). For example, a state in which the electronic device is located in the service area of a DFS owner AP connected to another electronic device may include at least one of a state in which the electronic device receives (or detects) a signal from the DFS owner AP without being connected to the DFS owner AP connected to the other electronic device, or a state in which the electronic device is connected to the DFS owner AP connected to the other electronic device. For example, a state in which a specified DFS usage condition is not satisfied may include a state in which at least one of the electronic device (101) or an external electronic device does not support DFS, or the electronic device (101) and the external electronic device are not connected to the DFS owner AP, or are not located in the service area of the DFS owner AP connected to another electronic device.For example, a state in which the electronic device (101) is not located in the service area of the DFS owner AP connected to another electronic device may include a state in which the electronic device (101) cannot receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the external electronic device, and a state in which the external electronic device cannot receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the electronic device (101).
[0064] For example, if the processor (200) determines that the specified DFS usage conditions are not satisfied, it may set the electronic device (101) as the group owner based on a specified first group owner setting method (e.g., the autonomous GO method). For example, the specified first group owner setting method may include a group owner setting method that sets the device that requested a connection for direct communication based on wireless LAN communication as the group owner. For example, the device that requested a connection for direct communication based on wireless LAN communication may include a device that sent a search request message.
[0065] For example, if the processor (200) determines that specified DFS usage conditions are satisfied, it may set a group owner based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device. For example, if the electronic device (101) that requested a connection for direct communication based on wireless LAN communication is connected to the DFS owner AP and the external electronic device is located in the service area of the DFS owner AP connected to the electronic device (101), the processor (200) may set the electronic device (101) as the group owner regardless of whether the external electronic device is connected to the DFS owner AP. For example, if the external electronic device is connected to the DFS owner AP and the electronic device (101) is not connected to the DFS owner AP and the electronic device (101) is located in the service area of the DFS owner AP connected to the external electronic device, the processor (200) may set the external electronic device as the group owner.
[0066] According to one embodiment, the processor (200) can set a channel for direct communication based on wireless LAN communication with an external electronic device when the electronic device (101) is set as a group owner. For example, the processor (200) can set the DFS channel as a channel for direct communication based on wireless LAN communication with an external electronic device when the electronic device (101) performs wireless LAN communication with a DFS owner AP using a DFS channel. For example, the processor (200) can select a channel for direct communication based on wireless LAN communication with an external electronic device from among the channels supported by the electronic device (101) when the specified DFS usage conditions are not satisfied.
[0067] For example, the processor (200) can control the communication circuit (210) to perform a direct communication connection based on wireless LAN communication with an external electronic device based on a channel (e.g., DFS channel) for direct communication based on wireless LAN communication with an external electronic device.
[0068] According to one embodiment, the processor (200) may control the communication circuit (210) to transmit information related to the group owner setting to the external electronic device when the external electronic device is set as the group owner while satisfying the specified DFS usage conditions. For example, the information related to the group owner setting may include at least one of the group owner setting information of the external electronic device, the preferred channel of the electronic device (101), or information indicating that the electronic device (101) is located in the service area of the DFS owner AP connected to the external electronic device. For example, the group owner setting information of the external electronic device is information that sets the external electronic device as the group owner when a request for a connection of direct communication based on wireless LAN communication is received differently from the specified first group owner setting method, and may be referred to as the update information of the specified first group owner setting method. For example, the information indicating that the electronic device is located in the service area of the DFS owner AP connected to the external electronic device may include a state in which the electronic device (101) can receive (or detect) a signal (e.g., a beacon signal) of the DFS owner AP connected to the external electronic device. For example, the electronic device (101) may or may not be connected to the DFS owner AP within the service area of the DFS owner AP connected to the external electronic device.
[0069] For example, the processor (200) can control the communication circuit (210) to perform a direct communication connection based on wireless LAN communication with an external electronic device based on a channel (e.g., DFS channel) assigned by an external electronic device set as the group owner.
[0070] According to one embodiment, when the processor (200) receives a search request message via wireless LAN communication, it may control the communication circuit (210) to transmit a search response message corresponding to the search request message. For example, the search request message may include a probe request message or a service discovery frame (SDF) related to the search request. For example, the search response message may include a probe response message or an SDF related to the search response. For example, the search response message may include information related to the dynamic frequency selection (DFS) function of the electronic device (101), and may include at least one of the support information (or information on whether support is provided) of the DFS of the electronic device (101) or information related to the DFS owner AP connected to the electronic device (101).
[0071] According to one embodiment, when a group owner negotiation request message is received, the processor (200) can check information related to the DFS function of the external electronic device and the group owner preference value of the external electronic device in the group owner negotiation request message. For example, the information related to the DFS function of the external electronic device may include at least one of support information (or information on whether support is provided) for the DFS of the external electronic device, information related to the DFS owner AP connected to the external electronic device, or information indicating that the external electronic device is located in the service area of the DFS owner AP connected to the electronic device (101). For example, the group owner preference value is a value indicating the degree to which the external electronic device prefers the group owner, and may be set based on user input or the characteristics of the external electronic device. For example, the information indicating that the external electronic device is located in the service area of the DFS owner AP connected to the electronic device (101) may include a state in which the external electronic device can receive (or detect) a signal (e.g., a beacon signal) of the DFS owner AP connected to the electronic device (101). For example, an external electronic device may or may not be connected to the DFS owner AP within the service area of the DFS owner AP connected to the electronic device (101).
[0072] According to one embodiment, the processor (200) can determine whether specified DFS usage conditions are satisfied based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device. For example, a state satisfying specified DFS usage conditions may include a state in which the electronic device (101) and the external electronic device support DFS, at least one of the electronic device (101) or the external electronic device is connected to a DFS owner AP, and is located in the service area of the DFS owner AP connected to the other electronic device. For example, a state in which it is located in the service area of the DFS owner AP connected to the other electronic device may include at least one of a state in which the electronic device (101) can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the external electronic device, or a state in which the external electronic device can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the electronic device (101). For example, a state of being located in the service area of a DFS owner AP connected to another electronic device may include at least one of a state of receiving (or detecting) a signal from a DFS owner AP without being connected to a DFS owner AP connected to another electronic device, or a state of being connected to a DFS owner AP connected to another electronic device. For example, a state of not satisfying specified DFS usage conditions may include a state in which at least one of the electronic device (101) or an external electronic device does not support DFS, or the electronic device (101) and the external electronic device are not connected to a DFS owner AP, or are not located in the service area of a DFS owner AP connected to another electronic device.For example, a state in which the electronic device (101) is not located in the service area of the DFS owner AP connected to another electronic device may include a state in which the electronic device (101) cannot receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the external electronic device, and a state in which the external electronic device cannot receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the electronic device (101).
[0073] According to one embodiment, if the processor (200) determines that the specified DFS usage conditions are not satisfied, it may control the communication circuit (210) to transmit the group owner preference value of the electronic device (101) to an external electronic device. For example, the processor (200) may control the communication circuit (210) to transmit a group owner negotiation response message to an external electronic device that includes information related to the group owner preference value of the electronic device (101) and a temporary suspension of group owner negotiation (e.g., GO negotiation response states 1). If the processor (200) accepts a direct connection based on wireless LAN communication with the external electronic device, it may control the communication circuit (210) to transmit a group owner negotiation request message to an external electronic device that includes information related to the group owner preference value of the electronic device (101). If the processor (200) receives a group owner negotiation response message from the external electronic device, it may check the group owner preference value of the external electronic device in the group owner negotiation response message. The processor (200) can set the group owner of direct communication based on wireless LAN communication by comparing the group owner preference value of the electronic device (101) and the group owner preference value of the external electronic device. The processor (200) can control the communication circuit (210) to transmit a group owner setting completion message containing the group owner setting information to the external electronic device. For example, the group owner may be set to the device with the larger group owner preference value among the electronic device (101) and the external electronic device for performing direct communication based on wireless LAN communication.
[0074] For example, if the processor (200) accepts a direct connection based on wireless LAN communication with an external electronic device, it may control the communication circuit (210) to transmit a group owner negotiation response message containing information related to the group owner preference value of the electronic device (101) to the external electronic device. If the processor (200) receives a group owner negotiation completion message from the external electronic device, it may identify the group owner set by the external electronic device.
[0075] According to one embodiment, the processor (200) may update the group owner preference value of the electronic device (101) when it determines that specified DFS usage conditions are satisfied. For example, the processor (200) may control the communication circuit (210) to transmit a group owner negotiation response message to an external electronic device, which includes information regarding the group owner preference value of the electronic device (101) and a temporary suspension of group owner negotiation (e.g., GO negotiation response states 1). The processor (200) may set the group owner based on information regarding the DFS function of the electronic device (101) and information regarding the DFS function of the external electronic device.
[0076] For example, if the processor (200) accepts a direct connection based on wireless LAN communication with an external electronic device, it can set a group owner based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device.
[0077] For example, the processor (200) may set the electronic device (101) as a group owner regardless of whether the external electronic device is connected to the DFS owner AP, when the electronic device (101) that requested a connection for direct communication based on wireless LAN communication is connected to the DFS owner AP and the external electronic device is located in the service area of the DFS owner AP connected to the electronic device (101). For example, the state in which the external electronic device is located in the service area of the DFS owner AP connected to the electronic device (101) may include a state in which the external electronic device can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the electronic device (101). For example, the external electronic device may be connected to or not connected to the DFS owner AP within the service area of the DFS owner AP connected to the electronic device (101).
[0078] For example, the processor (200) can set the external electronic device as the group owner when the external electronic device is connected to the DFS owner AP, the electronic device (101) is not connected to the DFS owner AP, and the electronic device (101) is located in the service area of the DFS owner AP connected to the external electronic device. For example, the state in which the electronic device (101) is located in the service area of the DFS owner AP connected to the external electronic device may include a state in which the electronic device (101) can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the external electronic device. For example, the electronic device (101) may be connected to or not connected to the DFS owner AP within the service area of the DFS owner AP connected to the external electronic device.
[0079] For example, the processor (200) can update the group owner preference value of the electronic device (101) to be greater than the group owner preference value of the external electronic device when the electronic device (101) is set as the group owner and the group owner preference value of the electronic device (101) is smaller than the group owner preference value of the external electronic device. For example, the processor (200) can maintain the group owner preference value of the electronic device (101) when the electronic device (101) is set as the group owner and the group owner preference value of the electronic device (101) is greater than the group owner preference value of the external electronic device.
[0080] For example, the processor (200) can update the group owner preference value of the electronic device (101) to be smaller than the group owner preference value of the external electronic device when the external electronic device is set as the group owner and the group owner preference value of the electronic device (101) is greater than the group owner preference value of the external electronic device. For example, the processor (200) can maintain the group owner preference value of the electronic device (101) when the external electronic device is set as the group owner and the group owner preference value of the electronic device (101) is smaller than the group owner preference value of the external electronic device.
[0081] For example, if the processor (200) accepts a direct connection based on wireless LAN communication with an external electronic device, it may control the communication circuit (210) to transmit a group owner negotiation request message containing information related to the updated group owner preference value of the electronic device (101) to the external electronic device. If the processor (200) receives a group owner negotiation response message from the external electronic device, it may check the group owner preference value of the external electronic device in the group owner negotiation response message. The processor (200) may set the group owner of the direct communication based on wireless LAN communication using the group owner preference value of the electronic device (101) and the group owner preference value of the external electronic device according to a designated second group owner setting method. The processor (200) may control the communication circuit (210) to transmit a group owner setting completion message containing the group owner setting information to the external electronic device. For example, the group owner may be set to the device with the larger group owner preference value among the electronic device (101) and external electronic device for performing direct communication based on wireless LAN communication according to the designated second group owner setting method.
[0082] For example, if the processor (200) accepts a direct connection based on wireless LAN communication with an external electronic device, it may control the communication circuit (210) to transmit a group owner negotiation response message containing information related to the updated group owner preference value of the electronic device (101) to the external electronic device. If the processor (200) receives a group owner negotiation completion message from the external electronic device, it may identify the group owner set by the external electronic device.
[0083] According to one embodiment, the processor (200) can set a channel for direct communication based on wireless LAN communication with an external electronic device when the electronic device (101) is set as a group owner. For example, the processor (200) can set the DFS channel as a channel for direct communication based on wireless LAN communication with an external electronic device when the electronic device (101) performs wireless LAN communication with a DFS owner AP using a DFS channel. For example, the processor (200) can select a channel for direct communication based on wireless LAN communication with an external electronic device from among the channels supported by the electronic device (101) when the specified DFS usage conditions are not satisfied.
[0084] For example, the processor (200) can control the communication circuit (210) to perform a direct communication connection based on wireless LAN communication with an external electronic device based on a channel (e.g., DFS channel) for direct communication based on wireless LAN communication with an external electronic device.
[0085] According to one embodiment, the processor (200) can control the communication circuit (210) to perform a direct communication connection based on wireless LAN communication with the external electronic device based on a channel (e.g., DFS channel) assigned by the external electronic device set as the group owner when the external electronic device is set as the group owner while satisfying specified DFS usage conditions.
[0086] According to one embodiment, when an external electronic device for direct connection based on wireless LAN communication is detected, the processor (200) can determine whether a persistent group associated with the external electronic device exists. For example, the processor (200) can determine whether a persistent group corresponding to the identification information of the external electronic device exists. For example, the persistent group may include devices (e.g., devices designated with WPS (Wi-Fi protected setup)) that store group owner information and encrypted information required for connection with the group owner to reduce connection delays in direct communication based on wireless LAN communication between the electronic device (101) and the external electronic device.
[0087] According to one embodiment, if there is no persistent group associated with an external electronic device, the processor (200) may set a group owner using a designated first group owner setting method or a designated second group owner setting method based on information associated with the DFS function of the electronic device (101) and information associated with the DFS function of the external electronic device.
[0088] According to one embodiment, if a persistent group related to an external electronic device exists, the processor (200) can determine whether specified DFS usage conditions are satisfied based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device. For example, the processor (200) can control the communication circuit (210) to exchange information related to the DFS function with the external electronic device through a search process to determine whether an external electronic device exists for a direct connection based on wireless LAN communication. For example, the processor (200) can control the communication circuit (210) to transmit a search request message containing information related to the DFS function of the electronic device (101). When the processor (200) receives a search response message corresponding to the search request message, it can obtain information related to the DFS function of the external electronic device from the search response message. For example, when the processor (200) receives a search request message, it can verify information related to the DFS function of the external electronic device from the search request message. The processor (200) can control the communication circuit (210) to transmit a search response message containing information related to the DFS function of the electronic device (101). For example, the information related to the DFS function of the electronic device (101) may include at least one of support information (or information regarding support) for the DFS of the electronic device (101), information related to the DFS owner AP connected to the electronic device (101), or information indicating that the electronic device (101) is located in the service area of the DFS owner AP connected to the external electronic device. For example, the information related to the DFS function of the external electronic device may include at least one of support information (or information regarding support) for the DFS of the external electronic device, information related to the DFS owner AP connected to the external electronic device, or information indicating that the external electronic device is located in the service area of the DFS owner AP connected to the electronic device (101).For example, a search request message may include a probe request message, a service discovery frame (SDF), or a message of OOB communication related to the search request. For example, a search response message may include a probe response message, an SDF, or a message of OOB communication related to the search response. For example, information indicating that the external electronic device is located in the service area of a DFS owner AP connected to the electronic device (101) may include a state in which the external electronic device can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the electronic device (101). For example, the external electronic device may be connected to or not connected to the DFS owner AP within the service area of the DFS owner AP connected to the electronic device (101).
[0089] For example, the processor (200) may determine that specified DFS usage conditions are satisfied if the electronic device (101) and the external electronic device support DFS, at least one of the electronic device (101) or the external electronic device is connected to the DFS owner AP, and is located in the service area of the DFS owner AP connected to the other electronic device. For example, the state of being located in the service area of the DFS owner AP connected to the other electronic device may include at least one of the state in which the electronic device (101) can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the external electronic device, or the state in which the external electronic device can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the electronic device (101). For example, a state located in the service area of a DFS owner AP connected to another electronic device may include at least one of a state in which a signal from the DFS owner AP is received (or detected) without being connected to the DFS owner AP connected to another electronic device, or a state in which a signal from the DFS owner AP connected to another electronic device is received (or detected). For example, the processor (200) may determine that a specified DFS usage condition is not satisfied if at least one of the electronic device (101) or an external electronic device does not support DFS, or if the electronic device (101) and the external electronic device are not connected to the DFS owner AP or are not located in the service area of the DFS owner AP connected to another electronic device. For example, a state in which the electronic device (101) is not located in the service area of the DFS owner AP connected to another electronic device may include a state in which the electronic device (101) cannot receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the external electronic device, and a state in which the external electronic device cannot receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the electronic device (101).
[0090] According to one embodiment, if the processor (200) determines that there is a persistent group associated with an external electronic device and that the specified DFS usage conditions are not satisfied, the communication circuit (210) can be controlled to establish direct communication based on wireless LAN communication with the external electronic device based on the persistent group associated with the external electronic device.
[0091] According to one embodiment, if the processor (200) determines that specified DFS usage conditions are satisfied, it may set a group owner based on information related to the DFS function of the electronic device (101) and information related to the DFS function of an external electronic device. For example, if the electronic device (101) that requested a connection for direct communication based on wireless LAN communication is connected to the DFS owner AP, and the external electronic device is located in the service area of the DFS owner AP connected to the electronic device (101), the processor (200) may set the electronic device (101) as the group owner regardless of whether the external electronic device is connected to the DFS owner AP. For example, the state in which the external electronic device is located in the service area of the DFS owner AP connected to the electronic device (101) may include a state in which the external electronic device can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the electronic device (101). For example, an external electronic device may be connected to or not connected to the DFS owner AP within the service area of the DFS owner AP connected to the electronic device (101). For example, the processor (200) may set the external electronic device as a group owner when the external electronic device is connected to the DFS owner AP, the electronic device (101) is not connected to the DFS owner AP, and the electronic device (101) is located within the service area of the DFS owner AP connected to the external electronic device. For example, the state in which the electronic device (101) is located within the service area of the DFS owner AP connected to the external electronic device may include a state in which the electronic device (101) can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the external electronic device. For example, the electronic device (101) may be connected to or not connected to the DFS owner AP within the service area of the DFS owner AP connected to the external electronic device.
[0092] According to one embodiment, the processor (200) can determine whether there exists a persistent group corresponding to a group owner set based on information related to the DFS function of the electronic device (101) and information related to the DFS function of an external electronic device. For example, the processor (200) can determine whether there exists a persistent group corresponding to a group owner set based on information related to the DFS function among persistent groups related to the external electronic device.
[0093] According to one embodiment, if there exists a persistent group corresponding to a group owner set based on information related to the DFS function, the processor (200) can control the communication circuit (210) to connect direct communication based on wireless LAN communication with an external electronic device based on the persistent group corresponding to the group owner set based on information related to the DFS function.
[0094] According to one embodiment, if there is no persistent group corresponding to a group owner set based on information related to the DFS function, the processor (200) may additionally create a persistent group corresponding to a group owner set based on information related to the DFS function. For example, the processor (200) may control a communication circuit (210) to establish direct communication based on wireless LAN communication with an external electronic device based on the newly created persistent group.
[0095] According to one embodiment, the communication circuit (210) can transmit and / or receive packets (e.g., signals and / or data) to and from at least one external electronic device (e.g., the electronic device (102) or server (108) of FIG. 1) via wireless communication. For example, wireless communication may include wireless LAN communication (e.g., Wi-Fi) and out-of-band (OOB) communication. For example, OOB communication may include at least one of Bluetooth, Bluetooth low energy (BLE), near field communication (NFC), or quick response (QR), as a communication method different from wireless LAN communication.
[0096] According to one embodiment, the memory (220) can store various data used by at least one component of the electronic device (101) (e.g., processor (200) or communication circuit (210)). For example, the memory (220) can store various instructions that can be executed individually or collectively by the processor (200) (e.g., at least one processor).
[0097] According to one embodiment, an electronic device (e.g., the electronic device (101) of FIG. 1 or FIG. 2) may include a communication circuit that supports wireless LAN communication (e.g., the wireless communication module (192) of FIG. 1 or the communication circuit (210) of FIG. 2), at least one processor including a processing circuit (e.g., the processor (120) of FIG. 1 or the processor (200) of FIG. 2), and a memory that stores instructions (e.g., the memory (130) of FIG. 1 or the memory (220) of FIG. 2). According to one embodiment, the instructions may include instructions that cause the electronic device to transmit a search request message when executed individually or collectively by at least one processor. According to one embodiment, the instructions may include instructions that cause the electronic device to receive a response message from an external electronic device when executed individually or collectively by at least one processor. According to one embodiment, the instructions may include instructions that cause the electronic device to check first information related to the DFS function of an external electronic device (e.g., external electronic device (700) of FIG. 7) in a response message when executed individually or collectively by at least one processor. According to one embodiment, the instructions may include instructions that cause the electronic device to transmit a message to the external electronic device containing information that causes the external electronic device to act as a group owner to control the direct connection between the electronic device and the external electronic device via wireless LAN when the first information related to the DFS function of the external electronic device includes information indicating that the external electronic device is connected to a DFS owner AP.
[0098] According to one embodiment, the instructions may include instructions that cause an electronic device to transmit a search request message containing second information related to the DFS function of the electronic device when executed individually or collectively by at least one processor. According to one embodiment, the second information related to the DFS function of the electronic device may include at least one of support information for the DFS function of the electronic device or information related to a DFS owner AP connected to the electronic device.
[0099] According to one embodiment, the first information related to the DFS function of an external electronic device may include at least one of support information for the DFS function of the external electronic device, information related to a DFS owner AP connected to the external electronic device, or information indicating that the external electronic device is located in the service area of a DFS owner AP connected to the electronic device.
[0100] According to one embodiment, the memory may store instructions for selecting an electronic device as a group owner for controlling a direct connection via a wireless LAN when, when executed individually or collectively by at least one processor, the electronic device is determined to be connected to a DFS owner AP and the external electronic device is located within the service area of the DFS owner AP based on second information related to the DFS function of the electronic device and first information related to the DFS function of an external electronic device.
[0101] According to one embodiment, the memory may store instructions that, when executed individually or collectively by at least one processor, cause the electronic device to set up an operation channel for a direct connection via wireless LAN with an external electronic device based on the fact that the electronic device is selected as a group owner for controlling a direct connection via wireless LAN. The memory may store instructions that, when executed individually or collectively by at least one processor, cause the electronic device to perform a direct connection via wireless LAN with an external electronic device through an operation channel. According to one embodiment, the operation channel for a direct connection via wireless LAN may be set as a DFS channel by the electronic device.
[0102] According to one embodiment, the memory may store instructions for selecting an external electronic device as a group owner for controlling a direct connection via wireless LAN when, when executed individually or collectively by at least one processor, the external electronic device is determined to be connected to a DFS owner AP and the electronic device is located within the service area of the DFS owner AP based on second information related to the DFS function of the electronic device and first information related to the DFS function of the external electronic device.
[0103] According to one embodiment, the memory may store instructions that, when executed individually or collectively by at least one processor, cause the electronic device to transmit a message to the external electronic device including information indicating that the electronic device is located in the service area of a DFS owner AP connected to the external electronic device based on the fact that the external electronic device is selected as the group owner for controlling the direct connection via the wireless LAN, and information related to the group owner for controlling the direct connection via the wireless LAN. According to one embodiment, the operating channel of the direct connection via the wireless LAN may be set as a DFS channel by the external electronic device.
[0104] According to one embodiment, the memory may store instructions for the electronic device to identify a group owner for controlling a direct connection via a wireless LAN set in a persistent group when the electronic device is executed individually or collectively by at least one processor. According to one embodiment, the memory may store instructions for the electronic device to additionally create a persistent group corresponding to a group owner for controlling a direct connection via a wireless LAN when the group owner for controlling a direct connection via a selected wireless LAN and the group owner for controlling a direct connection via a wireless LAN set in a persistent group are different.
[0105] According to one embodiment, the memory may store instructions that, when executed individually or collectively by at least one processor, cause the electronic device to select the group owner for controlling the direct connection through the wireless LAN based on the persistent group when the group owner for controlling the direct connection through the wireless LAN set in the persistent group is the same.
[0106] FIG. 3 is a flowchart (300) for setting a group owner of direct communication based on wireless LAN communication in an electronic device according to one embodiment. In the following embodiments, each operation may be performed sequentially, but is not necessarily performed sequentially. For example, the order of each operation may be changed, and at least two operations may be performed in parallel. For example, the electronic device of FIG. 3 may be the electronic device (101) of FIG. 1 or FIG. 2.
[0107] According to one embodiment with reference to FIG. 3, an electronic device (e.g., the electronic device (101) of FIG. 1 or FIG. 2) or a processor (e.g., the processor (120) of FIG. 1 or the processor (200) of FIG. 2) may, in operation 301, transmit a search request message to search for whether there is a device for direct communication based on wireless LAN communication. For example, the processor (200) may control the communication circuit (210) to transmit a search request message when an event related to direct communication based on wireless LAN communication is detected. For example, the search request message may include information related to the dynamic frequency selection (DFS) function of the electronic device (101). For example, the information related to the DFS function may include at least one of the support information (or information on whether it is supported) of the DFS of the electronic device (101) or information related to the DFS owner AP (access point) connected to the electronic device (101). For example, information related to a DFS owner AP connected to an electronic device (101) may include at least one of identification information of the DFS owner AP to which the electronic device (101) is connected (or connected) (e.g., SSID (service set identifier) or BSSID (basic service set identifier)) or channel information for wireless LAN communication with the DFS owner AP when the electronic device (101) is connected (or connected) to the DFS owner AP. For example, the DFS owner AP may represent an AP capable of using (or being allocated) a DFS channel. For example, the search request message may include a message of out-of-band (OOB) communication (e.g., a BLE advertisement message).For example, an event related to direct communication based on wireless LAN communication can be detected based on at least one of the execution of an application or function related to direct communication based on wireless LAN communication, the reception of user input related to direct communication based on wireless LAN communication (e.g., touch input or gesture input), or the reception of a control signal related to direct communication based on wireless LAN communication.
[0108] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may receive a search response message corresponding to a search request message from an external electronic device in operation 303. For example, if the processor (200) receives a search response message from at least one external electronic device, it may output a list of external electronic devices corresponding to the search response message through an output device (e.g., a display) of the electronic device (101). The processor (200) may identify (or select) an external electronic device for performing direct communication based on wireless LAN communication based on an input corresponding to the list of external electronic devices. For example, the search response message may include information related to the DFS function of the external electronic device. For example, the information related to the DFS function may include at least one of support information for the DFS of the external electronic device (or information on whether it is supported), information related to the DFS owner AP connected to the external electronic device, or information indicating that the external electronic device is located in the service area of the DFS owner AP connected to the electronic device (101). For example, information related to a DFS owner AP connected to an external electronic device may include at least one of identification information (e.g., SSID or BSSID) of the DFS owner AP to which the external electronic device is connected (or connected) when the external electronic device is connected (or connected) to the DFS owner AP, or channel information for wireless LAN communication with the DFS owner AP. For example, the search response message may include a message for OOB communication (e.g., a BLE advertisement message). For example, information indicating that the external electronic device (101) is located within the service area of the DFS owner AP connected to the electronic device (101) may include a state in which the external electronic device can receive (or detect) a signal (e.g., a beacon signal) of the DFS owner AP connected to the electronic device (101).For example, an external electronic device may or may not be connected to the DFS owner AP within the service area of the DFS owner AP connected to the electronic device (101).
[0109] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may, in operation 305, set a group owner of direct communication based on wireless LAN communication based on information related to the DFS function of the electronic device (101) and information related to the DFS function of an external electronic device. For example, the processor (200) may check whether specified DFS usage conditions are satisfied based on information related to the DFS function of the electronic device (101) and information related to the DFS function of an external electronic device. For example, a state satisfying specified DFS usage conditions may include a state in which the electronic device (101) and the external electronic device support DFS, at least one of the electronic device (101) or the external electronic device is connected to a DFS owner AP, and is located in the service area of the DFS owner AP connected to another electronic device. For example, a state in which the electronic device (101) is located in the service area of a DFS owner AP connected to another electronic device may include at least one of a state in which the electronic device (101) can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the external electronic device, or a state in which the external electronic device can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the electronic device (101). For example, a state in which the electronic device is located in the service area of a DFS owner AP connected to another electronic device may include at least one of a state in which the electronic device receives (or detects) a signal from the DFS owner AP without being connected to the DFS owner AP connected to the other electronic device, or a state in which the electronic device is connected to the DFS owner AP connected to the other electronic device. For example, a state in which a specified DFS usage condition is not satisfied may include a state in which at least one of the electronic device (101) or an external electronic device does not support DFS, or the electronic device (101) and the external electronic device are not connected to the DFS owner AP, or are not located in the service area of the DFS owner AP connected to another electronic device.For example, a state in which the electronic device (101) is not located in the service area of the DFS owner AP connected to another electronic device may include a state in which the electronic device (101) cannot receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the external electronic device, and a state in which the external electronic device cannot receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the electronic device (101).
[0110] For example, if the processor (200) determines that the specified DFS usage conditions are not satisfied, it may set the electronic device (101) as the group owner based on a specified first group owner setting method (e.g., the autonomous GO method). For example, the specified first group owner setting method may include a group owner setting method that sets the device that requested a connection for direct communication based on wireless LAN communication as the group owner. For example, the device that requested a connection for direct communication based on wireless LAN communication may include a device that sent a search request message.
[0111] For example, if the processor (200) determines that specified DFS usage conditions are satisfied, it may set a group owner based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device. For example, if the electronic device (101) that requested a connection for direct communication based on wireless LAN communication is connected to the DFS owner AP and the external electronic device is located in the service area of the DFS owner AP connected to the electronic device (101), the processor (200) may set the electronic device (101) as the group owner regardless of whether the external electronic device is connected to the DFS owner AP. For example, if the external electronic device is connected to the DFS owner AP and the electronic device (101) is not connected to the DFS owner AP and the electronic device (101) is located in the service area of the DFS owner AP connected to the external electronic device, the processor (200) may set the external electronic device as the group owner.
[0112] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may perform a direct communication connection based on wireless LAN communication with an external electronic device when the electronic device (101) is set as a group owner. For example, the processor (200) may set the DFS channel as a channel for direct communication based on wireless LAN communication with an external electronic device when the electronic device (101) performs wireless LAN communication with a DFS owner AP using a DFS channel. For example, the processor (200) may select a channel for direct communication based on wireless LAN communication with an external electronic device among the channels supported by the electronic device (101) when the specified DFS usage conditions are not satisfied. For example, the processor (200) may control a communication circuit (210) to perform a direct communication connection based on wireless LAN communication with an external electronic device based on a channel for direct communication based on wireless LAN communication with an external electronic device (e.g., a DFS channel).
[0113] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may establish a direct communication connection based on wireless LAN communication with an external electronic device based on a channel (e.g., DFS channel) assigned by the external electronic device set as the group owner when the external electronic device is set as the group owner while satisfying specified DFS usage conditions. For example, the processor (200) may control the communication circuit (210) to transmit information related to the group owner setting to the external electronic device when the external electronic device is set as the group owner. In response to the transmission of information related to the group owner setting, the processor (200) may control the communication circuit (210) to establish a direct communication connection based on wireless LAN communication with the external electronic device using a channel (e.g., DFS channel) assigned by the external electronic device set as the group owner. For example, information related to the setting of a group owner may include at least one of the group owner setting information of an external electronic device, the preferred channel of the electronic device (101), or information indicating that the electronic device (101) is located in the service area of a DFS owner AP connected to the external electronic device. For example, the group owner setting information of an external electronic device is information that sets an external electronic device as the group owner when a request for a connection of direct communication based on wireless LAN communication is received differently from the specified first group owner setting method, and can be referred to as the update information of the specified first group owner setting method.
[0114] FIG. 4 is a flowchart (400) for setting a group owner based on information related to a DFS function in an electronic device according to one embodiment. For example, at least part of FIG. 4 may include detailed operations of operation 305 of FIG. 3. In the following embodiments, each operation may be performed sequentially, but is not necessarily performed sequentially. For example, the order of each operation may be changed, and at least two operations may be performed in parallel. For example, the electronic device of FIG. 4 may be the electronic device (101) of FIG. 1 or FIG. 2.
[0115] According to one embodiment with reference to FIG. 4, when an electronic device (e.g., the electronic device (101) of FIG. 1 or FIG. 2) or a processor (e.g., the processor (120) of FIG. 1 or the processor (200) of FIG. 2) receives a search response message from an external electronic device (e.g., operation 303 of FIG. 3), in operation 401, the processor may determine whether specified DFS usage conditions are satisfied based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device. For example, the processor (200) may determine that specified DFS usage conditions are satisfied if it determines that the electronic device (101) and the external electronic device support DFS, that at least one of the electronic device (101) or the external electronic device is connected to a DFS owner AP, and that it is located in the service area of the DFS owner AP connected to another electronic device. For example, a state in which the electronic device (101) is located in the service area of a DFS owner AP connected to another electronic device may include at least one of a state in which the electronic device (101) can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the external electronic device, or a state in which the external electronic device can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the electronic device (101). For example, a state in which the electronic device is located in the service area of a DFS owner AP connected to another electronic device may include at least one of a state in which the electronic device receives (or detects) a signal from the DFS owner AP without being connected to the DFS owner AP connected to the other electronic device, or a state in which the electronic device is connected to the DFS owner AP connected to the other electronic device.
[0116] For example, the processor (200) may determine that the specified DFS usage conditions are not satisfied if it determines that at least one of the electronic device (101) or the external electronic device does not support DFS, or that the electronic device (101) and the external electronic device are not connected to the DFS owner AP, or that they are not located in the service area of the DFS owner AP connected to another electronic device. For example, the state of not being located in the service area of the DFS owner AP connected to another electronic device may include a state in which the electronic device (101) cannot receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the external electronic device, and a state in which the external electronic device cannot receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the electronic device (101).
[0117] According to one embodiment, if an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) determines that a specified DFS usage condition is satisfied (e.g., 'Yes' of operation 401), in operation 403, a group owner may be established based on information related to the DFS function of the electronic device (101) and information related to the DFS function of an external electronic device. For example, if the electronic device (101) that requested a connection for direct communication based on wireless LAN communication is connected to a DFS owner AP and the external electronic device is located in the service area of the DFS owner AP connected to the electronic device (101), the processor (200) may establish the electronic device (101) as a group owner regardless of whether the external electronic device is connected to the DFS owner AP. For example, the processor (200) can set the external electronic device as the group owner if the external electronic device is connected to the DFS owner AP, the electronic device (101) is not connected to the DFS owner AP, and the electronic device (101) is located in the service area of the DFS owner AP connected to the external electronic device.
[0118] According to one embodiment, if an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) determines that the specified DFS usage conditions are not satisfied (e.g., 'No' in operation 401), then in operation 405, the electronic device (101) may be set as the group owner. For example, if the processor (200) determines that the specified DFS usage conditions are not satisfied, then the electronic device (101) that requested a connection for direct communication based on wireless LAN communication may be set as the group owner based on a specified first group owner setting method (e.g., the autonomous GO method). For example, the electronic device (101) that requested a connection for direct communication based on wireless LAN communication may include the electronic device (101) that sent a search request message.
[0119] FIG. 5 is a flowchart (500) for connecting direct communication based on wireless LAN communication with an external electronic device in an electronic device according to one embodiment. In the following embodiments, each operation may be performed sequentially, but is not necessarily performed sequentially. For example, the order of each operation may be changed, and at least two operations may be performed in parallel. For example, the electronic device of FIG. 5 may be the electronic device (101) of FIG. 1 or FIG. 2.
[0120] According to one embodiment with reference to FIG. 5, when an electronic device (e.g., the electronic device (101) of FIG. 1 or FIG. 2) or a processor (e.g., the processor (120) of FIG. 1 or the processor (200) of FIG. 2) sets the group owner of direct communication based on wireless LAN communication (e.g., operation 305 of FIG. 3), in operation 501, it can check whether the electronic device (101) is set as the group owner of direct communication based on wireless LAN communication.
[0121] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may set up a channel for direct communication with an external electronic device in operation 503 when the electronic device (101) is set up as the group owner of direct communication based on wireless LAN communication (e.g., 'Yes' of operation 501). For example, the processor (200) may set up the DFS channel as a channel for direct communication based on wireless LAN communication with an external electronic device when the electronic device (101) performs wireless LAN communication with a DFS owner AP using the DFS channel. For example, the processor (200) may select a channel for direct communication based on wireless LAN communication with an external electronic device from among the channels supported by the electronic device (101) when the specified DFS usage conditions are not satisfied.
[0122] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may, in operation 505, establish a connection for direct communication with an external electronic device based on a channel established for direct communication with an external electronic device.
[0123] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may transmit information related to the setting of the group owner to the external electronic device in operation 507 when the external electronic device is set as the group owner of direct communication based on wireless LAN communication (e.g., 'No' in operation 501). For example, the information related to the setting of the group owner may include at least one of the group owner setting information of the external electronic device, the preferred channel of the electronic device (101), or information indicating that the electronic device (101) is located in the service area of the DFS owner AP connected to the external electronic device. For example, the group owner setting information of the external electronic device is information that sets the external electronic device, which has been requested to connect to direct communication based on wireless LAN communication differently from the specified first group owner setting method, as the group owner, and may be referred to as the update information of the specified first group owner setting method.
[0124] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may, in operation 505, establish a connection for direct communication based on wireless LAN communication with an external electronic device based on a channel (e.g., DFS channel) assigned by an external electronic device set as the group owner.
[0125] FIG. 6 is a flowchart (600) for connecting direct communication based on wireless LAN communication between an external electronic device and an electronic device according to one embodiment. In the following embodiments, each operation may be performed sequentially, but is not necessarily performed sequentially. For example, the order of each operation may be changed, and at least two operations may be performed in parallel. For example, the external electronic device of FIG. 6 may be the electronic device (101) of FIG. 1 or FIG. 2.
[0126] According to one embodiment with reference to FIG. 6, an external electronic device or processor can check whether a search request message is received in operation 601. For example, the external electronic device may receive a search request message through a scan according to an OOB communication method. For example, the search request message may include information related to the dynamic frequency selection (DFS) function of the electronic device (101), and may include at least one of support information (or information on whether support is provided) for the DFS of the electronic device (101) or information related to the DFS owner AP (access point) connected to the electronic device (101). For example, the search request message may include a message of out-of-band (OOB) communication (e.g., a BLE advertisement message).
[0127] According to one embodiment, if an external electronic device or processor does not receive a search request message (e.g., 'No' of operation 601), one embodiment for establishing direct communication based on wireless LAN communication with the electronic device may be terminated.
[0128] According to one embodiment, when an external electronic device or processor receives a search request message (e.g., 'Yes' of operation 601), in operation 603, it may transmit a search response message corresponding to the search request message. For example, the search response message may include at least one of the following: information related to the DFS function of the external electronic device, such as support information (or information regarding whether support is provided) for the DFS of the external electronic device, information related to the DFS owner AP connected to the external electronic device, or information indicating that the external electronic device is located in the service area of the DFS owner AP connected to the electronic device (101). For example, the search response message may include a message of OOB communication (e.g., a BLE advertisement message). For example, the information indicating that the external electronic device is located in the service area of the DFS owner AP connected to the electronic device (101) may include a state in which the external electronic device can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the electronic device (101). For example, an external electronic device may or may not be connected to the DFS owner AP within the service area of the DFS owner AP connected to the electronic device (101).
[0129] According to one embodiment, an external electronic device can check whether information related to group owner settings is received from the electronic device (101) in operation 605.
[0130] According to one embodiment, when an external electronic device receives information related to group owner setting from an electronic device (101) (e.g., 'Yes' of operation 605), in operation 607, it may set a channel for direct communication with the electronic device (101). For example, the external electronic device may set the external electronic device as the group owner for direct communication based on wireless LAN communication with the electronic device (101) based on information related to group owner setting. For example, when the external electronic device performs wireless LAN communication with a DFS owner AP using a DFS channel, the external electronic device may set the DFS channel as a channel for direct communication based on wireless LAN communication with the electronic device (101).
[0131] According to one embodiment, in operation 609, an external electronic device may establish a connection for direct communication with the electronic device (101) based on a channel (e.g., a DFS channel) set for direct communication with the electronic device (101).
[0132] According to one embodiment, if the external electronic device does not receive information related to the group owner setting (e.g., 'No' in operation 605), in operation 609, it may establish a direct communication connection based on wireless LAN communication with the electronic device (101) based on the channel assigned by the electronic device (101) set as the group owner.
[0133] FIG. 7 is an example of connecting direct communication based on wireless LAN communication with an external electronic device in an electronic device according to one embodiment.
[0134] According to one embodiment with reference to FIG. 7, an electronic device (101) may transmit a search request message to search for whether there is a device for direct communication based on wireless LAN communication (e.g., operation 711). For example, the electronic device (101) may transmit a search request message when an event related to direct communication based on wireless LAN communication is detected. For example, the search request message may include information related to the DFS function of the electronic device (101), such as Tables 1 and 2, including at least one of support information (or information on whether it is supported) (e.g., attribute ID) of the DFS of the electronic device (101) or information related to the DFS owner AP (access point) connected to the electronic device (101) (e.g., AP info list). For example, information related to a DFS owner AP connected to an electronic device (101) may include at least one of identification information (e.g., BSSID (basic service set identifier)) of the DFS owner AP to which the electronic device (101) is connected (or connected) when the electronic device (101) is connected (or connected) to the DFS owner AP, or channel information (e.g., channel number) for wireless LAN communication with the DFS owner AP. For example, a search request message may include a message of out-of-band (OOB) communication (e.g., BLE advertisement message). For example, an event related to direct communication based on wireless LAN communication may be detected based on at least one of the execution of an application or function related to direct communication based on wireless LAN communication, the reception of user input (e.g., touch input or gesture input) related to direct communication based on wireless LAN communication, or the reception of a control signal related to direct communication based on wireless LAN communication.
[0135] FieldSizeValueDescriptionAttribute ID130Identifying the type of P2P attribute. The specific value is defined in Table 6.Length2variableLength of the following fields in the attributeAP Info List9 * NvariableIncluding one or more AP info fields. where N is the number of AP info fields. The AP info field is defined in Table y2.
[0136] 일예로, 표 1의 AP Info List는 표 2와 같이 구성될 수 있다.
[0137] FieldSizeValueDescriptionFlag1variableBit 0 set to 1 indicates that the P2P Device' WLAN STA interface is concurrently associated with the AP. Bit 0 set to 0 indicates that the P2P device can hear the AP, but not concurrently associated with the AP.Bit 1 to Bit7: reservedBSSID6variableIdentifying BSSID of the WLAN AP.Country String3variableThe country string field is set to the value contained in the dot11 Country String attribute in [1], specifying the country code in which the Channel Entry List is valid. The third octet of the Country String field is set to hex 04 to indicate that Table E-4 is used.Operating class1variableIndicating the frequency band at which the WLAN AP is operatingChannel Number1variableIndicating the channel number at which the WLAN AP is operating
[0138] According to one embodiment, when an external electronic device (700) receives a search request message, it may transmit a search response message corresponding to the search request message (e.g., operation 713). For example, the search response message may include at least one of the following: information related to the DFS function of the external electronic device (700), such as support information (or information regarding whether support is provided) for the DFS of the external electronic device (700), information related to the DFS owner AP (710) connected to the external electronic device (700), or information indicating that the external electronic device (700) is located in the service area of the DFS owner AP (710) connected to the electronic device (101). For example, the search response message may include a message of OOB communication (e.g., a BLE advertisement message). For example, information indicating that the external electronic device (700) is located in the service area of the DFS owner AP (710) connected to the electronic device (101) may include a state in which the external electronic device (700) can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP (710) connected to the electronic device (101).
[0139] According to one embodiment, the electronic device (101) can check information related to the DFS function of the external electronic device (700) in a search response message. The electronic device (101) can set a group owner of direct communication based on wireless LAN communication based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device (700) (e.g., operation 715). For example, the electronic device (101) can check whether specified DFS usage conditions are satisfied based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device (700). For example, a state satisfying specified DFS usage conditions may include a state in which the electronic device (101) and the external electronic device (700) support DFS, at least one of the electronic device (101) or the external electronic device (700) is connected to the DFS owner AP (710), and is located in the service area of the DFS owner AP (710) connected to the other electronic device. For example, a state in which the electronic device (101) is located in the service area of a DFS owner AP (710) connected to another electronic device may include at least one of a state in which the electronic device (101) can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP (710) connected to the external electronic device (700), or a state in which the external electronic device (700) can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP (710) connected to the electronic device (101). For example, a state in which a specified DFS usage condition is not satisfied may include a state in which at least one of the electronic device (101) or the external electronic device (700) does not support DFS, or the electronic device (101) and the external electronic device (700) are not connected to the DFS owner AP (710), or are not located in the service area of the DFS owner AP (710) connected to another electronic device.For example, a state in which the electronic device (101) is not located in the service area of the DFS owner AP (710) connected to another electronic device may include a state in which the electronic device (101) cannot receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP (710) connected to the external electronic device (700) and a state in which the external electronic device (700) cannot receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP (710) connected to the electronic device (101).
[0140] For example, if the electronic device (101) determines that the specified DFS usage conditions are satisfied, it may set a group owner based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device (700). For example, if the electronic device (101) that requested a connection for direct communication based on wireless LAN communication is connected to the DFS owner AP (710), and the external electronic device (700) is located in the service area of the DFS owner AP (710) connected to the electronic device (101), the electronic device (101) may be set as the group owner of direct communication based on wireless LAN communication. For example, if the electronic device (101) is connected to an external electronic device (700) and the electronic device (101) is not connected to the DFS owner AP (710), and the electronic device (101) is located in the service area of the DFS owner AP (710) connected to the external electronic device (700), the external electronic device (700) can be set as the group owner of direct communication based on wireless LAN communication.
[0141] According to one embodiment, when the electronic device (101) sets the external electronic device (700) as the group owner while satisfying the specified DFS usage conditions, it may transmit information related to the setting of the group owner to the external electronic device (700) (e.g., operation 717). For example, the information related to the setting of the group owner may include at least one of the group owner setting information of the external electronic device, the preferred channel of the electronic device (101), or information indicating that the electronic device (101) is located in the service area of the DFS owner AP (710) connected to the external electronic device. For example, the group owner setting information of the external electronic device is information that sets the external electronic device as the group owner when it receives a request for a connection of direct communication based on wireless LAN communication, unlike the specified first group owner setting method, and may be referred to as the update information of the specified first group owner setting method.
[0142] According to one embodiment, when an external electronic device (700) receives information related to group owner settings from an electronic device (101) (e.g., operation 717), the external electronic device (700) can be set as a group owner for direct communication with the electronic device (101) based on the information related to group owner settings (e.g., operation 719). For example, when the external electronic device (700) performs wireless LAN communication with a DFS owner AP (710) using a DFS channel, the DFS channel can be set as a channel for direct communication based on wireless LAN communication with the electronic device (101).
[0143] According to one embodiment, an external electronic device (700) can establish a connection for direct communication with the electronic device (101) based on a channel (e.g., DFS channel) set for direct communication with the electronic device (101) (e.g., operation 721).
[0144] FIG. 8 is a flowchart (800) for setting a group owner of direct communication based on wireless LAN communication in an electronic device according to one embodiment. In the following embodiments, each operation may be performed sequentially, but is not necessarily performed sequentially. For example, the order of each operation may be changed, and at least two operations may be performed in parallel. For example, the electronic device of FIG. 8 may be the electronic device (101) of FIG. 1 or FIG. 2.
[0145] According to one embodiment with reference to FIG. 8, an electronic device (e.g., the electronic device (101) of FIG. 1 or FIG. 2) or a processor (e.g., the processor (120) of FIG. 1 or the processor (200) of FIG. 2) can check in operation 801 whether a search request message is received via wireless LAN communication. For example, the processor (200) can check whether a search request message is received in a standby mode (e.g., search standby mode or connection standby mode) associated with direct communication based on wireless LAN communication. For example, the search request message may include a probe request message or a service discovery frame (SDF) associated with the search request.
[0146] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may terminate one embodiment for setting the group owner of direct communication based on wireless LAN communication when a search request message is not received via wireless LAN communication (e.g., 'No' of operation 801).
[0147] According to one embodiment, when an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) receives a search request message via wireless LAN communication (e.g., 'Yes' of operation 801), in operation 803, a search response message corresponding to the search request message may be transmitted. For example, the search response message may include a probe response message or an SDF related to the search response. For example, the search response message may include information related to the dynamic frequency selection (DFS) function of the electronic device (101), such as support information (or information on whether support is provided) for the DFS of the electronic device (101) or information related to the DFS owner AP connected to the electronic device (101).
[0148] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) can check whether a group owner negotiation request message is received in operation 805.
[0149] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may terminate one embodiment for establishing a group owner of direct communication based on wireless LAN communication when a group owner negotiation request message is not received (e.g., 'No' of operation 805).
[0150] According to one embodiment, when an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) receives a group owner negotiation request message (e.g., 'Yes' in operation 805), in operation 807, the group owner of direct communication based on wireless LAN communication can be established based on information related to the DFS function of the electronic device (101) and information related to the DFS function of an external electronic device. For example, the processor (200) can check the information related to the DFS function of the external electronic device in the group owner negotiation request message. The processor (200) can check whether specified DFS usage conditions are satisfied based on the information related to the DFS function of the electronic device (101) and the information related to the DFS function of the external electronic device. For example, a state satisfying specified DFS usage conditions may include a state in which an electronic device (101) and an external electronic device support DFS, at least one of the electronic device (101) or the external electronic device is connected to a DFS owner AP, and is located in the service area of the DFS owner AP connected to another electronic device. For example, a state in which it is located in the service area of the DFS owner AP connected to another electronic device may include at least one of a state in which the electronic device (101) can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the external electronic device, or a state in which the external electronic device can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the electronic device (101). For example, a state in which a specified DFS usage condition is not satisfied may include a state in which at least one of the electronic device (101) or an external electronic device does not support DFS, or the electronic device (101) and the external electronic device are not connected to the DFS owner AP, or are not located in the service area of the DFS owner AP connected to another electronic device.For example, a state in which the electronic device (101) is not located in the service area of the DFS owner AP connected to another electronic device may include a state in which the electronic device (101) cannot receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the external electronic device, and a state in which the external electronic device cannot receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the electronic device (101).
[0151] For example, if the processor (200) determines that specified DFS usage conditions are satisfied, it may set a group owner based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device. For example, if the electronic device (101) that requested a connection for direct communication based on wireless LAN communication is connected to the DFS owner AP and the external electronic device is located in the service area of the DFS owner AP connected to the electronic device (101), the processor (200) may set the electronic device (101) as the group owner regardless of whether the external electronic device is connected to the DFS owner AP. For example, if the external electronic device is connected to the DFS owner AP and the electronic device (101) is not connected to the DFS owner AP and the electronic device (101) is located in the service area of the DFS owner AP connected to the external electronic device, the processor (200) may set the external electronic device as the group owner.
[0152] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may update the group owner preference value of the electronic device (101) based on group owner setting information in operation 809. For example, the processor (200) may update the group owner preference value of the electronic device (101) to be greater than the group owner preference value of the external electronic device when the electronic device (101) is set as the group owner and the group owner preference value of the electronic device (101) is smaller than the group owner preference value of the external electronic device. For example, the processor (200) may maintain the group owner preference value of the electronic device (101) when the electronic device (101) is set as the group owner and the group owner preference value of the electronic device (101) is greater than the group owner preference value of the external electronic device.
[0153] For example, the processor (200) can update the group owner preference value of the electronic device (101) to be smaller than the group owner preference value of the external electronic device when the external electronic device is set as the group owner and the group owner preference value of the electronic device (101) is greater than the group owner preference value of the external electronic device. For example, the processor (200) can maintain the group owner preference value of the electronic device (101) when the external electronic device is set as the group owner and the group owner preference value of the electronic device (101) is smaller than the group owner preference value of the external electronic device.
[0154] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may, in operation 811, transmit a group owner preference value (or an updated group owner preference value) of the electronic device (101) to an external electronic device. For example, the processor (200) may control the communication circuit (210) to transmit a group owner negotiation response message to an external electronic device that includes information related to the group owner preference value of the electronic device (101) and information related to a temporary suspension of group owner negotiation (e.g., GO negotiation response states 1). The processor (200) may control the communication circuit (210) to transmit a group owner negotiation request message to an external electronic device that includes information related to the group owner preference value of the electronic device (101) that has been optionally updated based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device. For example, when the processor (200) receives a group owner negotiation response message corresponding to a group owner negotiation request message from an external electronic device, it can check the group owner preference value of the external electronic device in the group owner negotiation response message. The processor (200) can set the group owner of direct communication based on wireless LAN communication using the group owner preference value of the electronic device (101) and the group owner preference value of the external electronic device according to a designated second group owner setting method. The processor (200) can control the communication circuit (210) to transmit a group owner setting completion message containing group owner setting information to the external electronic device. For example, the group owner may be set to the device with the larger group owner preference value among the electronic device (101) and the external electronic device for performing direct communication based on wireless LAN communication according to a designated second group owner setting method.
[0155] For example, if the processor (200) accepts a direct connection based on wireless LAN communication with an external electronic device, it may control the communication circuit (210) to transmit a group owner negotiation response message containing information related to the updated group owner preference value of the electronic device (101) to the external electronic device. If the processor (200) receives a group owner negotiation completion message from the external electronic device, it may identify the group owner set by the external electronic device.
[0156] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) can perform a direct communication connection based on wireless LAN communication with an external electronic device when the electronic device (101) is set as a group owner. For example, when the electronic device (101) performs wireless LAN communication with a DFS owner AP using a DFS channel, the processor (200) can set the DFS channel as a channel for direct communication based on wireless LAN communication with an external electronic device. The processor (200) can control a communication circuit (210) to perform a direct communication connection based on wireless LAN communication with an external electronic device based on a channel for direct communication based on wireless LAN communication with an external electronic device (e.g., a DFS channel).
[0157] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) can establish a direct communication connection based on wireless LAN communication with an external electronic device based on a channel (e.g., DFS channel) assigned by the external electronic device set as the group owner when the external electronic device is set as the group owner while satisfying specified DFS usage conditions.
[0158] FIG. 9 is a flowchart for transmitting a group owner preference value in an electronic device according to one embodiment. For example, at least part of FIG. 9 may include a detailed description of operations 807 through 811 of FIG. 8. In the following embodiments, each operation may be performed sequentially, but is not necessarily performed sequentially. For example, the order of each operation may be changed, and at least two operations may be performed in parallel. For example, the electronic device of FIG. 9 may be the electronic device (101) of FIG. 1 or FIG. 2.
[0159] According to one embodiment with reference to FIG. 9, when an electronic device (e.g., electronic device (101) of FIG. 1 or FIG. 2) or a processor (e.g., processor (120) of FIG. 1 or processor (200) of FIG. 2) receives a group owner negotiation request message (e.g., 'Yes' of operation 805 of FIG. 8), in operation 901, it can determine whether specified DFS usage conditions are satisfied based on information related to the DFS function of the electronic device (101) and information related to the DFS function of an external electronic device. For example, if the processor (200) determines that the electronic device (101) and the external electronic device support DFS, and that at least one of the electronic device (101) or the external electronic device is connected to a DFS owner AP and is located in the service area of the DFS owner AP connected to another electronic device, it can determine that specified DFS usage conditions are satisfied. For example, a state located in the service area of a DFS owner AP connected to another electronic device may include at least one of a state in which the electronic device (101) can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the external electronic device, or a state in which the external electronic device can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the electronic device (101).
[0160] For example, the processor (200) may determine that the specified DFS usage conditions are not satisfied if it determines that at least one of the electronic device (101) or the external electronic device does not support DFS, or that the electronic device (101) and the external electronic device are not connected to the DFS owner AP, or that they are not located in the service area of the DFS owner AP connected to another electronic device. For example, the state of not being located in the service area of the DFS owner AP connected to another electronic device may include a state in which the electronic device (101) cannot receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the external electronic device, and a state in which the external electronic device cannot receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP connected to the electronic device (101).
[0161] According to one embodiment, if an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) determines that a specified DFS usage condition is satisfied (e.g., 'Yes' of operation 901), in operation 903, a group owner of direct communication based on wireless LAN communication can be established based on information related to the DFS function of the electronic device (101) and information related to the DFS function of an external electronic device. For example, if the electronic device (101) that requested the connection of direct communication based on wireless LAN communication is connected to a DFS owner AP and the external electronic device is located in the service area of the DFS owner AP connected to the electronic device (101), the processor (200) can establish the electronic device (101) as the group owner regardless of whether the external electronic device is connected to the DFS owner AP. For example, the processor (200) can set the external electronic device as the group owner if the external electronic device is connected to the DFS owner AP, the electronic device (101) is not connected to the DFS owner AP, and the electronic device (101) is located in the service area of the DFS owner AP connected to the external electronic device.
[0162] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may optionally update the group owner preference value of the electronic device (101) based on group owner setting information in operation 905. For example, the processor (200) may update the group owner preference value of the electronic device (101) to be greater than the group owner preference value of the external electronic device when the electronic device (101) is set as the group owner and the group owner preference value of the electronic device (101) is smaller than the group owner preference value of the external electronic device. For example, the processor (200) may maintain the group owner preference value of the electronic device (101) when the electronic device (101) is set as the group owner and the group owner preference value of the electronic device (101) is greater than the group owner preference value of the external electronic device.
[0163] For example, the processor (200) can update the group owner preference value of the electronic device (101) to be smaller than the group owner preference value of the external electronic device when the external electronic device is set as the group owner and the group owner preference value of the electronic device (101) is greater than the group owner preference value of the external electronic device. For example, the processor (200) can maintain the group owner preference value of the electronic device (101) when the external electronic device is set as the group owner and the group owner preference value of the electronic device (101) is smaller than the group owner preference value of the external electronic device.
[0164] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may, in operation 907, transmit an optionally updated group owner preference value of the electronic device (101) to an external electronic device. For example, the processor (200) may control the communication circuit (210) to transmit a group owner negotiation response message to an external electronic device that includes information regarding the group owner preference value of the electronic device (101) and information regarding a temporary suspension of group owner negotiation (e.g., GO negotiation response states 1). The processor (200) may control the communication circuit (210) to transmit a group owner negotiation request message to an external electronic device that includes information regarding the group owner preference value of the electronic device (101) that is optionally updated based on information regarding the DFS function of the electronic device (101) and information regarding the DFS function of the external electronic device.
[0165] For example, if the processor (200) accepts a direct connection based on wireless LAN communication with an external electronic device, it can control the communication circuit (210) to transmit a group owner negotiation response message containing information related to the updated group owner preference value of the electronic device (101) to the external electronic device.
[0166] According to one embodiment, if an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) determines that a specified DFS usage condition is not satisfied (e.g., 'No' in operation 901), in operation 909, the group owner preference value of the electronic device (101) may be transmitted to an external electronic device. For example, the processor (200) may control the communication circuit (210) to transmit a group owner negotiation response message to an external electronic device that includes information related to the group owner preference value of the electronic device (101) and a temporary suspension of group owner negotiation (e.g., GO negotiation response states 1). The processor (200) may control the communication circuit (210) to transmit a group owner negotiation request message to an external electronic device that includes information related to the group owner preference value of the electronic device (101).
[0167] For example, if the processor (200) accepts a direct connection based on wireless LAN communication with an external electronic device, it can control the communication circuit (210) to transmit a group owner negotiation response message containing information related to the group owner preference value of the electronic device (101) to the external electronic device.
[0168] FIG. 10 is a flowchart (1000) for updating a group owner preference value in an electronic device according to one embodiment. For example, at least part of FIG. 10 may include a detailed description of operation 809 of FIG. 8 or operation 905 of FIG. 9. In the following embodiments, each operation may be performed sequentially, but is not necessarily performed sequentially. For example, the order of each operation may be changed, and at least two operations may be performed in parallel. For example, the electronic device of FIG. 10 may be the electronic device (101) of FIG. 1 or FIG. 2.
[0169] According to one embodiment with reference to FIG. 10, if an electronic device (e.g., the electronic device (101) of FIG. 1 or FIG. 2) or a processor (e.g., the processor (120) of FIG. 1 or the processor (200) of FIG. 2) sets the group owner of direct communication based on wireless LAN communication based on information related to the DFS function of the electronic device (101) and information related to the DFS function of an external electronic device (e.g., operation 807 of FIG. 8 or operation 903 of FIG. 9), in operation 1001, it can check whether the electronic device (101) is set as the group owner of direct communication based on wireless LAN communication.
[0170] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) can check in operation 1003 whether the group owner preference value of the electronic device (101) and the group owner preference value of the external electronic device satisfy a specified update condition when the electronic device (101) is set as the group owner of direct communication based on wireless LAN communication (e.g., 'Yes' of operation 1001). For example, a state satisfying the specified update condition may include a state in which the group owner preference value of the external electronic device is greater than the group owner preference value of the electronic device (101). For example, a state not satisfying the specified update condition may include a state in which the group owner preference value of the external electronic device is less than or equal to the group owner preference value of the electronic device (101).
[0171] According to one embodiment, if an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) determines that a specified update condition is satisfied (e.g., 'Yes' of operation 1003), then in operation 1005, the group owner preference value of the electronic device (101) may be updated. For example, if the electronic device (101) is set as the group owner and the group owner preference value of the electronic device (101) is smaller than the group owner preference value of the external electronic device, the processor (200) may update the group owner preference value of the electronic device (101) to be greater than the group owner preference value of the external electronic device.
[0172] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may terminate one embodiment for updating the group owner preference value if it determines that a specified update condition is not satisfied (e.g., 'No' of operation 1003). For example, the processor (200) may maintain the group owner preference value of the electronic device (101) when the electronic device (101) is set as the group owner and the group owner preference value of the electronic device (101) is greater than the group owner preference value of an external electronic device.
[0173] According to one embodiment, if an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) is set as the group owner of a direct communication based on wireless LAN communication (e.g., 'No' in operation 1001), in operation 1007, the group owner preference value of the electronic device (101) and the group owner preference value of the external electronic device may satisfy a specified update condition.
[0174] According to one embodiment, if an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) determines that a specified update condition is not satisfied (e.g., 'No' in operation 1007), then in operation 1009, the group owner preference value of the electronic device (101) may be updated. For example, if the processor (200) determines that an external electronic device is set as the group owner and the group owner preference value of the electronic device (101) is greater than the group owner preference value of the external electronic device, the group owner preference value of the electronic device (101) may be updated to be less than the group owner preference value of the external electronic device.
[0175] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may terminate one embodiment for updating the group owner preference value when it is determined that a specified update condition is satisfied (e.g., 'Yes' of operation 1007). For example, the processor (200) may maintain the group owner preference value of the electronic device (101) when an external electronic device is set as the group owner and the group owner preference value of the electronic device (101) is smaller than the group owner preference value of the external electronic device.
[0176] FIG. 11 is an example of setting a group owner based on a group owner preference value in an electronic device according to one embodiment.
[0177] According to one embodiment with reference to FIG. 11, an external electronic device (1100) can detect an electronic device (101) for direct communication based on wireless LAN communication through device search (e.g., operation 1111). For example, the external electronic device (1100) can transmit a search request message when an event related to direct communication based on wireless LAN communication is detected. For example, an event related to direct communication based on wireless LAN communication may be detected based on at least one of the execution of an application or function related to direct communication based on wireless LAN communication, the reception of user input related to direct communication based on wireless LAN communication (e.g., touch input or gesture input), or the reception of a control signal related to direct communication based on wireless LAN communication. For example, the search request message may include a probe request message or a service discovery frame (SDF) related to the search request.
[0178] For example, when the electronic device (101) receives a search request message via wireless LAN communication, it may transmit a search response message corresponding to the search request message. For example, the search response message may include a probe response message or an SDF related to the search response. For example, the search response message may include information related to the dynamic frequency selection (DFS) function of the electronic device (101), such as support information (or information regarding whether support is provided) for the DFS of the electronic device (101) or information related to the DFS owner AP (1110) connected to the electronic device (101).
[0179] According to one embodiment, an external electronic device (1100) may transmit a group owner negotiation request message to the electronic device (101) based on the detection of the electronic device (101) through device search (e.g., operation 1113). For example, the group owner negotiation request message may include information related to the group owner preference value of the external electronic device (1100) and the DFS function of the external electronic device (1100). For example, the information related to the DFS function of the external electronic device (1100) may include at least one of support information (or information on whether support is provided) for the DFS of the external electronic device (1100), information related to the DFS owner AP (1110) connected to the external electronic device (1100), or information indicating that the external electronic device (1100) is located in the service area of the DFS owner AP (1110) connected to the electronic device (101). For example, information related to a DFS owner AP (1110) connected to an external electronic device (1100) may include at least one of identification information (e.g., SSID or BSSID) of the DFS owner AP (1110) to which the external electronic device (1100) is connected (or connected) when the external electronic device (1100) is connected (or connected) to the DFS owner AP (1110) or channel information for wireless LAN communication with the DFS owner AP (1110).
[0180] According to one embodiment, when the electronic device (101) receives a group owner negotiation request message (e.g., operation 1113), it may transmit a group owner negotiation response message to an external electronic device (1100) that includes information related to the group owner preference value of the electronic device (101) and a temporary suspension of the group owner negotiation (e.g., GO negotiation response states 1) (e.g., operation 1115).
[0181] According to one embodiment, the electronic device (101) can set a group owner of direct communication based on wireless LAN communication based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device (1100) (e.g., operation 1117). For example, the electronic device (101) can check whether specified DFS usage conditions are satisfied based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device (1100). For example, a state satisfying specified DFS usage conditions may include a state in which the electronic device (101) and the external electronic device (1100) support DFS, at least one of the electronic device (101) or the external electronic device (1100) is connected to the DFS owner AP (1110), and is located in the service area of the DFS owner AP (1110) connected to the other electronic device. For example, a state in which the electronic device (101) is located in the service area of a DFS owner AP (1110) connected to another electronic device may include at least one of a state in which the electronic device (101) can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP (1110) connected to the external electronic device (1100), or a state in which the external electronic device (1100) can receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP (1110) connected to the electronic device (101). For example, a state in which a specified DFS usage condition is not satisfied may include a state in which at least one of the electronic device (101) or the external electronic device (1100) does not support DFS, or the electronic device (101) and the external electronic device (1100) are not connected to the DFS owner AP (1110), or are not located in the service area of the DFS owner AP (1110) connected to another electronic device.For example, a state in which the electronic device (101) is not located in the service area of the DFS owner AP (1110) connected to another electronic device may include a state in which the electronic device (101) cannot receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP (1110) connected to the external electronic device (1100) and a state in which the external electronic device (1100) cannot receive (or detect) a signal (e.g., a beacon signal) from the DFS owner AP (1110) connected to the electronic device (101).
[0182] For example, if the electronic device (101) determines that the specified DFS usage conditions are satisfied, the group owner can be set based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device (1100). For example, the processor (200) can set the electronic device (101) as the group owner of the direct communication based on wireless LAN communication if the electronic device (101) that requested the connection of the direct communication based on wireless LAN communication is connected to the DFS owner AP (1110), and the external electronic device (1100) is located in the service area of the DFS owner AP (1110) connected to the electronic device (101). For example, an electronic device (101) can be configured as the group owner of direct communication based on wireless LAN communication when an external electronic device (1100) is connected to a DFS owner AP (1110), and when the electronic device (101) is not connected to a DFS owner AP (1110) and the electronic device (101) is located in the service area of the DFS owner AP (1110) connected to the external electronic device (1100).
[0183] According to one embodiment, the electronic device (101) may selectively update the group owner preference value of the electronic device (101) based on group owner setting information (e.g., operation 1117). For example, if the electronic device (101) is set as the group owner and the group owner preference value of the electronic device (101) is smaller than the group owner preference value of the external electronic device (1100), the electronic device (101) may update the group owner preference value of the electronic device (101) to be larger than the group owner preference value of the external electronic device (1100). For example, if the electronic device (101) is set as the group owner and the group owner preference value of the electronic device (101) is larger than the group owner preference value of the external electronic device (1100), the electronic device (101) may maintain the group owner preference value of the electronic device (101).
[0184] For example, if the electronic device (101) is set as the group owner of the external electronic device (1100) and the group owner preference value of the electronic device (101) is greater than the group owner preference value of the external electronic device (1100), the group owner preference value of the electronic device (101) can be updated to be smaller than the group owner preference value of the external electronic device (1100). For example, if the electronic device (101) is set as the group owner of the external electronic device (1100) and the group owner preference value of the electronic device (101) is smaller than the group owner preference value of the external electronic device (1100), the group owner preference value of the electronic device (101) can be maintained.
[0185] According to one embodiment, the electronic device (101) may transmit a group owner negotiation request message containing an optionally updated group owner preference value of the electronic device (101) to an external electronic device (1100) (e.g., operation 1119).
[0186] According to one embodiment, an external electronic device (1100) may transmit a group owner negotiation response message corresponding to a group owner negotiation request message to a battery device (1100) (e.g., operation 1121). For example, the group owner negotiation response message may include a group owner preference value of the external electronic device (1100).
[0187] According to one embodiment, when an electronic device (101) receives a group owner negotiation response message corresponding to a group owner negotiation request message from an external electronic device (1100), it can check the group owner preference value of the external electronic device (1100) in the group owner negotiation response message. The electronic device (101) can set the group owner of direct communication based on wireless LAN communication using the group owner preference value of the electronic device (101) and the group owner preference value of the external electronic device (1100) according to a designated second group owner setting method. For example, if the group owner preference value of the electronic device (101) is greater than the group owner preference value of the external electronic device (1100), the electronic device (101) can be set (or selected) as the electronic device (101) for performing direct communication based on wireless LAN communication.
[0188] For example, the electronic device (101) can be set (or selected) as an external electronic device (1100) for performing direct communication based on wireless LAN communication if the optionally updated group owner preference value of the electronic device (101) is smaller than the group owner preference value of the external electronic device (1100).
[0189] According to one embodiment, the electronic device (101) can transmit a group owner setting completion message containing group owner setting information to an external electronic device (1100) (e.g., operation 1123).
[0190] According to one embodiment, when the electronic device (101) is set as a group owner, it can perform a direct communication connection based on wireless LAN communication with an external electronic device (1100). For example, when the electronic device (101) performs wireless LAN communication with a DFS owner AP (1110) using a DFS channel, the electronic device (101) can set the DFS channel as a channel for direct communication based on wireless LAN communication with the external electronic device (1100). The electronic device (101) can perform a direct communication connection based on wireless LAN communication with the external electronic device (1100) based on a channel for direct communication based on wireless LAN communication with the external electronic device (1100) (e.g., a DFS channel).
[0191] According to one embodiment, when an external electronic device (1100) is set as a group owner while satisfying specified DFS usage conditions, the electronic device (101) can perform a direct communication connection based on wireless LAN communication with the external electronic device (1100) based on a channel (e.g., DFS channel) assigned by the external electronic device (1100) set as a group owner.
[0192] FIG. 12 is an example of setting a group owner based on a group owner preference value in an electronic device according to one embodiment.
[0193] According to one embodiment with reference to FIG. 12, an external electronic device (1200) can detect an electronic device (101) for direct communication based on wireless LAN communication through device search (e.g., operation 1211). For example, the external electronic device (1200) can transmit a search request message when an event related to direct communication based on wireless LAN communication is detected. For example, an event related to direct communication based on wireless LAN communication may be detected based on at least one of the execution of an application or function related to direct communication based on wireless LAN communication, the reception of user input related to direct communication based on wireless LAN communication (e.g., touch input or gesture input), or the reception of a control signal related to direct communication based on wireless LAN communication. For example, the search request message may include a probe request message or a service discovery frame (SDF) related to the search request.
[0194] For example, when the electronic device (101) receives a search request message via wireless LAN communication, it may transmit a search response message corresponding to the search request message. For example, the search response message may include a probe response message or an SDF related to the search response. For example, the search response message may include information related to the dynamic frequency selection (DFS) function of the electronic device (101), such as support information (or information regarding whether support is provided) for the DFS of the electronic device (101) or information related to the DFS owner AP (1210) connected to the electronic device (101).
[0195] According to one embodiment, an external electronic device (1200) may transmit a group owner negotiation request message to the electronic device (101) based on the detection of the electronic device (101) through device search (e.g., operation 1213). For example, the group owner negotiation request message may include information related to the group owner preference value of the external electronic device (1200) and the DFS function of the external electronic device (1200). For example, the information related to the DFS function of the external electronic device (1200) may include at least one of support information (or information on whether support is provided) for the DFS of the external electronic device (1200), information related to the DFS owner AP (1210) connected to the external electronic device (1200), or information indicating that the external electronic device (1200) is located in the service area of the DFS owner AP (1210) connected to the electronic device (101). For example, information related to a DFS owner AP (1210) connected to an external electronic device (1200) may include at least one of identification information (e.g., SSID or BSSID) of the DFS owner AP (1210) to which the external electronic device (1200) is connected (or connected) when the external electronic device (1200) is connected (or connected) to the DFS owner AP (1210) or channel information for wireless LAN communication with the DFS owner AP (1210). For example, information indicating that the external electronic device (1200) is located in the service area of the DFS owner AP (1210) connected to the electronic device (101) may include a state in which the external electronic device (1200) can receive (or detect) a signal (e.g., a beacon signal) of the DFS owner AP (1210) connected to the electronic device (101). For example, an external electronic device (1200) may or may not be connected to the DFS owner AP (1210) within the service area of the DFS owner AP (1210) connected to the electronic device (101).
[0196] According to one embodiment, when the electronic device (101) receives a group owner negotiation request message (e.g., operation 1213), it can set the group owner of direct communication based on wireless LAN communication based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device (1200) (e.g., operation 1215). For example, the electronic device (101) can check whether specified DFS usage conditions are satisfied based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device (1200). For example, a state satisfying specified DFS usage conditions may include a state in which the electronic device (101) and the external electronic device (1200) support DFS, at least one of the electronic device (101) or the external electronic device (1200) is connected to the DFS owner AP (1210), and is located in the service area of the DFS owner AP (1210) connected to the other electronic device. For example, a state in which the electronic device (101) is located in the service area of the DFS owner AP (1210) connected to another electronic device may include at least one of a state in which the electronic device (101) is located in the service area of the DFS owner AP (1210) connected to the external electronic device (1200), or a state in which the external electronic device (1200) is located in the service area of the DFS owner AP (1210) connected to the electronic device (101). For example, a state in which the specified DFS usage conditions are not satisfied may include a state in which at least one of the electronic device (101) or the external electronic device (1200) does not support DFS, or the electronic device (101) and the external electronic device (1200) are not connected to the DFS owner AP (1210), or are not located in the service area of the DFS owner AP (1210) connected to another electronic device.For example, a state in which the electronic device (101) is not located in the service area of the DFS owner AP (1210) connected to another electronic device may include a state in which the electronic device (101) is not located in the service area of the DFS owner AP (1210) connected to the external electronic device (1200) and a state in which the external electronic device (1200) is not located in the service area of the DFS owner AP (1210) connected to the electronic device (101).
[0197] For example, if the electronic device (101) determines that the specified DFS usage conditions are satisfied, the group owner can be set based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device (1200). For example, the processor (200) can set the electronic device (101) as the group owner of the direct communication based on wireless LAN communication if the electronic device (101) that requested the connection of the direct communication based on wireless LAN communication is connected to the DFS owner AP (1210), and the external electronic device (1200) is located in the service area of the DFS owner AP (1210) connected to the electronic device (101). For example, an electronic device (101) can set the external electronic device (1200) as the group owner of direct communication based on wireless LAN communication when the external electronic device (1200) is connected to the DFS owner AP (1210), the electronic device (101) is not connected to the DFS owner AP (1210), and the electronic device (101) is located in the service area of the DFS owner AP (1210) connected to the external electronic device (1200).
[0198] According to one embodiment, the electronic device (101) may selectively update the group owner preference value of the electronic device (101) based on group owner setting information (e.g., operation 1215). For example, if the electronic device (101) is set as the group owner and the group owner preference value of the electronic device (101) is smaller than the group owner preference value of the external electronic device (1200), the electronic device (101) may update the group owner preference value of the electronic device (101) to be larger than the group owner preference value of the external electronic device (1200). For example, if the electronic device (101) is set as the group owner and the group owner preference value of the electronic device (101) is larger than the group owner preference value of the external electronic device (1200), the electronic device (101) may maintain the group owner preference value of the electronic device (101).
[0199] For example, if the electronic device (101) is set as the group owner of the external electronic device (1200) and the group owner preference value of the electronic device (101) is greater than the group owner preference value of the external electronic device (1200), the group owner preference value of the electronic device (101) can be updated to be smaller than the group owner preference value of the external electronic device (1200). For example, if the electronic device (101) is set as the group owner of the external electronic device (1200) and the group owner preference value of the electronic device (101) is smaller than the group owner preference value of the external electronic device (1200), the group owner preference value of the electronic device (101) can be maintained.
[0200] According to one embodiment, the electronic device (101) may transmit a group owner negotiation response message containing an optionally updated group owner preference value of the electronic device (101) to an external electronic device (1200) (e.g., operation 1217).
[0201] According to one embodiment, when an external electronic device (1200) receives a group owner negotiation response message, it can check the group owner preference value of the electronic device (101) (or optionally updated group owner preference value) in the group owner negotiation response message. The external electronic device (1200) can set the group owner of direct communication based on wireless LAN communication using the optionally updated group owner preference value of the electronic device (101) and the group owner preference value of the external electronic device (1200) according to a designated second group owner setting method. For example, if the optionally updated group owner preference value of the electronic device (101) is greater than the group owner preference value of the external electronic device (1200), the external electronic device (1200) can set (or select) the electronic device (101) to perform direct communication based on wireless LAN communication.
[0202] For example, an external electronic device (1200) can be set (or selected) as an external electronic device (1200) for performing direct communication based on wireless LAN communication when the optionally updated group owner preference value of the electronic device (101) is smaller than the group owner preference value of the external electronic device (1200).
[0203] According to one embodiment, an external electronic device (1200) can transmit a group owner setting completion message containing group owner setting information to an electronic device (101) (e.g., operation 1219).
[0204] According to one embodiment, when the electronic device (101) is set as a group owner, it can perform a direct communication connection based on wireless LAN communication with an external electronic device (1200). For example, when the electronic device (101) performs wireless LAN communication with a DFS owner AP (1210) using a DFS channel, the electronic device (101) can set the DFS channel as a channel for direct communication based on wireless LAN communication with the external electronic device (1200). The electronic device (101) can perform a direct communication connection based on wireless LAN communication with the external electronic device (1200) based on a channel for direct communication based on wireless LAN communication with the external electronic device (1200) (e.g., a DFS channel).
[0205] According to one embodiment, when an external electronic device (1200) is set as a group owner while satisfying specified DFS usage conditions, the electronic device (101) can establish a direct communication connection based on wireless LAN communication with the external electronic device (1200) based on a channel (e.g., a DFS channel) assigned by the external electronic device (1200) set as a group owner.
[0206] FIG. 13 is a flowchart for creating a persistent group based on information related to a DFS function in an electronic device according to one embodiment. In the following embodiments, each operation may be performed sequentially, but is not necessarily performed sequentially. For example, the order of each operation may be changed, and at least two operations may be performed in parallel. For example, the electronic device of FIG. 13 may be the electronic device (101) of FIG. 1 or FIG. 2.
[0207] According to one embodiment with reference to FIG. 13, an electronic device (e.g., electronic device (101) of FIG. 1 or FIG. 2) or a processor (e.g., processor (120) of FIG. 1 or processor (200) of FIG. 2) may detect an external electronic device for direct communication based on wireless LAN communication through device search in operation 1301. For example, the processor (200) may transmit a search request message when an event related to direct communication based on wireless LAN communication is detected. For example, an event related to direct communication based on wireless LAN communication may be detected based on at least one of the execution of an application or function related to direct communication based on wireless LAN communication, the reception of user input related to direct communication based on wireless LAN communication (e.g., touch input or gesture input), or the reception of a control signal related to direct communication based on wireless LAN communication. For example, the search request message may include information related to the dynamic frequency selection (DFS) function of the electronic device (101), and may include at least one of the support information (or information on whether support is provided) of the DFS of the electronic device (101) or information related to the DFS owner AP connected to the electronic device (101). For example, the search request message may include a probe request message, a service discovery frame (SDF), or a message of OOB communication related to the search request.
[0208] For example, the processor (200) may receive a search response message corresponding to a search request message from an external electronic device. For example, the search response message may include a probe response message related to the search response, a message of SDF or OOB communication. For example, the search response message may include at least one of information related to the DFS function of the external electronic device, such as support information (or information on whether support is provided) for the DFS of the external electronic device, information related to the DFS owner AP connected to the external electronic device, or information indicating that the external electronic device is located in the service area of the DFS owner AP connected to the electronic device (101).
[0209] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may, in operation 1303, check whether a persistent group associated with an external electronic device exists. For example, the processor (200) may check whether information associated with a persistent group corresponding to identification information of an external electronic device exists in memory (220). For example, the persistent group may include devices (e.g., devices designated with WPS (Wi-Fi protected setup)) that store group owner information and encrypted information required for connection with the group owner to reduce connection delay of direct communication based on wireless LAN communication between the electronic device (101) and the external electronic device.
[0210] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may determine, in operation 1305, whether a persistent group creation condition is satisfied based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device, if a persistent group related to the external electronic device exists (e.g., 'Yes' of operation 1303). For example, if a persistent group related to the external electronic device exists, the processor (200) may determine whether a specified DFS usage condition is satisfied based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device. For example, a state satisfying the specified DFS usage condition may include a state in which the electronic device (101) and the external electronic device support DFS, at least one of the electronic device (101) or the external electronic device is connected to a DFS owner AP, and is located in the service area of the DFS owner AP connected to another electronic device. For example, a state in which a specified DFS usage condition is not satisfied may include a state in which at least one of the electronic device (101) or an external electronic device does not support DFS, or the electronic device (101) and the external electronic device are not connected to the DFS owner AP, or are not located in the service area of the DFS owner AP connected to another electronic device.
[0211] For example, if the processor (200) determines that there is a persistent group associated with an external electronic device and that the specified DFS usage conditions are not satisfied, it may determine that the persistent group creation conditions are not satisfied.
[0212] For example, if the processor (200) determines that specified DFS usage conditions are satisfied, it may set a group owner based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device. For example, if the electronic device (101) that requested a connection for direct communication based on wireless LAN communication is connected to the DFS owner AP and the external electronic device is located in the service area of the DFS owner AP connected to the electronic device (101), the processor (200) may set the electronic device (101) as the group owner regardless of whether the external electronic device is connected to the DFS owner AP. For example, if the external electronic device is connected to the DFS owner AP and the electronic device (101) is not connected to the DFS owner AP and the electronic device (101) is located in the service area of the DFS owner AP connected to the external electronic device, the processor (200) may set the external electronic device as the group owner.
[0213] For example, the processor (200) may determine that the continuous group creation condition is not satisfied if there exists a continuous group corresponding to a group owner set based on information related to the DFS function of the electronic device (101) and information related to the DFS function of an external electronic device.
[0214] For example, the processor (200) may determine that the continuous group creation condition is satisfied if there is no continuous group corresponding to the group owner set based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device.
[0215] According to one embodiment, if an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) determines that the conditions for creating a persistent group are not satisfied (e.g., 'No' in operation 1305), then in operation 1309, direct communication based on wireless LAN communication with an external electronic device can be established based on a persistent group corresponding to an external electronic device. For example, if there are multiple persistent groups corresponding to an external electronic device, the processor (200) can control the communication circuit (210) to establish direct communication based on wireless LAN communication with an external electronic device based on a persistent group corresponding to a group owner set based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device.
[0216] According to one embodiment, if an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) determines that the conditions for creating a persistent group are satisfied (e.g., 'Yes' in operation 1305), in operation 1307, a persistent group corresponding to a group owner set based on information related to the DFS function of the electronic device (101) and information related to the DFS function of an external electronic device may be newly created. For example, the processor (200) may create a persistent group using a designated first group owner setting method or a designated second group owner setting method.
[0217] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may, in operation 1309, establish direct communication based on wireless LAN communication with an external electronic device based on a newly created persistent group corresponding to the external electronic device.
[0218] According to one embodiment, an electronic device (e.g., electronic device (101)) or a processor (e.g., processor (120 or 200)) may terminate one embodiment for creating a persistent group if there is no persistent group associated with an external electronic device (e.g., 'No' in operation 1303). For example, if there is no persistent group associated with an external electronic device, the processor (200) may set a group owner using a designated first group owner setting method (e.g., FIG. 3) or a designated second group owner setting method (e.g., FIG. 8) based on information related to the DFS function of the electronic device (101) and information related to the DFS function of the external electronic device.
[0219] According to one embodiment, a method of operation of an electronic device (e.g., an electronic device (101) of FIG. 1 or FIG. 2) may include an operation of transmitting a search request message. According to one embodiment, a method of operation of the electronic device may include an operation of receiving a response message from an external electronic device. According to one embodiment, a method of operation of the electronic device may include an operation of checking first information related to the DFS function of the external electronic device in the response message. According to one embodiment, if the first information related to the DFS function of the external electronic device includes information indicating that the external electronic device is connected to a DFS owner AP, a method of operation of the electronic device may include an operation of transmitting a message to the external electronic device that includes information causing the external electronic device to operate as a group owner for controlling the direct connection between the electronic device and the external electronic device via wireless LAN.
[0220] According to one embodiment, a method of operating an electronic device may include the operation of transmitting a search request message containing second information related to the DFS function of the electronic device. According to one embodiment, the second information related to the DFS function of the electronic device may include at least one of support information for the DFS function of the electronic device or information related to a DFS owner AP connected to the electronic device.
[0221] According to one embodiment, the first information related to the DFS function of an external electronic device may include at least one of support information for the DFS function of the external electronic device, information related to a DFS owner AP connected to the external electronic device, or information indicating that the external electronic device is located in the service area of a DFS owner AP connected to the electronic device.
[0222] According to one embodiment, the method of operating an electronic device may include an operation of selecting the electronic device as a group owner to control a direct connection via wireless LAN when it is determined that the electronic device is connected to a DFS owner AP and the external electronic device is located within the service area of the DFS owner AP based on second information related to the DFS function of the electronic device and first information related to the DFS function of an external electronic device.
[0223] According to one embodiment, the method of operation of an electronic device may include the operation of setting an operation channel for direct connection via wireless LAN with an external electronic device based on the fact that the electronic device is selected as a group owner for controlling direct connection via wireless LAN. According to one embodiment, the method of operation of an electronic device may include the operation of performing a direct connection via wireless LAN with an external electronic device through the operation channel. According to one embodiment, the operation channel for direct connection via wireless LAN may be set as a DFS channel by the electronic device.
[0224] According to one embodiment, the method of operating an electronic device may include an operation of selecting the external electronic device as a group owner to control a direct connection via wireless LAN when it is determined that the external electronic device is connected to the DFS owner AP and the electronic device is located within the service area of the DFS owner AP based on second information related to the DFS function of the electronic device and first information related to the DFS function of the external electronic device.
[0225] According to one embodiment, the operation of transmitting to an external electronic device may include the operation of transmitting to the external electronic device a message containing information indicating that the electronic device is located within the service area of a DFS owner AP connected to the external electronic device, and information related to the device for controlling the direct connection via the wireless LAN, based on the fact that the external electronic device is selected as a group owner for controlling the direct connection via the wireless LAN. According to one embodiment, the operation channel for the direct connection via the wireless LAN with the external electronic device may be set as a DFS channel by the external electronic device.
[0226] According to one embodiment, the method of operation of an electronic device may include an operation of identifying a group owner for controlling a direct connection via a wireless LAN set in a persistent group when a persistent group associated with an external electronic device is set. According to one embodiment, the method of operation of an electronic device may include an operation of additionally creating a persistent group corresponding to the group owner for controlling a direct connection via a wireless LAN when the group owner for controlling a direct connection via a selected wireless LAN and the group owner for controlling a direct connection via a wireless LAN set in a persistent group are different.
[0227] According to one embodiment, a method of operating an electronic device may include an operation of selecting a group owner for controlling a direct connection through a wireless LAN based on a continuous group when the group owner for controlling a direct connection through a wireless LAN set in a continuous group is the same as the group owner for controlling a direct connection through a wireless LAN.
[0228] According to one embodiment, a non-transient computer-readable storage medium (or computer program product) storing one or more programs may be described. According to one embodiment, the one or more programs may include instructions that, when executed by at least one processor of an electronic device (e.g., the electronic device (101) of FIG. 1 or FIG. 2), the electronic device performs the operation of transmitting a search request message, the operation of receiving a response message from an external electronic device, the operation of checking first information related to the DFS function of the external electronic device in the response message, and, if the first information related to the DFS function of the external electronic device includes information indicating that the external electronic device is connected to a DFS owner AP, the operation of transmitting a message to the external electronic device including information that causes the external electronic device to operate as a group owner for controlling the direct connection between the electronic device and the external electronic device via a wireless LAN.
[0229] The embodiments of the present disclosure disclosed in this specification and drawings are merely specific examples provided to facilitate the explanation of the technical content according to the embodiments of the present disclosure and to aid in understanding the embodiments of the present disclosure, and are not intended to limit the scope of the embodiments of the present disclosure. Accordingly, the scope of an embodiment of the present disclosure should be interpreted as including all modifications or variations derived based on the technical concept of an embodiment of the present disclosure, in addition to the embodiments disclosed herein.
Claims
1. In an electronic device (101), communication circuit (210), At least one processor (200) including a processing circuit, and It includes a memory (220) for storing instructions, When the above instructions are executed individually or collectively by the at least one processor (200), the electronic device (101), Send a search request message, Receive a response message from an external electronic device, and Based on the above response message, first information related to the DFS (dynamic frequency selection) function of the external electronic device is verified, and An electronic device that transmits a message to the external electronic device, including information that causes the external electronic device to operate as a group owner to control the direct connection through the wireless LAN of the electronic device (101) and the external electronic device, when the first information related to the DFS function of the external electronic device includes information indicating that the external electronic device is connected to a DFS owner AP (access point).
2. In Paragraph 1, When the above instructions are executed individually or collectively by the at least one processor (200), the electronic device (101), Transmitting the search request message containing second information related to the DFS function of the electronic device (101), and The second information related to the DFS function of the electronic device (101) comprises at least one of the support information for the DFS function of the electronic device (101) or the information related to the DFS owner AP connected to the electronic device (101).
3. In Paragraph 1 or 2, When the above instructions are executed individually or collectively by the at least one processor (200), the electronic device (101), An electronic device that selects the electronic device (101) as the group owner when it is determined that the electronic device (101) is connected to the DFS owner AP and the external electronic device is located within the service area of the DFS owner AP, based on second information related to the DFS function of the electronic device (101) and first information related to the DFS function of the external electronic device.
4. In Paragraph 3, When the above instructions are executed individually or collectively by the at least one processor (200), the electronic device (101), Based on the fact that the electronic device (101) is selected as the group owner, a direct connection channel is established via the wireless LAN with the external electronic device, and A direct connection with the external electronic device is performed via the wireless LAN through the above operation channel, and The operation channel of the direct connection via the above wireless LAN is an electronic device that is set as a DFS channel by the above electronic device (101).
5. In Paragraph 1 or 2, When the above instructions are executed individually or collectively by the at least one processor (200), the electronic device (101), An electronic device that selects the external electronic device as the group owner when, based on second information related to the DFS function of the electronic device (101) and first information related to the DFS function of the external electronic device, it is determined that the external electronic device is connected to the DFS owner AP and the electronic device (101) is located in the service area of the DFS owner AP.
6. In Paragraph 5 When the above instructions are executed individually or collectively by the at least one processor (200), the electronic device (101), Based on the fact that the external electronic device is selected as the group owner, the message including information indicating that the electronic device (101) is located in the service area of the DFS owner AP to which the external electronic device is connected, and information related to the group owner, is transmitted to the external electronic device. The operating channel of the direct connection via the above wireless LAN is an electronic device that is set as a DFS channel by the above external electronic device.
7. In any one of paragraphs 1 through 6, When the above instructions are executed individually or collectively by the at least one processor (200), the electronic device (101), If a persistent group associated with the above external electronic device is established, identify the group owner established in the said persistent group, and An electronic device that creates an additional continuous group corresponding to the selected group owner when the selected group owner and the group owner set in the continuous group are different.
8. In Paragraph 7, When the above instructions are executed individually or collectively by the at least one processor (200), the electronic device (101), An electronic device that selects the group owner based on the continuous group when the selected group owner and the group owner set in the continuous group are the same.
9. In the method of operating the electronic device (101), Action of sending a search request message; The operation of receiving a response message from an external electronic device; An operation to verify first information related to the DFS (dynamic frequency selection) function of the external electronic device in the above response message; and A method comprising the operation of transmitting a message to an external electronic device, wherein, if the first information related to the DFS function of the external electronic device includes information indicating that the external electronic device is connected to a DFS owner AP (access point), the message includes information that causes the external electronic device to operate as a group owner for controlling the direct connection between the electronic device and the external electronic device via wireless LAN.
10. In Paragraph 9, The operation of transmitting the above search request message is, The operation includes transmitting the search request message containing second information related to the DFS function of the electronic device (101), and A method comprising at least one of the second information related to the DFS function of the electronic device (101), the support information for the DFS function of the electronic device (101) or the information related to the DFS owner AP connected to the electronic device (101).
11. In Paragraph 9 or 10, A method further comprising the operation of selecting the electronic device (101) as a group owner to control a direct connection via the wireless LAN when, based on second information related to the DFS function of the electronic device (101) and first information related to the DFS function of the external electronic device, the electronic device (101) is connected to the DFS owner AP and it is determined that the external electronic device is located within the service area of the DFS owner AP.
12. In Paragraph 11, An operation to set an operation channel for direct connection via the wireless LAN with the external electronic device based on the fact that the electronic device (101) is selected as the group owner for controlling the direct connection via the wireless LAN; and It further includes an operation of performing a direct connection with the external electronic device via the wireless LAN through the above operation channel, and A method in which the operation channel of the direct connection via the above wireless LAN is set as a DFS channel by the above electronic device (101).
13. In Paragraph 9 or 10, A method further comprising the operation of selecting the external electronic device as a group owner for controlling a direct connection via the wireless LAN when, based on second information related to the DFS function of the electronic device (101) and first information related to the DFS function of the external electronic device, it is determined that the external electronic device is connected to the DFS owner AP and the electronic device (101) is located within the service area of the DFS owner AP.
14. In Paragraph 13 The operation of transmitting to the external electronic device includes transmitting the message to the external electronic device, which includes information indicating that the electronic device (101) is located in the service area of the DFS owner AP to which the external electronic device is connected, based on the external electronic device being selected as the group owner for controlling the direct connection through the wireless LAN, and information related to the group owner for controlling the direct connection through the wireless LAN. A method in which the operation channel of the direct connection via the above wireless LAN is set as a DFS channel by the above external electronic device.
15. In any one of paragraphs 9 through 14, When a persistent group associated with the above external electronic device is established, an operation to identify the group owner for controlling a direct connection via a wireless LAN established in the said persistent group, and A method further comprising the operation of additionally creating a persistent group corresponding to the group owner for controlling the direct connection through the selected wireless LAN when the group owner for controlling the direct connection through the wireless LAN set in the persistent group is different.